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

Marco Mouta marco.mouta at gmail.com
Mon Oct 2 02:19:47 MST 2006


try this:

first: immediate=no ; otherwise what you r saying is to asterisk
automatically dial when you hook up the phone!

The problem is that in your context from-zaptel you are not dialing
anywhere!

i couldn't find you using any Dial(...)

That's why it doesn't work!
try this:

[from-zaptel]
exten=> _X.,1,Dial(Zap/G1/${EXTEN})
exten=> _X.,2,hangup

Use it to dial a local extension, i suppose to dial out you are using a
prefix


On 10/2/06, bivio <elbivio at gmail.com> wrote:
>
> 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)
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>


-- 
Com os melhores cumprimentos,

Marco Mouta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061002/9e1c2339/attachment.htm


More information about the asterisk-users mailing list