VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
dome at tel.co.th Guest
|
Posted: Wed Sep 02, 2009 7:54 am Post subject: [Freeswitch-users] outbould PHP ESL |
|
|
Dear sir,
How to get digit from outbound php esl ?
example in my php
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";
How to get res ?
best regards.
Dome C.
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
t.mahe at telemaque.fr Guest
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
dome at tel.co.th Guest
|
Posted: Wed Sep 02, 2009 10:11 am Post subject: [Freeswitch-users] outbould PHP ESL |
|
|
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@freeswitch.org>:
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Wed Sep 02, 2009 10:36 am Post subject: [Freeswitch-users] outbould PHP ESL |
|
|
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@tel.co.th (dome@tel.co.th)> wrote:
|
|
Back to top |
|
|
dome at tel.co.th Guest
|
Posted: Wed Sep 02, 2009 10:51 am Post subject: [Freeswitch-users] outbould PHP ESL |
|
|
2009/9/2 Michael Collins <msc@freeswitch.org>:
Quote: | Are you trying to get a channel variable or capture DTMF input from the
caller?
|
i try to make IVR by php outbound socket. in XML dialplan we can get
DTMF by read application (store in channel variable)
I found it's success in perl outbound (IVR.pm) but for php how do i ?
Dome C.
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Thu Sep 10, 2009 12:30 am Post subject: [Freeswitch-users] outbould PHP ESL |
|
|
It should be the same, except using php syntax instead of perl.
Mike
On Sep 2, 2009, at 11:43 AM, Dome Charoenyost wrote:
Quote: | 2009/9/2 Michael Collins <msc@freeswitch.org>:
Quote: | Are you trying to get a channel variable or capture DTMF input from
the
caller?
|
i try to make IVR by php outbound socket. in XML dialplan we can get
DTMF by read application (store in channel variable)
I found it's success in perl outbound (IVR.pm) but for php how do i ?
Dome C.
Quote: | -MC
On Wed, Sep 2, 2009 at 7:56 AM, Dome Charoenyost <dome@tel.co.th>
wrote:
Quote: |
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@freeswitch.org>:
Quote: | uuid_getvar
/b
On Sep 2, 2009, at 8:16 AM, Tristan Mahé wrote:
Quote: | Hi,
just a fast 2cent:
get var via channel status ? ( variable_res )
|
|
|
|
|
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|