SAIL Community Supported PBX

SAIL Forums => General Discussion on SAIL and Asterisk => Topic started by: sysadmin on December 13, 2021, 05:01:11 PM

Title: Invalid MAC address
Post by: sysadmin on December 13, 2021, 05:01:11 PM
In version 6 systems you may encounter the above message when adding a new extension.   The cause is a URL change in the location of the wireshark public mainufacturers' database.   We are working up a fix in source but it will take a few days.  In the meantime here is a module fix you can apply directly to your system.

The module which fetches the manufacturers database is

/opt/sark/scripts/getmaclist.sh

Replace the module with this one

#!/bin/sh
# get a list of macs amd manufacturers
#

[ ! -e /opt/sark/www/sark-common/manuf.txt ]  && touch /opt/sark/www/sark-common/manuf.txt
chown www-data:www-data /opt/sark/www/sark-common/manuf.txt
curl -L -s "https://gitlab.com/wireshark/wireshark/-/raw/master/manuf" > /tmp/manuf.txt
if [ -s /tmp/manuf.txt ]; then
        diff /opt/sark/www/sark-common/manuf.txt /tmp/manuf.txt
        if [  "$?" -ne "0" ] ; then
                mv /tmp/manuf.txt /opt/sark/www/sark-common/manuf.txt
                logger SARKgetmaclist - updated manufacturer MAC DB
        else
                logger SARKgetmaclist - manufacturer MAC DB up to date
        fi
else
        logger SARKgetmaclist - **** Could not fetch new manufacturer MAC DB ****
fi

This module gets run every Sunday at 00:00 hours so it will self heal if you leave it to its own devices.  However, you can prime it by simply running the module.

sudo sh /opt/sark/scripts/getmaclist.sh
     
Title: Re: Invalid MAC address
Post by: sysadmin on February 02, 2022, 02:57:24 PM
This issue was fixed in sail_6.2.0-22.  It is not yet on the distro library but you can fetch and install it manually from Github here

https://github.com/aelintra/sail6