Setup is:<br><br>/etc/dahdi/system.conf:<br>span=1,0,0,ccs,ami<br>bchan=1,2<br>hardhdlc=3<br>span=2,1,0,ccs,ami<br>bchan=4,5<br>hardhdlc=6<br><br>/etc/asterisk/chan_dahdi.conf<br>[trunkgroups]<br>[channels]<br>context=isdntrunk<br>
switchtype=euroisdn<br>group=1<br>immediate=no<br>signalling=bri_cpe<br>channel=>1-2<br>group=2<br>signalling=bri_net<br>channel=>4-5<br><br>/etc/asterisk/extensions.ael:<br>context isdntrunk {<br> _X. => {<br>
NoOp(Call from ${CALLERID(num)});<br> Dial(SIP/7530);<br> Hangup();<br> };<br>};<br><br>context mylocal {<br> _10. => {<br> ChanIsAvail(DAHDI/g1);<br>
NoOp(${AVAILCHAN});<br> NoOp(${AVAILSTATUS});<br> ChanIsAvail(DAHDI/g2);<br> NoOp(${AVAILCHAN});<br> NoOp(${AVAILSTATUS});<br> Dial(DAHDI/g2/${EXTEN:1});<br>
Hangup();<br> };<br> _753[0356] => {<br> Dial(SIP/${EXTEN});<br> Hangup();<br> };<br>};<br><br><br>When dialing from 7533 to 10123456789 :<br><br> -- Executing [10123456@mylocal:1] ChanIsAvail("SIP/7533-0a0c7968", "DAHDI/g1") in new stack<br>
-- Executing [10123456@mylocal:2] NoOp("SIP/7533-0a0c7968", "") in new stack<br> -- Executing [10123456@mylocal:3] NoOp("SIP/7533-0a0c7968", "34") in new stack<br> -- Executing [10123456@mylocal:4] ChanIsAvail("SIP/7533-0a0c7968", "DAHDI/g2") in new stack<br>
-- Hungup 'DAHDI/4-1'<br> -- Executing [10123456@mylocal:5] NoOp("SIP/7533-0a0c7968", "DAHDI/4-1") in new stack<br> -- Executing [10123456@mylocal:6] NoOp("SIP/7533-0a0c7968", "0") in new stack<br>
-- Executing [10123456@mylocal:7] Dial("SIP/7533-0a0c7968", "DAHDI/g2/0123456") in new stack<br> -- Requested transfer capability: 0x00 - SPEECH<br> -- Called g2/0123456<br>[Dec 1 21:56:16] NOTICE[3948]: chan_dahdi.c:10781 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1<br>
[Dec 1 21:56:16] NOTICE[3948]: chan_dahdi.c:10781 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1<br>[Dec 1 21:56:16] NOTICE[3949]: chan_dahdi.c:10781 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 2<br>
== Primary D-Channel on span 2 down<br>[Dec 1 21:56:17] WARNING[3949]: chan_dahdi.c:3156 pri_find_dchan: No D-channels available! Using Primary channel 6 as D-channel anyway!<br>[Dec 1 21:56:17] WARNING[3955]: app_dial.c:1067 wait_for_answer: Unable to forward voice or dtmf<br>
-- Hungup 'DAHDI/4-1'<br><br>and with pri set debug on span 2, my console if rapidly fulling with tens of lines like:<br><br>-- Got SABME from cpe peer.<br>Sending Unnumbered Acknowledgement<br>q921.c:782 q921_reset: q921_state now is Q921_LINK_CONNECTION_RELEASED<br>
q921.c:733 q921_dchannel_up: q921_state now is Q921_LINK_CONNECTION_ESTABLISHED<br>-- Got SABME from cpe peer.<br>Sending Unnumbered Acknowledgement<br>q921.c:782 q921_reset: q921_state now is Q921_LINK_CONNECTION_RELEASED<br>
<br><br> dahdi show status<br>Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO<br>B4XXP (PCI) Card 0 Span 1 OK 0 0 0 CCS AMI YEL 0 db (CSU)/0-133 feet (DSX-1)<br>
B4XXP (PCI) Card 0 Span 2 OK 0 0 0 CCS AMI YEL 0 db (CSU)/0-133 feet (DSX-1)<br>B4XXP (PCI) Card 0 Span 3 RED 0 0 0 CAS Unk YEL 0 db (CSU)/0-133 feet (DSX-1)<br>
B4XXP (PCI) Card 0 Span 4 RED 0 0 0 CAS Unk YEL 0 db (CSU)/0-133 feet (DSX-1)<br><br>dahdi show version<br>DAHDI Version: 2.1.0-rc5 Echo Canceller:<br><br><br># lsmod<br>Module Size Used by<br>
dahdi_dummy 3236 0<br>xpp_usb 13676 0<br>xpp 131296 1 xpp_usb<br>wcb4xxp 77828 6<br>wctdm 32876 0<br>wcfxo 9888 0<br>wctdm24xxp 108320 0<br>
wcte11xp 20992 0<br>wct1xxp 11520 0<br>wcte12xp 58560 0<br>wct4xxp 291680 0<br>dahdi 182792 22 dahdi_dummy,xpp,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,wct4xxp<br>
firmware_class 6816 3 wctdm24xxp,wcte12xp,wct4xxp<br>crc_ccitt 2080 1 dahdi<br><br><br><br><br>Observations:<br>span1 channels (ie NT port) are always busy (cause 34) while span2 channels (ie IE port) are available,<br>
before hanging up, I can hear a weird noise in my phone handset.<br><br>Question:<br>1. Why in the first place, should spans 1 and 2 get different availability as both are connected to each other ?<br>2. Is bri_net the protocol name for TE ports and bri_cpe for NT-point-to-point ?<br>
3. Is it normal that dahdi_dummy is not used ?<br>4. Any idea ?<br><br>Regards<br><br><br><br>