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"><<a href="mailto:dome@tel.co.th">dome@tel.co.th</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;">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>
<?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("php://stdin", "r");<br>
<br>
// Connect<br>
echo "connect\n\n";<br>
<br>
// Answer<br>
<div class="im">echo "sendmsg\n";<br>
echo "call-command: execute\n";<br>
</div>echo "execute-app-name: answer\n\n";<br>
<div class="im"><br>
echo "sendmsg\n";<br>
echo "call-command: execute\n";<br>
echo "execute-app-name: read\n";<br>
echo "execute-app-arg: 0 20<br>
/opt/freeswitch/sounds/th/tuxza/welcome.wav res 5000 #\n\n";<br>
<br>
</div>// Wait<br>
sleep(5);<br>
<br>
// Hangup<br>
echo "sendmsg\n";<br>
echo "call-command: hangup\n\n";<br>
<br>
fclose($in);<br>
<br>
?><br>
<br>
<br>
2009/9/2 Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>>:<br>
<div><div></div><div class="h5">> uuid_getvar<br>
><br>
> /b<br>
><br>
> On Sep 2, 2009, at 8:16 AM, Tristan Mahé wrote:<br>
><br>
>> Hi,<br>
>><br>
>> just a fast 2cent:<br>
>><br>
>> get var via channel status ? ( variable_res )<br>
><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>
><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>