[Asterisk-Users] priindication passthru TE410P EuroISDN?

Bruno Voigt Bruno.Voigt at ic3s.de
Thu Sep 22 14:49:25 MST 2005


Hi all,
I have to asterisk-1.0.9BRIstuffed-0.2.0n boxes each equipped with a TE410P.

Box A is connected with pri1 to the PSTN.
Box B is connected with pri1 (cpe) to the Box A at pri2 (net).

Now I want Box B to dial out to the PSTN tunneled thru Box A
and have it get all ISDN indications in case of call failure, eg.
unallocated destination number etc.

But currently Box B always gets only "normal clearing".
Interestingly on Box A the NoOp Output of PRI_CAUSE and CAUSECODE after
the dial attempt
to an unallocated number is also empty.

How to access/query the reason for a failed ISDN dial attempt from the
dial plan,
I expected at last PRI_CAUSE to be filled.

Is it possible at all with asterisk - what modification to my attached
configs would you suggest?
Which version is better suited ? BRIstuffed or plain asterisk with
regards to this issue.
What about asterisk 1.2 - are there any enhancements in this area?

Thanks in advance for all hints,
Bruno

------------
Log output from Box A:

< Protocol Discriminator: Q.931 (8)  len=46
< Call Ref: len= 2 (reference 31/0x1F) (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)
<                              Ext: 1  User information layer 1: A-Law (35)
< [18 03 a9 83 9f]
< 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: 31 ]
< [6c 0d 41 83 30 31 37 32 32 32 37 30 32 30 31]
< Calling Number (len=15) [ Ext: 0  TON: Subscriber Number (4)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation allowed of
network provided number (3) '01722270201' ]
< [70 0e c1 30 34 31 30 39 30 30 30 30 30 30 30 37]
< Called Number (len=16) [ Ext: 1  TON: Subscriber Number (4)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0410900000007' ]
-- Making new call for cr 31
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
> Protocol Discriminator: Q.931 (8)  len=14
> Call Ref: len= 2 (reference 32799/0x801F) (Terminator)
> Message type: SETUP ACKNOWLEDGE (13)
> [18 03 a9 83 9f]
> 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: 31 ]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)
0: 0   Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Called
equipment is non-ISDN. (2) ]
    -- Accepting overlap voice call from '01722270201' to
'0410900000007' on channel 0/31, span 2
    -- Starting simple switch on 'Zap/124-1'
    -- Executing Dial("Zap/124-1", "Zap/r1/0410900000007") in new stack
-- Making new call for cr 32770
    -- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (8)  len=46
> Call Ref: len= 2 (reference 2/0x2) (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)
>                              Ext: 1  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 0d 41 83 30 31 37 32 32 32 37 30 32 30 31]
> Calling Number (len=15) [ Ext: 0  TON: Subscriber Number (4)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>                           Presentation: Presentation allowed of
network provided number (3) '01722270201' ]
> [70 0e c1 30 34 31 30 39 30 30 30 30 30 30 30 37]
> Called Number (len=16) [ Ext: 1  TON: Subscriber Number (4)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0410900000007' ]
    -- Called r1/0410900000007
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 32799/0x801F) (Terminator)
> Message type: PROGRESS (3)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)
0: 0   Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Inband
information or appropriate pattern now available. (8) ]
< Protocol Discriminator: Q.931 (8)  len=10
< Call Ref: len= 2 (reference 32770/0x8002) (Terminator)
< Message type: SETUP ACKNOWLEDGE (13)
< [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)
< Protocol Discriminator: Q.931 (8)  len=17
< Call Ref: len= 2 (reference 32770/0x8002) (Terminator)

< Message type: DISCONNECT (69)
< [08 02 82 81]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0  
Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Unallocated (unassigned) number (1),
class = Normal Event (0) ]


< [1e 02 82 88]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)
0: 0   Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Inband
information or appropriate pattern now available. (8) ]
< [1e 02 82 82]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)
0: 0   Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Called
equipment is non-ISDN. (2) ]
-- Processing IE 8 (cs0, Cause)
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 30 (cs0, Progress Indicator)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication,
peerstate Disconnect Request
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 2/0x2) (Originator)
> Message type: RELEASE (77)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0  
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
    -- Hungup 'Zap/1-1'
  == No one is available to answer at this time
    -- Executing NoOp("Zap/124-1", "PRI_CAUSE= CAUSECODE=") in new stack

