[asterisk-users] Siemens Hipath <-> asterisk, pri problem

bivio elbivio at gmail.com
Mon Oct 2 01:58:13 MST 2006


2006/10/2, Marco Mouta <marco.mouta at gmail.com>:
>
> please post your from-zaptel context in extensions.conf
>

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"
now i'm tryng to understand how to andle the from-zaptel context, here it is

[from-zaptel]
exten => _X.,1,Set(DID=${EXTEN})
exten => _X.,n,Goto(s,1)
exten => s,1,NoOp(Entering from-zaptel with DID == ${DID})
; If ($did == "") { $did = "s"; }
exten => s,n,Set(DID=${IF($["${DID}"= ""]?s:${DID})})
exten => s,n,NoOp(DID is now ${DID})
exten => s,n,GotoIf($["${CHANNEL:0:3}"="Zap"]?zapok:notzap)
exten => s,n(notzap),Goto(ext-did,${DID},1)
; If there's no ext-did,s,1, that means there's not a no did/no cid route.
Hangup.
exten => s,n,Macro(hangup)
exten => s,n(zapok),NoOp(Is a Zaptel Channel)
exten => s,n,Set(CHAN=${CHANNEL:4})
exten => s,n,Set(CHAN=${CUT(CHAN,-,1)})
exten => s,n,Macro(from-zaptel-${CHAN},${DID},1)
; If nothing there, then treat it as a DID
exten => s,n,NoOp(Returned from Macro from-zaptel-${CHAN})
exten => s,n,Goto(ext-did,${DID},1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061002/0282ee44/attachment.htm


More information about the asterisk-users mailing list