<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">&lt;<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>&gt;</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>
&gt; I believe you will have to monitor for the Newexten event, then send an<br>
&gt; AMI Getvar command.<br>
&gt;<br>
&gt; It doesn’t make sense to pass all the possible channel variables along<br>
&gt; with a Newexten event.  There may be a ton of extra variables that<br>
&gt; someone may not want or need on the AMI.  Better to have them ask for<br>
&gt; specific variables that are not standard.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Action: Getvar<br>
&gt;<br>
&gt; ActionID: ValueYouCanIdentify<br>
&gt;<br>
&gt; Channel: IAX2/X.X.X.X:4572-5011<br>
&gt;<br>
&gt; Variable: fu_callerid<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; This will result in a response from AMI…<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Response: Success<br>
&gt;<br>
&gt; ActionID: ValueYouCanIdentify<br>
&gt;<br>
&gt; Variable: fu_callerid<br>
&gt;<br>
&gt; Value: 141688xyxzz<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The ActionID is very important if you want to watch for an exact response to your request.<br>
&gt;<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> &amp; <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>