2006/10/2, Marco Mouta <<a href="mailto:marco.mouta@gmail.com">marco.mouta@gmail.com</a>>:<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 "the number you digited is not in use, please check"
<br>now i'm tryng to understand how to andle the from-zaptel context, here it is<br><br>[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)<br><br><br><span><font color="#0000ff" face="Arial" size="2"> </font></span>