[asterisk-users] context problem

Danny Nicholas danny at debsinc.com
Thu Jan 20 10:25:07 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:59 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] context problem

 

On 01/20/2011 04:29 PM, Danny Nicholas wrote: 

  _____  

size=2 width="100%" align=center> 

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)

 


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.

 

The call is coming through with the ID 119909 from both trunks.  You need to
be able to register the trunks as 119909 and some other number (119910?) or
otherwise you will have to query the SIP headers to get the actual
information from the "duplicated" trunks (maybe an AGI?)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110120/7028daee/attachment-0001.htm>


More information about the asterisk-users mailing list