Capture incoming call origin number

Apr 30, 2013 at 4:35 PM
Greetings friends, I can help you determine how to get the home number of an incoming call to an extension.
Apr 30, 2013 at 6:05 PM
What version of asterisk are you using?
Apr 30, 2013 at 6:07 PM
Hi, Asterisk 1.8
May 1, 2013 at 9:55 AM
You will want to hook into the NewState event, and (as the framework doesn't currently support asterisk 1.8 directly) use the following:
We will add properties for these in the next milestone, but you can access them using Attributes in the mean time.
May 2, 2013 at 7:13 PM
you have a more complete example, I could put together the code, thanks
May 7, 2013 at 1:48 AM
Edited May 7, 2013 at 1:51 AM
Greetings, as I run this code from asternet?:


I really appreciate your help
May 7, 2013 at 10:46 AM
That's asterisk dialplan code, nothing to do with AsterNET.

If you want to read "MyVar" from AsterNET then you need to call
var myVar = GetVariable("MyVar");