Sangoma A101D Intermittent Call Drop-Outs on Asterisk

This is a pretty dull post, but it's for reference.

Over the past couple of months, I have been experiencing problems with a Sangoma A101D card on a BT PRI ISDN-30 line.  I'd been receiving OOF, AIS and RAI alarms from our provider which were recorded in the Wanrouter messages file.  According to Sangoma, earlier versions of the Wanpipe driver are a bit too keen to report OOF errors and this has been corrected in 3.5.11 and beyond.

Updating to the latest version of Wanpipe for Asterisk seems to correct the problems, and I'm monitoring the situation by tailing the /var/log/messages file on the Asterisk box with the script at the bottom of this post. 

If this doesn't work for you, try disabling the echo canceller on the card to isolate this hardware.  Just issue wan_ec_client wanpipe1 disable on your Asterisk machine to disable the echo canceller.

#!/bin/bash

mv /home/nkew/messages_latest.mail /home/nkew/messages_latest.mail.old

tail -100 /var/log/messages > /home/nkew/messages_latest.mail

OLD_SIZE=`ls -l /home/nkew/messages_latest.mail.old | awk '{print $5}'`
echo $OLD_SIZE

echo "Subject: [JHL-Alert]: Sangoma Message Log Changed" >> tempfile 
echo -e "Hi Asterisk Admins,\n\nThis is an update to let you know that the Sangoma /var/log/messages file has been updated\n\nThe last 200 lines of the file are inclued below:\n" >> tempfile 

cat /home/nkew/messages_latest.mail >> tempfile
mv tempfile /home/nkew/messages_latest.mail

NEW_SIZE=`ls -l /home/nkew/messages_latest.mail | awk '{print $5}'`
echo $NEW_SIZE

if [ $NEW_SIZE -ne $OLD_SIZE ];
 then
   echo "Since the file size has changed, let's trigger an e-mail." 
   /usr/lib/sendmail xx@xx.com < /home/nkew/messages_latest.mail
   /usr/lib/sendmail xx@xx.com < /home/nkew/messages_latest.mail
 else
   echo "Nothing has changed"
fi

 

I'm running the 39th BMW Berlin Marathon on 30th September 2012 for the British Lung Foundation, who are currently funding research on the prevention of lung damage in COPD and many other areas related to lung disease.

I'm participating with my sister Claire Kewney and, on behalf of the charity, would appreciate even the smallest donation. My own JustGiving page is here, our team page is here.

if you're in the UK, you can also donate using your mobile phone by texting NKEW82 £5 (or any amount) to 70070. Your donation will be appreciated!

Comments

Your Comment
Your Name
E-mail Address (This won't be published)
Website URL

You can manage your Kewney.com account by logging in. [ Log On ]