[Asterisk-Users] Protocol Error (6) using Zaphfc

Klaus-Peter Junghanns kpj at junghanns.net
Mon Jun 28 04:56:47 MST 2004


Hei,

please never try to dial out on a particular b channel, you have to dial
out on a zaptel group which includes both b channels of the BRI line.
In a p2mp setup YOU cannot know which b channel will be chosen!

exten => _X.,1,Dial(ZAP/g1/${EXTEN})

will do....(note the 'g')....

best regards

Klaus

Am Mo, 2004-06-28 um 12.45 schrieb nrb:
> Hi!
> 
> Has anybody seen anything like this using zaphfc?
> On outgoing calls (via isdn)  , the line gets hung-up as soon as the
> called
> party answers.
> As seen below i get some protocol error (6) - but i'm not sure if this
> is
> related to the "hang-up" which  apparently comes a little earlier?!
> Incomming calls on the isdn (zaphfc) interface is working just fine
> 
> (P.S. what about the D-channel going up & down all the time - is that
> normal? )
> 
> 
> Kind Regards
> NRB
> 
> 
> Setup
> Bri-stuff - 0.0.20
> Asterisk CVS-HEAD-06/23/04-15:45:48 built by
> root at localhost.localdomain on a
> i686 running Linux
> 
> Zapata.conf:
> [channels]
> switchtype = euroisdn
> ; p2mp TE mode
> signalling = bri_cpe_ptmp
> ; p2p TE mode
> ;signalling = bri_cpe
> ; p2mp NT mode
> ;signalling = bri_net_ptmp
> ; p2p NT mode
> ;signalling = bri_net
> pridialplan=local
> prilocaldialplan=local
> echocancel=yes
> immediate=yes
> group = 1
> context=demo
> channel => 1-2
> 
> Zaptel.conf:
> loadzone=nl
> defaultzone=nl
> span=1,1,3,ccs,ami
> bchan=1-2
> dchan=3
> 
> Example where a sip client (2203) is calling xxxx7024
> 
> From Asterisk:
> == D-Channel on span 1 down
> == D-Channel on span 1 up
> -- Executing Dial("SIP/2203-5779", "Zap/1/xxxx7024") in new stack
> -- Making new call for cr 135
> > Protocol Discriminator: Q.931 (8) len=32
> > Call Ref: len= 1 (reference 7/0x7) (Originator)
> > Message type: SETUP (5)
> > Bearer Capability (len= 3) [ 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)
> > Channel ID (len= 3) [ Ext: 1 IntID: Implicit, Other Spare: 0,
> Exclusive
> Dchan: 0
> > ChanSel: B1 channel
> ]
> > Calling Number (len= 8) [ Ext: 0 TON: Subscriber Number (4) NPI:
> ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> > Presentation: Presentation permitted, user number passed network
> screening
> (1) '2203' ]
> > Called Number (len=11) [ Ext: 1 TON: Subscriber Number (4) NPI:
> ISDN/Telephony Numbering Plan (E.164/E.163) (1) 'xxxx7024' ]
> > Sending Complete (len= 0)
> -- Called 1/xxxx7024
> < Protocol Discriminator: Q.931 (8) len=7
> < Call Ref: len= 1 (reference 135/0x87) (Terminator)
> < Message type: CALL PROCEEDING (2)
> < Channel ID (len= 3) [ Ext: 1 IntID: Implicit, Other Spare: 0,
> Exclusive
> Dchan: 0
> < ChanSel: B1 channel
> ]
> -- Processing IE 24 (Channel Identification)
> < Protocol Discriminator: Q.931 (8) len=12
> < Call Ref: len= 1 (reference 135/0x87) (Terminator)
> < Message type: ALERTING (1)
> < Progress Indicator (len= 2) [ Ext: 1 Coding: CCITT (ITU) standard
> (0) 0: 0
> Location: Network beyond the interworking point (10)
> < Ext: 1 Progress Description: Inband information or appropriate
> pattern now
> available. (8) ]
> < Progress Indicator (len= 2) [ Ext: 1 Coding: CCITT (ITU) standard
> (0) 0: 0
> Location: Network beyond the interworking point (10)
> < Ext: 1 Progress Description: Unknown (1) ]
> -- Processing IE 30 (Progress Indicator)
> -- Processing IE 30 (Progress Indicator)
> -- Zap/1-1 is ringing
> < Protocol Discriminator: Q.931 (8) len=15
> < Call Ref: len= 1 (reference 135/0x87) (Terminator)
> < Message type: CONNECT (7)
> < Progress Indicator (len= 2) [ Ext: 1 Coding: CCITT (ITU) standard
> (0) 0: 0
> Location: Public network serving the remote user (4)
> < Ext: 1 Progress Description: Unknown (4) ]
> < Time Date (len= 5) [ 04-06-28 11:58 ]
> -- Processing IE 30 (Progress Indicator)
> -- Processing IE 41 (Date/Time)
> > Protocol Discriminator: Q.931 (8) len=4
> > Call Ref: len= 1 (reference 7/0x7) (Originator)
> > Message type: CONNECT ACKNOWLEDGE (15)
> -- Zap/1-1 answered SIP/2203-5779
> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate
> Connect
> Request
> > Protocol Discriminator: Q.931 (8) len=8
> > Call Ref: len= 1 (reference 7/0x7) (Originator)
> > Message type: DISCONNECT (69)
> > Cause (len= 2) [ 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'
> == Spawn extension (intern, xxxx7024, 1) exited non-zero on
> 'SIP/2203-5779'
> < Protocol Discriminator: Q.931 (8) len=4
> < Call Ref: len= 1 (reference 135/0x87) (Terminator)
> < Message type: RELEASE (77)
> -- Channel 1, span 1 got hangup
> < Protocol Discriminator: Q.931 (8) len=11
> < Call Ref: len= 1 (reference 135/0x87) (Terminator)
> < Message type: RELEASE (77)
> < Cause (len= 5) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0
> Location:
> Public network serving the local user (2)
> < Ext: 1 Cause: Recover on timer expiry (102), class = Protocol Error
> (6) ]
> < Cause data 0: 38 (56)
> < Cause data 1: bb (187)
> < Cause data 2: 5e (94)
> -- Processing IE 8 (Cause)
> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate
> Release
> Request
> > Protocol Discriminator: Q.931 (8) len=8
> > Call Ref: len= 1 (reference 7/0x7) (Originator)
> > Message type: RELEASE COMPLETE (90)
> > Cause (len= 2) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0
> Location:
> Private network serving the local user (1)
> > Ext: 1 Cause: Recover on timer expiry (102), class = Protocol Error
> (6) ]
> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
> NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
> == D-Channel on span 1 down
> == D-Channel on span 1 up





More information about the asterisk-users mailing list