[asterisk-users] Get user context from dialplan.
José Luis Gómez
jgomez at qualis.com.ar
Mon Oct 9 04:53:58 MST 2006
Hello.
I want to know how to get the user context (set in sip.conf) from a
macro in the dialplan file. I need to use it in "followme app". If user
don't have permission to dial to a cellphone he will not able to use
followme to redirect an incoming call to his cellphone.
I use "outbound" for generals outbound calls. So, I need to replace that
context instead the user context.
My config:
* sip.conf:
[1001]
type=friend
secret=xxxx
context=out
* extensions.conf:
[macro-stdexten]
exten => s,1,DBget(temp=CF/${ARG1})
exten => s,2,Goto(outbound,${temp},1)
..
[outbound]
exten => _9.,1,Dial(Zap/1/${EXTEN:1}) ;out calls
exten => _1XX,1,Dial(SIP/${EXTEN}) ;calls to another users
Regards,
José Luis
More information about the asterisk-users
mailing list