<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] xml_curl requests multiple times per call</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>What you do is use mod_xml_rpc to start the call, then have it sent to mod_httapi for control...<BR>
<BR>
Example using mod_xml_rpc, send an originate<BR>
Originate sofia/profile/Aleg_dest@somehost httpapi_exten XML context CLID_NAME CLID_NUMBER<BR>
<BR>
Then the httapi exten takes over the B leg and controls the call<BR>
<BR>
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)<BR>
<BR>
K<BR>
<BR>
<BR>
On 11/20/12 8:30 AM, &quot;Tim Meade&quot; &lt;<a href="Tim.Meade@Millicorp.com">Tim.Meade@Millicorp.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Using mod_httapi is there a method to inject a call into a server? &nbsp;&nbsp;Have the web server tell the Freeswitch server to make a call&#8230;..<BR>
&nbsp;<BR>
Mod_xml_rpc can do it, but again we loss the state of the call. <BR>
&nbsp;<BR>
In an ideal world I want to create the call and have 2 or 3 callbacks to the web app session&#8230;..<BR>
&nbsp;<BR>
Possible?<BR>
&nbsp;<BR>
<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><B>From:</B> <a href="freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <B>On Behalf Of </B>Ken Rice<BR>
<B>Sent:</B> Monday, November 19, 2012 8:10 PM<BR>
<B>To:</B> FreeSWITCH Users Help<BR>
<B>Subject:</B> Re: [Freeswitch-users] xml_curl requests multiple times per call<BR>
</SPAN></FONT></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>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<BR>
<BR>
Also check out mod_httapi, this is more like ESL, but it asks a webserver what to do each step of the call<BR>
<BR>
K<BR>
<BR>
On 11/19/12 5:36 PM, &quot;Tim Meade&quot; &lt;<a href="Tim.Meade@Millicorp.com">Tim.Meade@Millicorp.com</a>&gt; wrote:<BR>
Is there any way or method to have multiple xml_curl calls per call?<BR>
<BR>
<BR>
Something like<BR>
&nbsp;<BR>
Call comes in<BR>
xml_curl gets dialplan xml<BR>
At some point in the dialplan xml something triggers a second call to xml_curl with current dial plan parameters.<BR>
&nbsp;<BR>
&nbsp;<BR>
Hope that makes some kind of sense.<BR>
&nbsp;<BR>
Thanks<BR>
&nbsp;<BR>
Tim 
</SPAN></FONT>
<P ALIGN=CENTER>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT>
<P>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
</SPAN></FONT>
</BODY>
</HTML>