<div dir="ltr"><font face="arial, sans-serif">Thanks! </font><span style="font-family:arial,sans-serif;font-size:13px">Matthew and Dan. </span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 9, 2013 at 10:18 PM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 05/09/2013 08:16 AM, Dan Cropp wrote:<br>
> I believe you will have to monitor for the Newexten event, then send an<br>
> AMI Getvar command.<br>
><br>
> It doesn’t make sense to pass all the possible channel variables along<br>
> with a Newexten event. There may be a ton of extra variables that<br>
> someone may not want or need on the AMI. Better to have them ask for<br>
> specific variables that are not standard.<br>
><br>
><br>
><br>
> Action: Getvar<br>
><br>
> ActionID: ValueYouCanIdentify<br>
><br>
> Channel: IAX2/X.X.X.X:4572-5011<br>
><br>
> Variable: fu_callerid<br>
><br>
><br>
><br>
> This will result in a response from AMI…<br>
><br>
><br>
><br>
> Response: Success<br>
><br>
> ActionID: ValueYouCanIdentify<br>
><br>
> Variable: fu_callerid<br>
><br>
> Value: 141688xyxzz<br>
><br>
><br>
><br>
> The ActionID is very important if you want to watch for an exact response to your request.<br>
><br>
<br>
</div></div>If you know the names of the channel variables, you can also configure<br>
manager to send them with every channel event.<br>
<br>
>From manager.conf:<br>
<br>
;<br>
; Display certain channel variables every time a channel-oriented<br>
; event is emitted:<br>
;<br>
;channelvars = var1,var2,var3<br>
<br>
So if you want fu_callerid, set:<br>
<br>
channelvars = fu_callerid<br>
<br>
And, once that variable is set, you should get a NewExten event, you<br>
should see the following key/value pair:<br>
<br>
ChanVariable(SIP/1234-00000001): fu_callerid=foobar<br>
<br>
<br>
--<br>
Matthew Jordan<br>
Digium, Inc. | Engineering Manager<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>