Strange Caller Dialed Number Behavior

Hello All,

We recently switched 3 of our locations PRI Service to Spectrum Enterprise from our another company. These are connected to our FreePBX server via a Sangoma A102 PRI card. When an outbound calls is connected to the other side, I began to see this display on my Digium D40 IP Phones:

I did some debugging of the PRI via asterisk and found the following. The line in bold is what I believe the phone display is trying to read. This seems to only appear after the call connects.
> PRI Span: 1 – Making new call for cref 33438
> PRI Span: 1
> PRI Span: 1 > DL-DATA request
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=47
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: SETUP (5)
> PRI Span: 1 TEI=0 Transmitting N(S)=33, window is open V(A)=33 K=7
> PRI Span: 1
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=47
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: SETUP (5)
> PRI Span: 1 > [04 03 80 90 a2]
> PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
> PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
> PRI Span: 1 > User information layer 1: u-Law (34)
> PRI Span: 1 > [18 03 a1 83 81]
> PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
> PRI Span: 1 > ChanSel: As indicated in following octets
> PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
> PRI Span: 1 > Ext: 1 Channel: 1 Type: CPE]
> PRI Span: 1 > [1e 02 80 83]
> PRI Span: 1 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
> PRI Span: 1 > Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ]
> PRI Span: 1 > [6c 0c 21 80 34 31 39 32 32 38 31 31 34 35]
> PRI Span: 1 > Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> PRI Span: 1 > Presentation: Presentation permitted, user number not screened (0) ‘4192281145’ ]
> PRI Span: 1 > [70 0c 80 31 39 33 37 34 39 34 36 31 39 39]
> PRI Span: 1 > Called Number (len=14) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) ‘19374946199’ ]
> PRI Span: 1 q931.c:6036 q931_setup: Call 33438 enters state 1 (Call Initiated). Hold state: Idle
> PRI Span: 1
> PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=10
> PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent to originator)
> PRI Span: 1 < Message Type: CALL PROCEEDING (2)
> PRI Span: 1 < [18 03 a9 83 81]
> PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
> PRI Span: 1 < ChanSel: As indicated in following octets
> PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
> PRI Span: 1 < Ext: 1 Channel: 1 Type: CPE]
> PRI Span: 1 Received message for call 0x7fdd100191f0 on link 0x2db96b0 TEI/SAPI 0/0
> PRI Span: 1 – Processing IE 24 (cs0, Channel Identification)
> PRI Span: 1 q931.c:8454 post_handle_q931_message: Call 33438 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
> Span 1: Processing event PRI_EVENT_PROCEEDING(13)
> PRI Span: 1
> PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=9
> PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent to originator)
> PRI Span: 1 < Message Type: PROGRESS (3)
> PRI Span: 1 < [1e 02 81 88]
> PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
> PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
> PRI Span: 1 Received message for call 0x7fdd100191f0 on link 0x2db96b0 TEI/SAPI 0/0
> PRI Span: 1 – Processing IE 30 (cs0, Progress Indicator)
> Span 1: Processing event PRI_EVENT_PROGRESS(17)
> PRI Span: 1
> PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=20
> PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent to originator)
> PRI Span: 1 < Message Type: CONNECT (7)
> PRI Span: 1 < [4c 0d 80 80 31 39 33 37 34 39 34 36 31 39 39]
> PRI Span: 1 < Connected Number (len=15) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) ‘▒19374946199’ ]
> PRI Span: 1 Received message for call 0x7fdd100191f0 on link 0x2db96b0 TEI/SAPI 0/0
> PRI Span: 1 – Processing IE 76 (cs0, Connected Number)
> PRI Span: 1 q931.c:8384 post_handle_q931_message: Call 33438 enters state 8 (Connect Request). Hold state: Idle
> Span 1: Processing event PRI_EVENT_ANSWER(8)
> PRI Span: 1 q931.c:6122 q931_connect_acknowledge: Call 33438 enters state 10 (Active). Hold state: Idle
> PRI Span: 1
> PRI Span: 1 > DL-DATA request
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=5
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: CONNECT ACKNOWLEDGE (15)
> PRI Span: 1 TEI=0 Transmitting N(S)=34, window is open V(A)=34 K=7
> PRI Span: 1
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=5
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: CONNECT ACKNOWLEDGE (15)
> PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:33438
> PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Active, peerstate Active, hold-state Idle
> PRI Span: 1 q931.c:5783 q931_disconnect: Call 33438 enters state 11 (Disconnect Request). Hold state: Idle
> PRI Span: 1
> PRI Span: 1 > DL-DATA request
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: DISCONNECT (69)
> PRI Span: 1 TEI=0 Transmitting N(S)=35, window is open V(A)=35 K=7
> PRI Span: 1
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: DISCONNECT (69)
> PRI Span: 1 > [08 02 81 90]
> PRI Span: 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> PRI Span: 1 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
> PRI Span: 1
> PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
> PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent to originator)
> PRI Span: 1 < Message Type: RELEASE (77)
> PRI Span: 1 Received message for call 0x7fdd100191f0 on link 0x2db96b0 TEI/SAPI 0/0
> PRI Span: 1 q931.c:8620 post_handle_q931_message: Call 33438 enters state 0 (Null). Hold state: Idle
> Span 1: Processing event PRI_EVENT_HANGUP(6)
> PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:33438
> PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Null, peerstate Release Request, hold-state Idle
> PRI Span: 1
> PRI Span: 1 > DL-DATA request
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: RELEASE COMPLETE (90)
> PRI Span: 1 TEI=0 Transmitting N(S)=36, window is open V(A)=36 K=7
> PRI Span: 1
> PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
> PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 670/0x29E) (Sent from originator)
> PRI Span: 1 > Message Type: RELEASE COMPLETE (90)
> PRI Span: 1 > [08 02 81 90]
> PRI Span: 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> PRI Span: 1 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
> PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:33438
> PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
> PRI Span: 1 Destroying call 0x7fdd100191f0, ourstate Null, peerstate Null, hold-state Idle

I also did a packet capture of the conversation between the Sangoma card and the Spectrum PRI equipment. During the Connect message, the Spectrum equipment seems to be sending “Connected Number” information back to the FreePBX system.

Frame 10: 24 bytes on wire (192 bits), 24 bytes captured (192 bits)
Link Access Procedure, Channel D (LAPD)
Q.931
Protocol discriminator: Q.931
Call reference value length: 2
Call reference flag: Message sent to originating side
Call reference value: 02a2
Message type: CONNECT (0x07)
Connected number: ‘\20019374946199’
Information element: Connected number
Length: 13
… 0000 = Numbering plan: Unknown (0x0)
.000 … = Number type: Unknown (0x0)
1… … = Extension indicator: last octet
Connected party number digits: \357\277\27519374946199

All 3 locations with new Spectrum PRI exhibit the same behavior. I did the same Debugs from 3 other phone systems with PRIs from AT&T and TWC (now Spectrum) and I am not seeing the “Connected Number” Information being sent. Those systems are all working properly. The “Connected Number” information might be irrelevant but I felt it was worth mentioning. Dahdi configs appear to be the same between all phone systems that have this issue and the ones that are working properly.

Is there a setting I should be looking at in FreePBX or the Dahdi config that will help correct this issue? Any help is appreciated. If there is any more info anyone would like or needs please feel free to ask.

Thanks!

solved: https://issues.asterisk.org/jira/browse/PRI-183