[asterisk-users] context problem

Jonas Kellens jonas.kellens at telenet.be
Thu Jan 20 09:58:50 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,

the following is not working :

exten => s,1,NoOp(context TRUNKin - s)
exten => s,n,NoOp(${CALLERID(all)})
exten => s/52525252,n,GoTo(blabla,52525252,1)
exten => s/59595959,n,GoTo(blablabla,59595959,1)
exten => s,n,NoOp(nothing)

CLI shows :

[Jan 20 16:54:17] VERBOSE[26980] pbx.c: [Jan 20 16:54:17]     -- 
Executing [s at TRUNKin:1] NoOp("SIP/119909-00000688", "context TRUNKin - 
s") in new stack
[Jan 20 16:54:17] VERBOSE[26980] pbx.c: [Jan 20 16:54:17]     -- 
Executing [s at TRUNKin:2] NoOp("SIP/119909-00000688", ""775006" <775006>") 
in new stack
[Jan 20 16:54:17] VERBOSE[26980] pbx.c: [Jan 20 16:54:17]     -- Auto 
fallthrough, channel 'SIP/119909-00000688' status is 'UNKNOWN'


What else can I try ?


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


More information about the asterisk-users mailing list