[asterisk-users] context problem
Danny Nicholas
danny at debsinc.com
Thu Jan 20 09:29:44 CST 2011
_____
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
register => 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110120/d610678b/attachment.htm>
More information about the asterisk-users
mailing list