Chris Bshaw
2003-Jul-11 07:50 UTC
[Asterisk-Users] [Q]: Dialin problems over E1 on a Digium E100P
Hi.... Apologies for the length of this, but any help would be greatly appreciated ;-)... I have installed and configured a Digium E100P on my Asterisk PBX and I have connected this to an 8 port E1 VoIP gateway on a Cisco 6509. There is also an external E1 link from our Telco plugged into one of the other ports on this gateway and this gateway is in turn registered with a Cisco CallManager which we use for our main IP telephony system. Hanging off my Asterisk PBX I have 2 Cisco 7940's converted to SIP. I can dial from my Asterisk/SIP extensions to any CallManager extension and it works fine. I can see the call go out on the E1 link and everything works fine. I can also make external calls from my SIP extensions which go out my Asterisk E1, and then out thru the Telco E1. However, if I try to dial *TO* one of my SIP extensions from a CallManager phone, it doesn't work. I can see the call setting up on the asterisk console, and it says the destination SIP extension is ringing. However, if I pick up the receiver on the Asterisk/SIP extension, the line goes dead. Also, if I don't answer the call at all, on the second ring of the SIP phone, the Callmanager phone drops the connection and I get the following error: WARNING[11276]: File chan_zap.c, Line 5587 (pri_dchannel): Duplicate setup requested on channel 31 already in use on span 1 ....which looks like Asterisk is trying to process the same call twice on the same E1 channel. Also, I find if I dial from the CallManager extension, and then immediately hangup the CM extension, the SIP phone continues to ring for a few rings after the hangup. My /etc/zaptel.conf file looks like so: span=1,1,0,ccs,hdb3,crc4,yellow bchan=1-15 dchan=16 bchan=17-31 loadzone = us defaultzone=us and my /etc/asterisk/zapata.conf file looks like so: context=default switchtype = euroisdn group = 1 signalling = pri_net channel => 1-15,17-31 Also I am not sure if it is relevant but when I start up Asterisk with 'asterisk -vvvc' I get the following warning when it tries to initialize the E1 channel: WARNING[11276]: File chan_zap.c, Line 5341 (zt_pri_error): PRI: Read on 50 failed: Unknown error 500 PRI got event: 5 Below I have attached the output of Asterisk attempting to receive a call from a CM extension with 'pri intense debug span 1' switched on. It appears to show 2 call setup messages. I would be most grateful for any help in solving this. Thanx muchly in advance. Chris Bradshaw. *CLI> pri intense debug span 1 Enabled EXTENSIVE debugging on span 1 *CLI> < [00 01 56 50 08 02 00 02 05 04 03 80 90 a3 18 03 a9 83 9f 6c 06 00 81 31 37 35 36 70 05 80 36 30 30 31 ] < Informational frame: < SAPI: 00 C/R: 0 EA: 0 < TEI: 000 EA: 1 < N(S): 043 0: 0 < N(R): 040 P: 0 < 30 bytes of data -- ACKing all packets from 39 to (but not including) 40 -- Since there was nothing left, stopping T200 counter -- Stopping T203 counter since we got an ACK -- Nothing left, starting T203 counter < Protocol Discriminator: Q.931 (8) len=30 < Call Ref: len= 2 (reference 2/0x2) (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= 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 ] < Calling Number (len= 8) [ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) < Presentation: Unknown (1) '1756' ] < Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '6001' ] Sending Receiver Ready (44)>[00 01 01 58 ] >Supervisory frame: >SAPI: 00 C/R: 0 EA: 0 > TEI: 000 EA: 1 >Zero: 0 S: 0 01: 1 [ RR (receive ready) ] >N(R): 044 P/F: 0 >0 bytes of data-- Accepting call from '1756' to '6001' on channel 31, span 1 -- Executing Dial("Zap/31-1", "SIP/6001@10.7.0.5") in new stack -- Called 6001@10.7.0.5 -- SIP/10.7.0.5-b4c1 is ringing < [00 01 58 50 08 02 00 02 05 04 03 80 90 a3 18 03 a9 83 9f 6c 06 00 81 31 37 35 36 70 05 80 36 30 30 31 ] < Informational frame: < SAPI: 00 C/R: 0 EA: 0 < TEI: 000 EA: 1 < N(S): 044 0: 0 < N(R): 040 P: 0 < 30 bytes of data -- ACKing all packets from 39 to (but not including) 40 -- Since there was nothing left, stopping T200 counter -- Stopping T203 counter since we got an ACK -- Nothing left, starting T203 counter < Protocol Discriminator: Q.931 (8) len=30 < Call Ref: len= 2 (reference 2/0x2) (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= 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 ] < Calling Number (len= 8) [ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) < Presentation: Unknown (1) '1756' ] < Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '6001' ] Sending Receiver Ready (45)>[00 01 01 5a ] >Supervisory frame: >SAPI: 00 C/R: 0 EA: 0 > TEI: 000 EA: 1 >Zero: 0 S: 0 01: 1 [ RR (receive ready) ] >N(R): 045 P/F: 0 >0 bytes of dataWARNING[11276]: File chan_zap.c, Line 5587 (pri_dchannel): Duplicate setup requested on channel 31 already in use on span 1 -- SIP/10.7.0.5-b4c1 answered Zap/31-1 == Spawn extension (default, 6001, 1) exited non-zero on 'Zap/31-1' -- Hungup 'Zap/31-1' *CLI> < [00 01 01 51 ] < Supervisory frame: < SAPI: 00 C/R: 0 EA: 0 < TEI: 000 EA: 1 < Zero: 0 S: 0 01: 1 [ RR (receive ready) ] < N(R): 040 P/F: 1 < 0 bytes of data -- ACKing all packets from 39 to (but not including) 40 -- Since there was nothing left, stopping T200 counter -- Stopping T203 counter since we got an ACK -- Nothing left, starting T203 counter -- Unsolicited RR with P/F bit, responding Sending Receiver Ready (45)>[00 01 01 5b ] >Supervisory frame: >SAPI: 00 C/R: 0 EA: 0 > TEI: 000 EA: 1 >Zero: 0 S: 0 01: 1 [ RR (receive ready) ] >N(R): 045 P/F: 1 >0 bytes of data_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus