<div>&nbsp;</div>
<div>Deat all,</div>
<div>&nbsp;</div>
<div>I am in middle of integrate Asterisk with Toshiba astrata legacy pbx.</div>
<div>&nbsp;</div>
<div>Following is my setup</div>
<div>&nbsp;</div>
<div><font color="#990000"><strong>Asterisk &lt;-&gt; Digium TE110P &lt;-&gt; E1 card in toshiba pbx &lt;-&gt; Toshiba PBX</strong></font></div>
<div>&nbsp;</div>
<div>A =============================================&gt; B</div>
<div>C &lt;============================================ D</div>
<div>&nbsp;</div>
<div>Asterisk PBX and strata PBX&nbsp;connected using back to back E1 cross cable. Physicall connectivity is OK.&nbsp;The digium TE110p</div>
<div>LED state green. zttool also OK.</div>
<div>&nbsp;</div>
<div>Toshiba stata configured to make outbound call via E1 link with pressing 9 and then the out side number. </div>
<div>&nbsp;</div>
<div>I was able to make call from soft phone to analog extension at toshiba pbx. A==&gt; B way as shown above. But when trying to dial from </div>
<div>Toshiba PBX analog extension to asterisk extension, by pressing 9 the call rejected.</div>
<div>&nbsp;</div>
<div>In the asterisk command prompt I&#39;m having following error message.</div>
<div>&nbsp;</div>
<div><font color="#660000">-- Extension &#39;&#39; in context &#39;from-pstn&#39; from &#39;&#39; does not exist.&nbsp; Rejecting call on channel 0/31, span 1</font></div>
<div><font color="#660000"></font>&nbsp;</div>
<div><font color="#660000">Is there any wrong in my setup. dial plan??, additional configuration if i required to put please guide me.</font></div>
<div><font color="#660000"></font>&nbsp;</div>
<div><font color="#660000">I will be greately appreciated your feedback on this regard.</font></div>
<div><font color="#660000"></font>&nbsp;</div>
<div><font color="#660000"><u>configuration details</u></font></div>
<div><font color="#660000"></font>&nbsp;</div>
<div><font color="#660000"><strong>/etc/zaptel.conf</strong></font></div>
<div># Span 1: WCT1/0 &quot;Digium Wildcard TE110P T1/E1 Card 0&quot;</div>
<div>
<p>span=1,1,0,ccs,hdb3,crc4<br>bchan=1-15,17-31<br>dchan=16</p>
<p><strong>/etc/asterisk/zapata.conf</strong></p>
<p>signalling=pri_net ; pri_cpe = PRI slave ; pri_net = PRI master<br>switchtype=euroisdn<br>;switchtype=national<br>echocancel=yes ; You can set this to 32, 64, or 128, tweak to your needs.<br>echocancelwhenbridged=yes<br>
echotraining=400 ; Asterisk trains to the beginning of the call, number is in milliseconds<br>callerid=asreceived<br>overlapdial=no<br>pridialplan=unknown<br>immediate=no<br>;rxwink=300<br>callprogress=no<br>loadzone=au<br>
context=from-pstn ; Points to the default context of your extensions.conf<br>group=2<br>channel=&gt;1-15<br>channel=&gt;17-31 ;PRI/E1 link</p>
<p><br>[trunkgroups]<br>trunkgroup=&gt;2,16<br>spanmap=1,2,1<br></p>
<p><br><strong>/etc/asterisk/extension.conf</strong></p>
<p>[from-zaptel]<br>exten =&gt; _X.,1,Set(DID=${EXTEN})<br>exten =&gt; _X.,n,Goto(s,1)<br>exten =&gt; s,1,NoOp(Entering from-zaptel with DID == ${DID})<br>; If ($did == &quot;&quot;) { $did = &quot;s&quot;; }<br>exten =&gt; s,n,Set(DID=${IF($[&quot;${DID}&quot;= &quot;&quot;]?s:${DID})}) 
<br>exten =&gt; s,n,NoOp(DID is now ${DID})<br>exten =&gt; s,n,GotoIf($[&quot;${CHANNEL:0:3}&quot;=&quot;Zap&quot;]?zapok:notzap)<br>exten =&gt; s,n(notzap),Goto(ext-did,${DID},1)<br>; If there&#39;s no ext-did,s,1, that means there&#39;s not a no did/no cid route. Hangup. 
<br>exten =&gt; s,n,Macro(hangup)<br>exten =&gt; s,n(zapok),NoOp(Is a Zaptel Channel)<br>exten =&gt; s,n,Set(CHAN=${CHANNEL:4})<br>exten =&gt; s,n,Set(CHAN=${CUT(CHAN,-,1)})<br>exten =&gt; s,n,Macro(from-zaptel-${CHAN},${DID},1) 
<br>; If nothing there, then treat it as a DID<br>exten =&gt; s,n,NoOp(Returned from Macro from-zaptel-${CHAN})<br>exten =&gt; s,n,Goto(ext-did,${DID},1)</p></div>
<div><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br>Vidura B. Senadeera. </div>