[Freeswitch-users] Incorrect method of PHP call control?
gregt at cgicommunications.com
Mon Aug 31 08:22:08 PDT 2009
Hi. Before I go to far down this path, I wonder if what I intend to do
is not a good practice.
I started using mod_xml_curl to use PHP on localhost to generate a
dialplan dynamically, based on the Caller-Destination-Number variable
then controls the call. For example,
$response = <<< XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<section name="dialplan" description="example_curl_dialplan">
<condition field="destination_number" expression="^(\+1|1?)
the actions, playing files, using pocketsphinx, etc. I should just
stay in PHP, using esl.php to answer and handle the call.
Then I rethought, is that a good practice to take over the call
control from freeswitch at that point, while it is in the xml-curl
Then I also thought, is it even possible to do some of the things I
session.collectInput(onInputsml, "emptyobject", 7000);
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users