Are you trying to get a channel variable or capture DTMF input from the caller?<br>-MC<br><br><div class="gmail_quote">On Wed, Sep 2, 2009 at 7:56 AM, Dome Charoenyost <span dir="ltr">&lt;<a href="mailto:dome@tel.co.th">dome@tel.co.th</a>&gt;</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;">I follow<br>
<a href="http://wiki.freeswitch.org/wiki/PHP_ESL#ivrd" target="_blank">http://wiki.freeswitch.org/wiki/PHP_ESL#ivrd</a><br>
<br>
how to get from php ?<br>
<br>
<br>
Dome C.<br>
------------------------------------------------------<br>
#!/usr/bin/php -q<br>
<br>
&lt;?php<br>
<br>
// set a couple of things so we dont kill the system<br>
ob_implicit_flush(true);<br>
set_time_limit(30);<br>
<br>
// Open stdin so we can read the AGI data in<br>
$in = fopen(&quot;php://stdin&quot;, &quot;r&quot;);<br>
<br>
// Connect<br>
echo &quot;connect\n\n&quot;;<br>
<br>
// Answer<br>
<div class="im">echo &quot;sendmsg\n&quot;;<br>
echo &quot;call-command: execute\n&quot;;<br>
</div>echo &quot;execute-app-name: answer\n\n&quot;;<br>
<div class="im"><br>
  echo &quot;sendmsg\n&quot;;<br>
  echo &quot;call-command: execute\n&quot;;<br>
  echo &quot;execute-app-name: read\n&quot;;<br>
  echo &quot;execute-app-arg: 0 20<br>
/opt/freeswitch/sounds/th/tuxza/welcome.wav  res 5000 #\n\n&quot;;<br>
<br>
</div>// Wait<br>
sleep(5);<br>
<br>
// Hangup<br>
echo &quot;sendmsg\n&quot;;<br>
echo &quot;call-command: hangup\n\n&quot;;<br>
<br>
fclose($in);<br>
<br>
?&gt;<br>
<br>
<br>
2009/9/2 Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;:<br>
<div><div></div><div class="h5">&gt; uuid_getvar<br>
&gt;<br>
&gt; /b<br>
&gt;<br>
&gt; On Sep 2, 2009, at 8:16 AM, Tristan Mahé wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; just a fast 2cent:<br>
&gt;&gt;<br>
&gt;&gt; get var via channel status ? ( variable_res )<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>