Reply To: RE: Send email if Trunk fails to register or is not registered

VitalPBX Community Support General Discussion Send email if Trunk fails to register or is not registered Reply To: RE: Send email if Trunk fails to register or is not registered

    tonywhelan
    Participant
    Up
    0
    Down

    I have replaced the previous script with a modified version (same name) that logs all trunk status changes into a single log file rather than having separate log files for each trunk.

    The new log file includes the trunk username and description for each line in the log. for example:

    1059551,Main DID 6501234567,2018-11-30,20:17,DOWN
    1059551,Main DID 6501234567,2018-11-30,20:22,UP

    The log file is created in folder /usr/share/ombutel/www so it can be retrieved using a web browser – eg http://your.pbx.ip/trunklog.txt

    The script is called trunkcheck.sh and can be downloaded from this folder:

    https://mega.nz/#F!UHZmGQKR!KsC0lhZ11ttm95ZpUOWxSg

    You just need to edit the script by entering your trunk usernames and a friendly description for each trunk. Instructions are contained within the script.

    cheers

     

    0