<div> </div>
<div>Deat all,</div>
<div> </div>
<div>I am in middle of integrate Asterisk with Toshiba astrata legacy pbx.</div>
<div> </div>
<div>Following is my setup</div>
<div> </div>
<div><font color="#990000"><strong>Asterisk <-> Digium TE110P <-> E1 card in toshiba pbx <-> Toshiba PBX</strong></font></div>
<div> </div>
<div>A =============================================> B</div>
<div>C <============================================ D</div>
<div> </div>
<div>Asterisk PBX and strata PBX connected using back to back E1 cross cable. Physicall connectivity is OK. The digium TE110p</div>
<div>LED state green. zttool also OK.</div>
<div> </div>
<div>Toshiba stata configured to make outbound call via E1 link with pressing 9 and then the out side number. </div>
<div> </div>
<div>I was able to make call from soft phone to analog extension at toshiba pbx. A==> 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> </div>
<div>In the asterisk command prompt I'm having following error message.</div>
<div> </div>
<div><font color="#660000">-- Extension '' in context 'from-pstn' from '' does not exist. Rejecting call on channel 0/31, span 1</font></div>
<div><font color="#660000"></font> </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> </div>
<div><font color="#660000">I will be greately appreciated your feedback on this regard.</font></div>
<div><font color="#660000"></font> </div>
<div><font color="#660000"><u>configuration details</u></font></div>
<div><font color="#660000"></font> </div>
<div><font color="#660000"><strong>/etc/zaptel.conf</strong></font></div>
<div># Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0"</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=>1-15<br>channel=>17-31 ;PRI/E1 link</p>
<p><br>[trunkgroups]<br>trunkgroup=>2,16<br>spanmap=1,2,1<br></p>
<p><br><strong>/etc/asterisk/extension.conf</strong></p>
<p>[from-zaptel]<br>exten => _X.,1,Set(DID=${EXTEN})<br>exten => _X.,n,Goto(s,1)<br>exten => s,1,NoOp(Entering from-zaptel with DID == ${DID})<br>; If ($did == "") { $did = "s"; }<br>exten => s,n,Set(DID=${IF($["${DID}"= ""]?s:${DID})})
<br>exten => s,n,NoOp(DID is now ${DID})<br>exten => s,n,GotoIf($["${CHANNEL:0:3}"="Zap"]?zapok:notzap)<br>exten => s,n(notzap),Goto(ext-did,${DID},1)<br>; If there's no ext-did,s,1, that means there's not a no did/no cid route. Hangup.
<br>exten => s,n,Macro(hangup)<br>exten => s,n(zapok),NoOp(Is a Zaptel Channel)<br>exten => s,n,Set(CHAN=${CHANNEL:4})<br>exten => s,n,Set(CHAN=${CUT(CHAN,-,1)})<br>exten => s,n,Macro(from-zaptel-${CHAN},${DID},1)
<br>; If nothing there, then treat it as a DID<br>exten => s,n,NoOp(Returned from Macro from-zaptel-${CHAN})<br>exten => s,n,Goto(ext-did,${DID},1)</p></div>
<div><br><br clear="all"><br>-- <br>Thanks & Regards,<br>Vidura B. Senadeera. </div>