<div>Hi List,</div>
<div> </div>
<div>            I have configured TE121PF card in E1 mode. I am using asterisk 1.6 and freepbx 2.7. My card staus turn in to green and looks like sync with the service provider.  My service provider is BSNL - India. I have one toll free number for incoming and one land line number for out going calls. </div>

<div> </div>
<div>Problem :</div>
<div> </div>
<div>If i am calling to the toll free number, i am getting the ring but that call is not reaching to my asterisk box. Both incoming and outgoing are failure.  Please reffer the following informations for understand the issue  further. </div>

<div> </div>
<div> </div>
<div>1. [root@localhost src]# cat /etc/dahdi/system.conf</div>
<div> </div>
<div>span=1,0,0,CCS,HDB3,CRC4<br>bchan=1-15,17-31<br>dchan=16<br>loadzone=us<br>defaultzone=us</div>
<div> </div>
<div> </div>
<div>2. cat /etc/asterisk/chan_dahdi.conf</div>
<div><br>; Copied from DAHDI Module of FreePBX</div>
<div>[general]</div>
<div>#include chan_dahdi_general.conf</div>
<div>[channels]</div>
<div>; include dahdi groups defined by DAHDI module of FreePBX<br>#include chan_dahdi_groups.conf</div>
<div>; include dahdi extensions defined in FreePBX<br>#include chan_dahdi_additional.conf<br></div>
<div> </div>
<div>3.  cat /etc/asterisk/chan_dahdi_groups.conf<br><br>; [span_1]<br>signalling=pri_cpe<br>switchtype=euroisdn<br>pridialplan=national<br>prilocaldialplan=national<br>group=1<br>context=from-pstn<br>channel=1-15,17-31</div>

<div> </div>
<div><strong><u></u></strong> </div>
<div><strong><u>Some CLI outputs</u></strong></div>
<div> </div>
<div>localhost*CLI&gt; <strong>dahdi show channel 1<br></strong>Channel: 1<br>File Descriptor: 14<br>Span: 1<br>Extension:<br>Dialing: no<br>Context: from-pstn<br>Caller ID:<br>Calling TON: 0<br>Caller ID name:<br>Mailbox: none<br>
Destroy: 0<br>InAlarm: 1<br>Signalling Type: ISDN PRI<br>Radio: 0<br>Owner: &lt;None&gt;<br>Real: &lt;None&gt;<br>Callwait: &lt;None&gt;<br>Threeway: &lt;None&gt;<br>Confno: -1<br>Propagated Conference: -1<br>Real in conference: 0<br>
DSP: no<br>Busy Detection: no<br>TDD: no<br>Relax DTMF: no<br>Dialing/CallwaitCAS: 0/0<br>Default law: alaw<br>Fax Handled: no<br>Pulse phone: no<br>DND: no<br>Echo Cancellation:<br>        1 taps<br>        (unless TDM bridged) currently OFF<br>
Wait for dialtone: 0ms<br>PRI Flags:<br>PRI Logical Span: Implicit<br>Hookstate (FXS only): Onhook<br>localhost*CLI&gt;<br></div>
<div> </div>
<div>2. localhost*CLI&gt; <strong>pri show spans</strong></div>
<div><br>PRI span 1/0: Provisioned, Down, Active</div>
<div> </div>
<div> </div>
<div> </div>
<div>localhost*CLI&gt; pri show span 1<br>Primary D-channel: 16<br>Status: Provisioned, Down, Active<br>Switchtype: EuroISDN<br>Type: CPE<br>Overlap Dial: 0<br>Logical Channel Mapping: 0<br>Timer and counter settings:<br>
  N200: 3<br>  N202: 3<br>  K: 7<br>  T200: 1000<br>  T202: 10000<br>  T203: 10000<br>  T303: 4000<br>  T305: 30000<br>  T308: 4000<br>  T309: 6000<br>  T313: 4000<br>  T-HOLD: 4000<br>  T-RETRIEVE: 4000<br>  T-RESPONSE: 4000<br>
Overlap Recv: No</div>
<div> </div>
<div> </div>
<div>3. localhost*CLI&gt; <strong>pri set debug on span 1</strong></div>
<div><br>Enabled debugging on span 1<br>TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)<br>Changing from state 5(Awaiting establishment) to 4(TEI assigned)<br>TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)<br>
TEI=0 Sending SABME<br>Changing from state 4(TEI assigned) to 5(Awaiting establishment)<br>TEI=0 Sending SABME<br>TEI=0 Sending SABME<br>TEI=0 Sending SABME<br>TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)<br>
Changing from state 5(Awaiting establishment) to 4(TEI assigned)<br>TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)<br>TEI=0 Sending SABME<br>Changing from state 4(TEI assigned) to 5(Awaiting establishment)<br>TEI=0 Sending SABME<br>
TEI=0 Sending SABME<br>TEI=0 Sending SABME<br>TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)<br>Changing from state 5(Awaiting establishment) to 4(TEI assigned)<br>TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)<br>
TEI=0 Sending SABME<br>Changing from state 4(TEI assigned) to 5(Awaiting establishment)<br>TEI=0 Sending SABME<br>TEI=0 Sending SABME<br>TEI=0 Sending SABME<br>TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)<br>
Changing from state 5(Awaiting establishment) to 4(TEI assigned)<br>TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)</div>
<div> </div>
<div> </div>
<div>Please some one help me to identify the issue ........</div>
<div><br> </div>
<div>Michael.k</div>
<div> </div>