I'm working on a node that is sometimes logging duplicate disconnect messages. I've never seen a duplicate connect message.
Here is a sample log file where you can see some disconnect messages are fine, some are dupes.
The file is created by running two simple scripts in rpt.conf under the node info
connpgm = /etc/asterisk/myscripts/conlog.sh
discpgm = /etc/asterisk/myscripts/dislog.sh
and the scripts contain the exact same syntax:
#!/bin/bash
echo $1 connected $2 on $(date +"%T") - $(date +"%m-%d-%Y") >> /var/www/html/nodelogs/conlog.txt
#!/bin/bash
echo $1 disconnected $2 on $(date +"%T") - $(date +"%m-%d-%Y") >> /var/www/html/nodelogs/conlog.txt
I HAVE OTHER NODES THAT HAVE SIMILAR CONFIGURATIONS THAT WORK FINE.
This has been going on for a while, and I've updated asl a couple times with no affect on the duplicates. I just updated this node two days ago.
I normally wouldn't worry about it but we do grep this log daily and e-mail to some of the club members to keep an eye on activity so I'd like to get it cleaned up if possible.
Does anyone have any suggestions on where else to look? It doesn't seem that complicated but something is obviously not set correctly somewhere. Thank you.
73
