[asterisk-users] How to get values of local channels context

kjcsb kjcsb at yahoo.com
Wed Feb 28 19:34:23 MST 2007


>>Check out /path/to/src/asterisk/doc/README.variables

>${DIALEDPEERNUMBER} would give it to me if I sliced it up.
>exten => s,n,Set(Foo=${CUT(DIALEDPEERNUMBER,@,2)})
>exten => s,n,Set(Foo=${CUT(Foo,/n,1)})

${CHANNEL} gets me something similar.

Too bad I now have to rename my contexts. Putting a - in them makes using Cut with ${CHANNEL} difficult!

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/20070228/00ca7ac5/attachment.htm


More information about the asterisk-users mailing list