<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=235514416-19012007><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=235514416-19012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=235514416-19012007><FONT face=Arial
color=#0000ff size=2>your zapata.con has 'context=from-pstn'</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=235514416-19012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=235514416-19012007><FONT face=Arial
color=#0000ff size=2>Try changing this to 'context=from-zaptel'
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=235514416-19012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=235514416-19012007><FONT face=Arial
color=#0000ff size=2>Robert Jenkins.</FONT></SPAN></DIV><FONT face=Arial
color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Vidura
Senadeera<BR><B>Sent:</B> 19 January 2007 15:19<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Cc:</B>
support@digium.com<BR><B>Subject:</B> [asterisk-users] Integrating asterisk
with Toshiba Astrata DK380<BR></FONT><BR></DIV>
<DIV></DIV>
<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></BLOCKQUOTE></BODY></HTML>