[asterisk-users] Get Channel Variables in AMI Event NewExten
Dan Cropp
dan at amtelco.com
Thu May 9 08:16:42 CDT 2013
I believe you will have to monitor for the Newexten event, then send an
AMI Getvar command.
It doesn't make sense to pass all the possible channel variables along
with a Newexten event. There may be a ton of extra variables that
someone may not want or need on the AMI. Better to have them ask for
specific variables that are not standard.
Action: Getvar
ActionID: ValueYouCanIdentify
Channel: IAX2/X.X.X.X:4572-5011
Variable: fu_callerid
This will result in a response from AMI...
Response: Success
ActionID: ValueYouCanIdentify
Variable: fu_callerid
Value: 141688xyxzz
The ActionID is very important if you want to watch for an exact
response to your request.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130509/55e1bb93/attachment.htm>
More information about the asterisk-users
mailing list