2006/10/2, Marco Mouta &lt;<a href="mailto:marco.mouta@gmail.com">marco.mouta@gmail.com</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
please post your from-zaptel context in extensions.conf<br></blockquote></div><br>Thanks to Giordano (immediate=yes) i see the first improvement now i hear the asterisk voice who says &quot;the number you digited is not in use, please check&quot;
<br>now i'm tryng to understand how to andle the from-zaptel context, here it is<br><br>[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's no ext-did,s,1, that means there'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)<br><br><br><span><font color="#0000ff" face="Arial" size="2"> </font></span>