[Freeswitch-users] outbould PHP ESL
Michael Collins
msc at freeswitch.org
Wed Sep 2 08:25:10 PDT 2009
Are you trying to get a channel variable or capture DTMF input from the
caller?
-MC
On Wed, Sep 2, 2009 at 7:56 AM, Dome Charoenyost <dome at tel.co.th> wrote:
> I follow
> http://wiki.freeswitch.org/wiki/PHP_ESL#ivrd
>
> how to get from php ?
>
>
> Dome C.
> ------------------------------------------------------
> #!/usr/bin/php -q
>
> <?php
>
> // set a couple of things so we dont kill the system
> ob_implicit_flush(true);
> set_time_limit(30);
>
> // Open stdin so we can read the AGI data in
> $in = fopen("php://stdin", "r");
>
> // Connect
> echo "connect\n\n";
>
> // Answer
> echo "sendmsg\n";
> echo "call-command: execute\n";
> echo "execute-app-name: answer\n\n";
>
> echo "sendmsg\n";
> echo "call-command: execute\n";
> echo "execute-app-name: read\n";
> echo "execute-app-arg: 0 20
> /opt/freeswitch/sounds/th/tuxza/welcome.wav res 5000 #\n\n";
>
> // Wait
> sleep(5);
>
> // Hangup
> echo "sendmsg\n";
> echo "call-command: hangup\n\n";
>
> fclose($in);
>
> ?>
>
>
> 2009/9/2 Brian West <brian at freeswitch.org>:
> > uuid_getvar
> >
> > /b
> >
> > On Sep 2, 2009, at 8:16 AM, Tristan Mahé wrote:
> >
> >> Hi,
> >>
> >> just a fast 2cent:
> >>
> >> get var via channel status ? ( variable_res )
> >
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090902/65226237/attachment-0002.html
More information about the FreeSWITCH-users
mailing list