What exactly does the write(&quot;SET VARIABLE myvariable&quot;); do?&nbsp;&nbsp; <br><br>I understand the Set(CALLERID.... sets the calleridnumber equal to ${myvariable}, but then do you use the write to read that in?&nbsp; Or is that to dump something back out?
<br><br>Just want to make sure I understand clearly.<br><br><div class="gmail_quote">On Nov 19, 2007 6:00 AM, Chris Blunt &lt;<a href="mailto:chris.blunt@entropy-it.com">chris.blunt@entropy-it.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I had a similar problem with a PHP AGI script. &nbsp;I&#39;m not sure if it&#39;s a bug<br>or what, but it seems the new way of setting variables is an application, no<br>way could I get it to work.<br><br>In the end I set a user defined variable in the AGI like this: write(&quot;SET
<br>VARIABLE myvariable&quot;);<br><br>Then in the dial play did something like Set(CALLERID(number)=${myvariable})<br><br>It may not be the most elegant solution but it works fine for me.<br><font color="#888888"><br>Chris
<br></font><div class="Ih2E3d"><br><br>-----Original Message-----<br>From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br></div><div class="Ih2E3d">[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">
asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Eric<br>&quot;ManxPower&quot; Wieling<br>Sent: 18 November 2007 16:48<br>To: Asterisk Users Mailing List - Non-Commercial Discussion<br></div><div class="Ih2E3d">Subject: Re: [asterisk-users] Problem with AGI Script
<br><br></div><div><div></div><div class="Wj3C7c">didier wrote:<br>&gt; Callerid(number) ? &nbsp;or callerid(num) ?<br><br>Grasshopper, you will find many answers you seek by looking in<br>/path/to/src/asterisk-1.4/doc/channelvariables.txt
<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> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><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> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></div></blockquote></div><br>