Hi I have an Asterisk (FreePBX) installation in a call centre with 2 x Sangoma A101 cards. Calls are completing properly and everything seems normal EXCEPT if the far end disconnects then Asterisk sees a “Normal Clearing” event Cause Code 0 even if the number was unavailable , busy, whatever.
We can make and receive calls fine, the only issue is that we are not picking up the cause code after the far end disconnects. In PRI intense debug I can see that the last 7 bits of the PRI message are a valid cause code… I’m confused.
I have attached an excerpt from /var/log/asterisk/full with pri intense debug span 2 turned on. During testing we dialled invalid, busy and rejected numbers. The resulting PRI/ZAP/Wanrouter/Asterisk conversation seems to show a cause code from Eircom (main provider in Ireland) which is interpretted as an Uunknown" Cause… for example a rejected call to a local number (below) gives disconnect cause 149 which should be equivalent to 149-128=21 since cause code is 7 bits. Cause code 21 is Normal “Rejected” (ref voipinfo.org/wiki/index.php? … angupCause) but it is being interpreted as “Ext: 1 Cause: Unknown (0), class = Normal Event (0) ]”.
I think it is all going wrong at the line:
but that is sent from the DUMP routine in q931.c, I think I need to find the source of the error/confusion/mismatch further up the code… I’m stuck
Is there a configuration issue on the box? Where should I look next?
Thanks for your help
Paul Smith
Clarity Telecom
Paul.Smith@ClarityTele.com
[Jul 3 21:24:06] VERBOSE[963] logger.c: < Message type: DISCONNECT (69)
[Jul 3 21:24:06] VERBOSE[963] logger.c: < [08 03 00 80 95]
[Jul 3 21:24:06] VERBOSE[963] logger.c: < Cause (len= 5) [ Ext: 0 Coding: CCITT (ITU) standard (0) Spare: 0 Location: User (0)
[Jul 3 21:24:06] VERBOSE[963] logger.c: < Ext: 1 Cause: Unknown (0), class = Normal Event (0) ]
[Jul 3 21:24:06] VERBOSE[963] logger.c: < Cause data 1: 95 (149)
Software compiled on the Server:
asterisk-perl-0.08.tar.gz
lame-3.97.tar.gz
linux-kbuild-2.6.18
zaptel
asterisk-1.4.11
asterisk-sounds-1.2.1
libpri-1.4.1
linux-source-2.6.18.tar.bz2
zaptel-1.4.5.1
asterisk-1.4.11.tar.gz
asterisk-sounds-1.2.1.tar.gz libpri-1.4.1.tar.gz
zaptel-1.4.5.1.tar.gz
asterisk-addons-1.4.2
freepbx-2.3.0
linux
wanpipe-2.3.4-13
asterisk-addons-1.4.2.tar.gz
freepbx-2.3.0.tar.gz
linux-headers-2.6.18-6
wanpipe-2.3.4-13.tgz
asterisk-perl-0.08
lame-3.97
linux-headers-2.6.18-6-686 zabbix-agent.1.4.4.deb