[asterisk-users] context problem

Jonas Kellens jonas.kellens at telenet.be
Thu Jan 20 09:33:19 CST 2011


On 01/20/2011 04:29 PM, Danny Nicholas wrote:
> ------------------------------------------------------------------------
>
> *From:* asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Jonas 
> Kellens
> *Sent:* Thursday, January 20, 2011 9:20 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] context problem
>
> Hello list,
>
> Asterisk 1.6.16.1
>
> I have the following registrations :
>
> register => 119909:passwd at sip.prov.org/52525252 
> <mailto:119909:passwd at sip.prov.org/52525252>
> register => 119909:passwd at sip.prov.org/59595959 
> <mailto:119909:passwd at sip.prov.org/59595959>
>
> [119909]
> type=friend
> host=sip.prov.org
> username=119909
> defaultuser=119909
> secret=passwd
> context=TRUNKin
>
> extensions.conf :
>
> [TRUNKin]
> exten => _52525252,1,NoOp(context TRUNKin - 52525252)
> exten => _52525252,n,GoTo(blabla,52525252,1)
>
> exten => _59595959,1,NoOp(context TRUNKin - 59595959)
> exten => _59595959,n,GoTo(blablabla,59595959,1)
>
>
> Problem :
>
> the call always enters : exten => _52525252
>
> and never : exten => _59595959
>
> Why is that ??
>
>
> Kind regards,
> Jonas.
>
> Because this an incoming call.  What you are trying to accomplish 
> should be done via "ex-girlfriend" logic.  The way your dialplan is 
> set up, it assumes you are "dialing" 525225252 or 59595959 instead of 
> receiving a call.  Here is how the incoming should read
>
> [TRUNKin]
>
> - exten => s,1,answer
>
> - exten => s/52525252,n,Goto(blabla,52525252,1)
>
> - exten => s/59595959,n,Goto(blabla,59595959,1)
>
> - exten => s,n,verbose(call is not from 5252 or 5959)
>


Hello,

when I leave out the /52525252 and /59595959 in the registration, indeed 
the call enters the s-extension in my context.

I will try your suggestion...


Kind regards,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110120/474d3720/attachment.htm>


More information about the asterisk-users mailing list