Sep 22 23:35:25 WARNING[4323]: pbx.c:1952 ast_pbx_run: Timeout, but no
rule 't' in context 'pri2'
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 32770/0x8002) (Terminator)
< Message type: RELEASE COMPLETE (90)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Overlap Receiving,
peerstate Overlap sending
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 32799/0x801F) (Terminator)
> Message type: DISCONNECT (69)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0  
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
    -- Hungup 'Zap/124-1'
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 31/0x1F) (Originator)
< Message type: RELEASE (77)
< [08 02 81 90]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0  
Location: Private network serving the local user (1)
<                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
-- Processing IE 8 (cs0, Cause)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release
Request
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 32799/0x801F) (Terminator)
> Message type: RELEASE COMPLETE (90)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0  
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
>NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
> NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate
Null                                                                                      


-------------
Log output from Box B:

   -- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (8)  len=46
> Call Ref: len= 2 (reference 33/0x21) (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)
>                              Ext: 1  User information layer 1: A-Law (35)
> [18 03 a9 83 82]
> 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: 2 ]
> [6c 0d 41 83 30 31 37 32 32 32 37 30 32 30 31]
> Calling Number (len=15) [ Ext: 0  TON: Subscriber Number (4)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>                           Presentation: Presentation allowed of
network provided number (3) '01722270201' ]
> [70 0e c1 30 34 31 30 39 30 30 30 30 30 30 30 37]
> Called Number (len=16) [ Ext: 1  TON: Subscriber Number (4)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0410900000007' ]
    -- Called r1/0410900000007
< Protocol Discriminator: Q.931 (8)  len=14
< Call Ref: len= 2 (reference 32801/0x8021) (Terminator)
< Message type: SETUP ACKNOWLEDGE (13)
< [18 03 a9 83 82]
< 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: 2 ]
< [1e 02 81 82]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)
0: 0   Location: Private network serving the local user (1)
<                               Ext: 1  Progress Description: Called
equipment is non-ISDN. (2) ]
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 30 (cs0, Progress Indicator)
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 32801/0x8021) (Terminator)
< Message type: PROGRESS (3)
< [1e 02 81 88]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)
0: 0   Location: Private network serving the local user (1)
<                               Ext: 1  Progress Description: Inband
information or appropriate pattern now available. (8) ]
-- Processing IE 30 (cs0, Progress Indicator)
    -- Zap/2-1 is making progress passing it to
Local/0410900000007 at test-dial-5d75,2
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 32801/0x8021) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 81 90]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0  
Location: Private network serving the local user (1)
<                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
-- Processing IE 8 (cs0, Cause)
    -- Channel 0/2, span 1 got hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication,
peerstate Disconnect Request
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 33/0x21) (Originator)
> Message type: RELEASE (77)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0  
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
>    -- Hungup 'Zap/2-1'
 > == No one is available to answer at this time


-------------
context [pri2] of Box A:
exten => _X.,1,Dial(Zap/r1/${EXTEN})
exten => _X.,2,NoOp(PRI_CAUSE=${PRI_CAUSE} CAUSECODE=${CAUSECODE})

-------------
zapata.conf of Box A & B:
[channels]

switchtype=euroisdn
pridialplan=local
prilocaldialplan=local
priindication=passthrough
;priindication=outofband ; both tested..
internationalprefix=00
nationalprefix=0
usecallingpres=yes
hidecallerid=no
busydetect=no   ; not need on pri
callprogress=no
callwaitingcallerid=yes  ; show callerid on callwaitingcalls
echotraining=no
echocancel=yes
echocancelwhenbridged=no
overlapdial=yes
immediate=no
callerid=asreceived
language=de
rxgain=0.0
txgain=0.0

group=1
signalling=pri_cpe
context=pri1
channel => 1-15,17-31

group=2
signalling=pri_net
context=pri2
channel =>32-46,48-62
-------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bruno.Voigt.vcf
Type: text/x-vcard
Size: 270 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050922/b04ce406/Bruno.Voigt.vcf


More information about the asterisk-users mailing list