Yeah, I accidentally pressed "Send" too early on my question - I knew I was going to get a google back, was trying to beat the buzzer on a reply!<br><br>I am using as stated, but when I attempt to retrieve the channel variable in an AGI, I get nothing back correctly<br>
<br>In my Call file:<br>Setvar: LICENSE=test <br><br>In my AGI <br>$AGI->get_full_variable('LICENSE');<br>(or)<br>$AGI->get_variable('LICENSE');<br><br>AGI Rx << GET FULL VARIABLE LICENSE<br>AGI Tx >> 200 result=1 (LICENSE)<br>
AGI Rx << NOOP --> LICENSE = LICENSE<br>(instead of 'test')<br><br>So, is my Call file syntax incorrect? Is my AGI retrieve incorrect?<br><br>Thanks,<br>PB<br><br><div class="gmail_quote">On Tue, Jul 21, 2009 at 8:03 AM, Doug Lytle <span dir="ltr"><<a href="mailto:support@drdos.info">support@drdos.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">J. G. wrote:<br>
> Hey gang,<br>
> I'm trying to find a) If you can put channel variables into a Call<br>
> file and b) what the appropriate syntax is.<br>
<br>
</div>Google is your friend:<br>
<br>
<a href="http://www.the-asterisk-book.com/unstable/call-file.html" target="_blank">http://www.the-asterisk-book.com/unstable/call-file.html</a><br>
<br>
<br>
Parameters<br>
<br>
These parameters may be used in call files:<br>
<br>
|Setvar: <var=value>|<br>
/|Setvar:|/ lets you set one or more channel variables.<br>
<br>
<br>
<br>
Doug<br>
<br>
<br>
--<br>
<br>
Ben Franklin quote:<br>
<br>
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."<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>
<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><br clear="all"><br>