What you do is use mod_xml_rpc to start the call, then have it sent to mod_httapi for control...

Example using mod_xml_rpc, send an originate
Originate sofia/profile/Aleg_dest@somehost httpapi_exten XML context CLID_NAME CLID_NUMBER

Then the httapi exten takes over the B leg and controls the call

You can exhibit the same control on the A leg using the loopback/exten/context/dialplan syntax (note: we usually recommend against using loopbacks as they can be evil beasts at times)

K


On 11/20/12 8:30 AM, "Tim Meade" <Tim.Meade@Millicorp.com> wrote:

Using mod_httapi is there a method to inject a call into a server?   Have the web server tell the Freeswitch server to make a call…..
 
Mod_xml_rpc can do it, but again we loss the state of the call.
 
In an ideal world I want to create the call and have 2 or 3 callbacks to the web app session…..
 
Possible?
 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ken Rice
Sent: Monday, November 19, 2012 8:10 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] xml_curl requests multiple times per call

If you use the transfer app in the dialplan, this should induce it to re-fire the curl... However this is not stateless and it would look like a new call unless your http service is keeping track of things

Also check out mod_httapi, this is more like ESL, but it asks a webserver what to do each step of the call

K

On 11/19/12 5:36 PM, "Tim Meade" <Tim.Meade@Millicorp.com> wrote:
Is there any way or method to have multiple xml_curl calls per call?


Something like
 
Call comes in
xml_curl gets dialplan xml
At some point in the dialplan xml something triggers a second call to xml_curl with current dial plan parameters.
 
 
Hope that makes some kind of sense.
 
Thanks
 
Tim



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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


--
Ken
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
irc.freenode.net #freeswitch