On 01/20/2011 04:29 PM, Danny Nicholas wrote:
------------------------------------------------------------------------
*From:* asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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:pas...@sip.prov.org/52525252
<mailto:119909:pas...@sip.prov.org/52525252>
register => 119909:pas...@sip.prov.org/59595959
<mailto:119909:pas...@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.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users