Elastix Drops Calls After 30 Seconds

I recently came across a bug with Elastix 2.x in which outbound calls over a SIP trunk or PRI (E1/T1) drop after 30 seconds. From testing, this can occur with Counterpath X-Lite as well as Linksys PAP2 devices. The issue occurs at random and only affects some outbound calls. There is nothing noted in the Asterisk log, CDR log or system logs which makes the issue difficult to diagnose.

To resolve this problem you need to make two modifications, one to Asterisk and one to X-Lite:

ASTERISK

1. Login to your Asterisk server.

2. Edit: /etc/asterisk/chan_dahdi.conf

3. Make sure the following statements are commented out:

;busydetect=yes
;busycount=3

4. Restart your amportal or reload Asterisk.

X-LITE

1. Open X-Lite