Following is my scenario to connect back to back PRI of two asterisk server. PRI cards are Sangoma A102D [Asterisk1]------------[PRI]-Cross Cable---------[Asterisk2] Asterisk1 ; Span 1 (MASTER) switchtype = national ; commonly referred to as NI2 context = from-pstn group = 0,24 echocancel = yes signalling = pri_net channel => 1-23 Asterisk2 ; Span 1 switchtype = national ; commonly referred to as NI2 context = from-pstn group = 0,24 echocancel = yes signalling = pri_cpe channel => 1-23 Following is my extensions.conf stuff on both machine (extension number could be change) [from-pstn] exten => s,1,Answer() same => n,Playback(hello-world) same => n,Hangup() [from-sip] exten => _7XXX,1,Answer() same => n,Dial(SIP/${EXTEN}) same => n,Hangup() exten => 7527,1,Dial(DAHDI/G0/7527) But i am getting following error when i am calling from A to B satish-desktop*CLI> [Mar 25 15:40:19] WARNING[4519]: app_dial.c:2039 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 34 - Circuit/channel congestion) [Mar 25 15:40:19] WARNING[4519]: acl.c:698 ast_ouraddrfor: Cannot connect [Mar 25 15:40:19] WARNING[4519]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0x14249d0 (len 763) to 0.0.29.103:5060 returned -1: Invalid argument [Mar 25 15:40:19] WARNING[4371]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0x14249d0 (len 763) to 0.0.29.103:5060 returned -1: Invalid argument -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110325/88a63480/attachment.htm>
Did you check so see if the pri is up? Also, make sure wanpipe & dahdi is setup correctly. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of satish patel Sent: Friday, March 25, 2011 3:41 PM To: asterisk-users Subject: [asterisk-users] Back-to-back asterisk PRI issue Following is my scenario to connect back to back PRI of two asterisk server. PRI cards are Sangoma A102D [Asterisk1]------------[PRI]-Cross Cable---------[Asterisk2] Asterisk1 ; Span 1 (MASTER) switchtype = national ; commonly referred to as NI2 context = from-pstn group = 0,24 echocancel = yes signalling = pri_net channel => 1-23 Asterisk2 ; Span 1 switchtype = national ; commonly referred to as NI2 context = from-pstn group = 0,24 echocancel = yes signalling = pri_cpe channel => 1-23 Following is my extensions.conf stuff on both machine (extension number could be change) [from-pstn] exten => s,1,Answer() same => n,Playback(hello-world) same => n,Hangup() [from-sip] exten => _7XXX,1,Answer() same => n,Dial(SIP/${EXTEN}) same => n,Hangup() exten => 7527,1,Dial(DAHDI/G0/7527) But i am getting following error when i am calling from A to B satish-desktop*CLI> [Mar 25 15:40:19] WARNING[4519]: app_dial.c:2039 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 34 - Circuit/channel congestion) [Mar 25 15:40:19] WARNING[4519]: acl.c:698 ast_ouraddrfor: Cannot connect [Mar 25 15:40:19] WARNING[4519]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0x14249d0 (len 763) to 0.0.29.103:5060 returned -1: Invalid argument [Mar 25 15:40:19] WARNING[4371]: chan_sip.c:3115 __sip_xmit: sip_xmit of 0x14249d0 (len 763) to 0.0.29.103:5060 returned -1: Invalid argument -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110325/f524e7e6/attachment.htm>
satish patel wrote:> group = 0,24Granted, I'm still running 1.4.x, but I don't believe the above is valid. My guess is it should be: group = 0 Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
On Friday 25 March 2011 14:40:40 satish patel wrote:> Following is my scenario to connect back to back PRI of two asterisk > server. PRI cards are Sangoma A102D > > [Asterisk1]------------[PRI]-Cross Cable---------[Asterisk2] > > Asterisk1 > > ; Span 1 (MASTER) > switchtype = national ; commonly referred to as NI2 > context = from-pstn > group = 0,24 > echocancel = yes > signalling = pri_net > channel => 1-23 > > > Asterisk2 > > ; Span 1 > switchtype = national ; commonly referred to as NI2 > context = from-pstn > group = 0,24 > echocancel = yes > signalling = pri_cpe > channel => 1-23Here's one confusing part. You're saying that calls that come from the master to the slave end up in context from-pstn (on the slave), but calls from the slave to the master ALSO end up in from-pstn (on the master). Seems like one of them should be "from-internal" or the like. I'm sure some of your problem emanate from these settings.> satish-desktop*CLI> > [Mar 25 15:40:19] WARNING[4519]: app_dial.c:2039 dial_exec_full: Unable > to create channel of type 'DAHDI' (cause 34 - Circuit/channel > congestion)Check the other side for error messages.> [Mar 25 15:40:19] WARNING[4519]: acl.c:698 ast_ouraddrfor: > Cannot connect [Mar 25 15:40:19] WARNING[4519]: chan_sip.c:3115 > __sip_xmit: sip_xmit of 0x14249d0 (len 763) to 0.0.29.103:5060 returned > -1: Invalid argument [Mar 25 15:40:19] WARNING[4371]: chan_sip.c:3115 > __sip_xmit: sip_xmit of 0x14249d0 (len 763) to 0.0.29.103:5060 returned > -1: Invalid argumentThis problem is due to a misconfiguration. Asterisk cannot handle the local network being addressed as the 0.0.0.0 network. You need to use the full local address. -- Tilghman
Both server has same content in system.conf file. satish at shirley:~$ cat /etc/dahdi/system.conf # Global data loadzone = us defaultzone = us span = 1,1,0,esf,b8zs bchan = 1-23 dchan=24 echocanceller = mg2,1-23> From: tilghman at meg.abyt.es > To: asterisk-users at lists.digium.com > Date: Fri, 25 Mar 2011 17:23:28 -0500 > Subject: Re: [asterisk-users] Back-to-back asterisk PRI issue > > On Friday 25 March 2011 16:23:27 satish patel wrote: > > I just start "Pri set debug on span 1" and its showing D-channel is > > down > > How do you have the underlying T1 signalling set up in > /etc/dahdi/system.conf (on both ends)? > > -- > Tilghman > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110325/b0a28396/attachment.htm>
Check out this https://issues.asterisk.org/view.php?id=17270> From: tilghman at meg.abyt.es > To: asterisk-users at lists.digium.com > Date: Fri, 25 Mar 2011 17:23:28 -0500 > Subject: Re: [asterisk-users] Back-to-back asterisk PRI issue > > On Friday 25 March 2011 16:23:27 satish patel wrote: > > I just start "Pri set debug on span 1" and its showing D-channel is > > down > > How do you have the underlying T1 signalling set up in > /etc/dahdi/system.conf (on both ends)? > > -- > Tilghman > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110325/55e20545/attachment.htm>
satish patel
2011-Mar-27 16:12 UTC
[asterisk-users] [SOLVED] Back-to-back asterisk PRI issue
After following changes my D-Channel comes up and its working!!!!!!!!!!!!!!! :) vi /etc/wanpipe/wanpipe*.conf TDMV_DCHAN = 0 TDMV_HWEC = NO @Thanks all of them who helped here... No beer for others ;) -S From: satish_lx at hotmail.com To: asterisk-users at lists.digium.com Date: Fri, 25 Mar 2011 23:44:31 +0000 Subject: Re: [asterisk-users] Back-to-back asterisk PRI issue Check out this https://issues.asterisk.org/view.php?id=17270> From: tilghman at meg.abyt.es > To: asterisk-users at lists.digium.com > Date: Fri, 25 Mar 2011 17:23:28 -0500 > Subject: Re: [asterisk-users] Back-to-back asterisk PRI issue > > On Friday 25 March 2011 16:23:27 satish patel wrote: > > I just start "Pri set debug on span 1" and its showing D-channel is > > down > > How do you have the underlying T1 signalling set up in > /etc/dahdi/system.conf (on both ends)? > > -- > Tilghman > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110327/9db46b70/attachment.htm>