<p>I had the same problem dahdi 2.5.0.2 and libpri 1.4.11 works for my second span, newer libpri wont work<br>
Ast 1.6.2.20<br>
</p>
<div class="gmail_quote">El 10/11/2011 13:39, &quot;Russell Brown&quot; &lt;<a href="mailto:russell@lls.lls.com">russell@lls.lls.com</a>&gt; escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I bit the bullet last night and upgraded from Asterisk 1.4.42 with<br>
Zaptel 1.4.12.1 to Asterisk 1.8.7.1 and DAHDI 2.5.0.2 (libpri is 1.4.12<br>
for both configs).<br>
<br>
Everything went reasonably well except for calls to and from an ISDN PBX<br>
on span 2.....  which now just won&#39;t work :-(<br>
<br>
There&#39;s obviously something different in the Zap/DAHDI settings that I<br>
need to tweak but I&#39;ve read through the config samples and not been able<br>
to find anything.<br>
<br>
Can anyone help?<br>
<br>
For the record, no hardware was changed and everythings been working<br>
fine for yonks with my 1.4.42 based setup.<br>
<br>
FWIW, I also tried DAHDI 2.6.0-rc1 and libpri-1.4.11.5 but neither made<br>
any difference.<br>
<br>
The ISDN PBX (a Network Alchemy Argent) is connected to port 1 on my<br>
Digium Wildcard TE205P.  Port 0 on the card is connected to a BT ISDN30<br>
line which is working fine.<br>
<br>
I copied my settings from /etc/zaptel.conf to /etc/dahdi/system.conf.<br>
<br>
&gt;#       Second port<br>
&gt;span=2,0,2,ccs,hdb3,crc4<br>
&gt;bchan=32-46<br>
&gt;dchan=47<br>
&gt;bchan=48-62<br>
<br>
I copied /etc/asterisk/zapata.conf to /etc/chan_dahdi.conf<br>
<br>
&gt;;<br>
&gt;;       Network Alchemy<br>
&gt;;<br>
&gt;group=2<br>
&gt;switchtype=euroisdn<br>
&gt;context = alchemy<br>
&gt;usecallerid=yes<br>
&gt;signalling = pri_net<br>
&gt;resetinterval=100000000<br>
&gt;callerid=asreceived<br>
&gt;pridialplan=dynamic<br>
&gt;prilocaldialplan=dynamic<br>
&gt;useincomingcalleridondahditransfer = yes<br>
&gt;channel =&gt; 32-40<br>
<br>
<br>
Asterisk/DADHI sees both spans but whenever I try dialing anthing on<br>
span 2 I get the following in /var/log/asterisk/messages<br>
<br>
&gt;[Nov 10 13:28:07] NOTICE[30988] chan_dahdi.c: PRI got event: HDLC Abort (6) on D-channel of span 2<br>
&gt;[Nov 10 13:28:08] WARNING[30988] sig_pri.c: Span 2: No D-channels available!  Using Primary channel as D-channel anyway!<br>
<br>
and on the console I get:<br>
<br>
&gt;-- Executing [*42@from-sip:1] NoOp(&quot;SIP/112-00000003&quot;, &quot;DAHDI Dial Test&quot;) in new stack<br>
&gt;-- Executing [*42@from-sip:2] Dial(&quot;SIP/112-00000003&quot;, &quot;DAHDI/g2/18&quot;) in new stack<br>
&gt;-- Requested transfer capability: 0x00 - SPEECH<br>
&gt;-- Called DAHDI/g2/18<br>
&gt;== Primary D-Channel on span 2 down<br>
&gt;== Primary D-Channel on span 2 up<br>
&gt;-- Span 2: Channel 0/1 got hangup, cause 18<br>
&gt;-- Hungup &#39;DAHDI/i2/18-1&#39;<br>
&gt;== Everyone is busy/congested at this time (1:0/0/1)<br>
&gt;-- Auto fallthrough, channel &#39;SIP/112-00000003&#39; status is &#39;CHANUNAVAIL&#39;<br>
<br>
and then all the Channels on Span 2 get restarted.<br>
<br>
DAHDI is also seeing CRC errors that goes up by one every time the<br>
D-Channel on span 2 goes up/down.<br>
<br>
&gt;asterisk*CLI&gt; dahdi show status<br>
&gt;Description                              Alarms  IRQ    bpviol CRC Fra Codi Options  LBO<br>
&gt;T2XXP (PCI) Card 0 Span 1                OK      0      0      0   CCS HDB3 CRC4     0 db (CSU)/0-133 feet (DSX-1)<br>
&gt;T2XXP (PCI) Card 0 Span 2                OK      0      0      5   CCS HDB3 CRC4     266-399 feet (DSX-1)<br>
&gt;asterisk*CLI&gt;<br>
<br>
If I turn on pri debug on span 2 and make a call then I get<br>
<br>
&gt;    -- Executing [*42@from-sip:1] NoOp(&quot;SIP/112-00000006&quot;, &quot;DAHDI Dial Test&quot;) in new stack<br>
&gt;  == Extension Changed 112[from-sip] new state InUse for Notify User 114<br>
&gt;    -- Executing [*42@from-sip:2] Dial(&quot;SIP/112-00000006&quot;, &quot;DAHDI/g2/18&quot;) in new stack<br>
&gt;PRI Span: 2 -- Making new call for cref 32770<br>
&gt;    -- Requested transfer capability: 0x00 - SPEECH<br>
&gt;PRI Span: 2<br>
&gt;PRI Span: 2 &gt; DL-DATA request<br>
&gt;PRI Span: 2 &gt; Protocol Discriminator: Q.931 (8)  len=49<br>
&gt;PRI Span: 2 &gt; TEI=0 Call Ref: len= 2 (reference 2/0x2) (Sent from originator)<br>
&gt;PRI Span: 2 &gt; Message Type: SETUP (5)<br>
&gt;PRI Span: 2 TEI=0 Transmitting N(S)=9, window is open V(A)=9 K=7<br>
&gt;PRI Span: 2<br>
&gt;PRI Span: 2 &gt; Protocol Discriminator: Q.931 (8)  len=49<br>
&gt;PRI Span: 2 &gt; TEI=0 Call Ref: len= 2 (reference 2/0x2) (Sent from originator)<br>
&gt;PRI Span: 2 &gt; Message Type: SETUP (5)<br>
&gt;PRI Span: 2 &gt; [04 03 80 90 a3]<br>
&gt;PRI Span: 2 &gt; Bearer Capability (len= 5) [ Ext: 1  Coding-Std: 0  Info transfer capability: Speech (0)<br>
&gt;PRI Span: 2 &gt;                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)<br>
&gt;PRI Span: 2 &gt;                                User information layer 1: A-Law (35)<br>
&gt;PRI Span: 2 &gt; [18 03 a9 83 81]<br>
&gt;PRI Span: 2 &gt; Channel ID (len= 5) [ Ext: 1  IntID: Implicit  Other(PRI) Spare: 0  Exclusive  Dchan: 0<br>
&gt;PRI Span: 2 &gt;                       ChanSel: As indicated in following octets<br>
&gt;PRI Span: 2 &gt;                       Ext: 1  Coding: 0  Number Specified Channel Type: 3<br>
&gt;PRI Span: 2 &gt;                       Ext: 1  Channel: 1 Type: NET] PRI Span: 2 &gt; [28 0d 52 75 73 73 65 6c 6c 20 42 72 6f 77 6e]<br>
&gt;PRI Span: 2 &gt; Display (len=13) [ Russell Brown ]<br>
&gt;PRI Span: 2 &gt; [6c 0c 21 80 31 37 38 30 34 37 31 38 30 32]<br>
&gt;PRI Span: 2 &gt; Calling Number (len=14) [ Ext: 0  TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)<br>
&gt;PRI Span: 2 &gt;                           Presentation: Presentation permitted, user number not screened (0)  &#39;1780471800&#39; ]<br>
&gt;PRI Span: 2 &gt; [70 03 c1 31 38]<br>
&gt;PRI Span: 2 &gt; Called Number (len= 5) [ Ext: 1  TON: Subscriber Number (4)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  &#39;18&#39; ]<br>
&gt;PRI Span: 2 q931.c:6036 q931_setup: Call 32770 enters state 1 (Call Initiated).  Hold state: Idle<br>
&gt;    -- Called DAHDI/g2/18<br>
&gt;PRI Span: 2 T303 timed out.  cref:32770<br>
&gt;PRI Span: 2<br>
&gt;PRI Span: 2 &gt; DL-DATA request<br>
&gt;PRI Span: 2 &gt; Protocol Discriminator: Q.931 (8)  len=49<br>
&gt;PRI Span: 2 &gt; TEI=0 Call Ref: len= 2 (reference 2/0x2) (Sent from originator)<br>
&gt;PRI Span: 2 &gt; Message Type: SETUP (5)<br>
&gt;PRI Span: 2 TEI=0 Just queued I-frame since in state 8(Timer recovery)<br>
&gt;PRI Span: 2 TEI=0 MDL-ERROR (I): T200 expired N200 times sending RR/RNR in state 8(Timer recovery)<br>
&gt;PRI Span: 2 TEI=0 Sending SABME<br>
&gt;PRI Span: 2 Changing from state 8(Timer recovery) to 5(Awaiting establishment)<br>
&gt;Span: 2 Processing event: PRI_EVENT_DCHAN_DOWN<br>
&gt;  == Primary D-Channel on span 2 down<br>
&gt;PRI Span: 2 TEI=0 Sending SABME<br>
&gt;PRI Span: 2 TEI=0 Sending SABME<br>
&gt;PRI Span: 2 TEI=0 Sending SABME<br>
&gt;PRI Span: 2 T303 timed out.  cref:32770<br>
&gt;PRI Span: 2 q931.c:5925 t303_expiry: Call 32770 enters state 0 (Null).  Hold state: Idle<br>
&gt;PRI Span: 2 Fake clearing.  cref:32770<br>
&gt;PRI Span: 2 q931.c:9219 pri_internal_clear: alive 1, hangupack 1<br>
&gt;Span: 2 Processing event: PRI_EVENT_HANGUP<br>
&gt;  == Primary D-Channel on span 2 up<br>
&gt;    -- Span 2: Channel 0/1 got hangup, cause 18<br>
&gt;PRI Span: 2 q931.c:6837 q931_hangup: Hangup other cref:32770<br>
&gt;PRI Span: 2 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle<br>
&gt;PRI Span: 2 Destroying call 0x7f0d285c0840, ourstate Null, peerstate Null, hold-state Idle<br>
&gt;    -- Hungup &#39;DAHDI/i2/18-2&#39;<br>
&gt;  == Everyone is busy/congested at this time (1:0/0/1)<br>
&gt;    -- Auto fallthrough, channel &#39;SIP/112-00000006&#39; status is &#39;CHANUNAVAIL&#39;<br>
&gt;    -- Executing [h@from-sip:1] Macro(&quot;SIP/112-00000006&quot;, &quot;DONE_HANGUP&quot;) in new stack<br>
&gt;    -- Executing [s@macro-DONE_HANGUP:1] NoOp(&quot;SIP/112-00000006&quot;, &quot;In DONE_HANGUP MACRO&quot;) in new stack<br>
&gt;PRI Span: 2 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)<br>
&gt;PRI Span: 2 Changing from state 5(Awaiting establishment) to 4(TEI assigned)<br>
&gt;PRI Span: 2 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)<br>
&gt;PRI Span: 2 SAPI/TEI=0/0 Kick starting link<br>
&gt;PRI Span: 2 TEI=0 Sending SABME<br>
&gt;PRI Span: 2 Changing from state 4(TEI assigned) to 5(Awaiting establishment)<br>
<br>
Which shows the call terminating with Cause 18 (no user responding).  huh?<br>
<br>
Can anyone suggest how I can get this fixed?<br>
<br>
TIA<br>
<br>
--<br>
 Regards,<br>
     Russell<br>
 --------------------------------------------------------------------<br>
| Russell Brown          | MAIL: <a href="mailto:russell@lls.com">russell@lls.com</a> PHONE: 01780 471800 |<br>
| Lady Lodge Systems     | WWW Work: <a href="http://www.lls.com" target="_blank">http://www.lls.com</a>              |<br>
| Peterborough, England  | WWW Play: <a href="http://www.ruffle.me.uk" target="_blank">http://www.ruffle.me.uk</a>         |<br>
 --------------------------------------------------------------------<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div>