PRI disconnect with cause 1

Hi,

Asterisk 1.8.11.0
Dahdi 2.4.1.2-10
Libpri 1.4.12-0

I have a PRI in Zambia. The box was running an old version of asterisk (1.2) and a new clean install of asterisk was required. Backed up all the relevant configurations in case I need to review the configuration.

The only issue experienced is the fact I can not make an outbound call over the PRI. Inbound calls work and the PRI is up. Outbound calls always give me a hangup cause code 1.

[quote]Cause code 1

Unallocated (unassigned) number.

This number is not in the routing table or it has no path across the ISDN cloud (network).

  1. Check routing table to see it the number is available.
  2. Check to make sure the correct digits were dialed and it is a valid number.
    [/quote]

I am certain this is the way I am presenting the call to the provider but I have tried almost every variation of a number possible and I just can’t get a call out. Tried changing the pridialplan, prilocaldialplan to dynamic and manually setting the NPI bit - no luck.

Here is a trace of a call

[quote]originate dahdi/1/021366607 application Playback tt-monkeys
PRI Span: 1 – Making new call for cref 32769
– Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=28
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=1, window is open V(A)=1 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=28
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
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: A-Law (35)
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 > [70 0a 80 30 32 31 33 36 36 36 30 37]
PRI Span: 1 > Called Number (len=12) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) ‘021366607’ ]
PRI Span: 1 > [a1]
PRI Span: 1 > Sending Complete (len= 1)
PRI Span: 1 q931.c:6036 q931_setup: Call 32769 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 1/0x1) (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 0x86c4840 on link 0x893c3dc TEI/SAPI 0/0
PRI Span: 1 – Processing IE 24 (cs0, Channel Identification)
PRI Span: 1 q931.c:8454 post_handle_q931_message: Call 32769 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
Span 1: Processing event PRI_EVENT_PROCEEDING
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=13
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: DISCONNECT (69)
PRI Span: 1 < [08 02 82 81]
PRI Span: 1 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
PRI Span: 1 < Ext: 1 Cause: Unallocated (unassigned) number (1), class = Normal Event (0) ]
PRI Span: 1 < [1e 02 82 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x86c4840 on link 0x893c3dc TEI/SAPI 0/0
PRI Span: 1 – Processing IE 8 (cs0, Cause)
PRI Span: 1 – Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 – Found active call: 0x86c4840 cref:32769
PRI Span: 1 q931.c:8707 post_handle_q931_message: Call 32769 enters state 12 (Disconnect Indication). Hold state: Idle
Span 1: Processing event PRI_EVENT_HANGUP_REQ
– Span 1: Channel 0/1 got hangup request, cause 1
PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:32769
PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle
PRI Span: 1 q931.c:5703 q931_release: Call 32769 enters state 19 (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 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 TEI=0 Transmitting N(S)=2, window is open V(A)=2 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 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 > [08 02 81 81]
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: Unallocated (unassigned) number (1), class = Normal Event (0) ]
– Hungup ‘DAHDI/i1/021366607-1’
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: RELEASE COMPLETE (90)
PRI Span: 1 Received message for call 0x86c4840 on link 0x893c3dc TEI/SAPI 0/0
PRI Span: 1 q931.c:8567 post_handle_q931_message: Call 32769 enters state 0 (Null). Hold state: Idle
PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:32769
PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
PRI Span: 1 Destroying call 0x86c4840, ourstate Null, peerstate Null, hold-state Idle
Span 1: Processing event PRI_EVENT_HANGUP_ACK
[/quote]

There is communication between the PBX and provider as I can see a response to the initial SETUP frame.

Here with my configuration

chan_dahdi.conf

dahdi-channels.conf

[quote]; Span 1: TE2/0/1 “T2XXP (PCI) Card 0 Span 1” (MASTER) HDB3/CCS/CRC4 ClockSource
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63

; Span 2: TE2/0/2 “T2XXP (PCI) Card 0 Span 2” HDB3/CCS/CRC4 RED
group=1,12
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 32-46,48-62
context = default
group = 63
[/quote]

system.conf

[quote]; Span 1: TE2/0/1 “T2XXP (PCI) Card 0 Span 1” (MASTER) HDB3/CCS/CRC4 ClockSource
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63

; Span 2: TE2/0/2 “T2XXP (PCI) Card 0 Span 2” HDB3/CCS/CRC4 RED
group=1,12
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 32-46,48-62
context = default
group = 63
[/quote]

Going to speak to the Telco today with regards to what format the number must be presented. I can’t understand why this configuration which has the same setup as the previous zaptel, yet does not work in DAHDI.

Anyone have any ideas?

Thanks

what happens if you dial the full international dialing number ?

Dialling the whole international number also results in a hangup cause 1 :frowning:

I am reluctant to re-install libpri as I am not in the country but at the moment I have no choice but to try

Sorted out my problem :smiley:

It turned out I required a valid Caller ID it initiate a call

[quote]PRI Span: 1 > Calling Number (len=11) [ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0)
PRI Span: 1 > Presentation: Presentation permitted, user number not screened (0) ‘1366601’ ]
PRI Span: 1 > [70 0e 80 30 30 32 37 37 38 36 36 37 35 38 36 36][/quote]