[asterisk-users] How to get values of local channels context
kjcsb
kjcsb at yahoo.com
Mon Feb 26 21:06:40 MST 2007
The variable ${CONTEXT} stores the value of the current context. However if we are in a macro that will be the name of the macro. How do I access the name of the local channel's context.
For example:
[macro-test]
exten => s,n,NoOp(Context ${CONTEXT})
CLI shows:
-- Executing NoOp("Local/2592 at 1100006-2000-e802,2", "Context macro-test") in new stack
I want to get 1100006-2000 somehow.
Any suggestions would be appreciated.
Cameron
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070226/3927ce71/attachment.htm
More information about the asterisk-users
mailing list