PRI Indication -> Cannot disable Telco messages

Dear all,

We use Asterisk as a main PBX for our callcenter. Since a couple of weeks we have some new Tele2 PRI-s. The problem however is that we keep hearing the telco messages like ‘The number you have dialed is not in service’ etc. Since we are a call center we do not wish to hear these messages and keep our agents waiting for the next call.

Tele2 says that they send the release codes in time. What do I need to change in our config to make sure asterisk ends the call instead of waiting for Tele2 to hang up?

Below is a PRI debug. I’ve mentioned the exact location where the telco message starts playing. Can anybody see if the release code has already passed by then?

Thanks in advance.
Rene

– Making new call for cr 32776
– zap call: h324musellc=1, ast->userinformationlayer1=0

Protocol Discriminator: Q.931 (8) len=42
Call Ref: len= 2 (reference 8/0x8) (Originator)
Message type: SETUP (5)
[04 03 80 90 a3]
Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
User information layer 1: A-Law (35)
[18 03 a9 83 81]
Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
ChanSel: Reserved
Ext: 1 Coding: 0 Number Specified Channel Type: 3
Ext: 1 Channel: 1 ]
[6c 0b 21 83 33 36 37 35 30 38 31 35 39]
Calling Number (len=13) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
Presentation: Presentation allowed of network provided number (3) ‘367508159’ ]
[70 0b 91 30 32 30 36 31 36 36 33 38 30]
Called Number (len=13) [ Ext: 1 TON: International Number (1) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) ‘0206166380’ ]
[a1]
Sending Complete (len= 1)
q931.c:3087 q931_setup: call 32776 on channel 1 enters state 1 (Call Initiated)
< Protocol Discriminator: Q.931 (8) len=10
< Call Ref: len= 2 (reference 8/0x8) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
< ChanSel: Reserved
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 ]
– Processing IE 24 (cs0, Channel Identification)
q931.c:3636 q931_receive: call 32776 on channel 1 enters state 3 (Outgoing call Proceeding)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 8/0x8) (Terminator)
< Message type: PROGRESS (3)
< [1e 02 84 82]
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the remote user (4)
< Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ]
– Processing IE 30 (cs0, Progress Indicator)

<<<<<<<<<<<<! TELCO MESSAGE - 35 SECONDS !>>>>>>>>>>>>>>>>

< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 8/0x8) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 82 81]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
< Ext: 1 Cause: Unallocated (unassigned) number (1), class = Normal Event (0) ]
– Processing IE 8 (cs0, Cause)
q931.c:3779 q931_receive: call 32776 on channel 1 enters state 12 (Disconnect Indication)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request
q931.c:2920 q931_release: call 32776 on channel 1 enters state 19 (Release Request)

Protocol Discriminator: Q.931 (8) len=9
Call Ref: len= 2 (reference 8/0x8) (Originator)
Message type: RELEASE (77)
[08 02 81 81]
Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
Ext: 1 Cause: Unallocated (unassigned) number (1), class = Normal Event (0) ]
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 8/0x8) (Terminator)
< Message type: RELEASE COMPLETE (90)
q931.c:3719 q931_receive: call 32776 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null

You are sending RELEASE, not the PSTN. The corresponding message from the PSTN is DISCONNECT, and cannot be (and is not, in the trace) sent until the inband progress is complete.

I suspect you need to tell your PSTN provider not to send inband progress, as I don’t think you can distinguish between progress messages that precede a successful setup and ones that precede a disconnect.