[Freeswitch-users] xml_curl requests multiple times per call

Ken Rice krice at freeswitch.org
Tue Nov 20 18:24:22 MSK 2012


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 at 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 at 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 at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at 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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> 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
> 
> -- 
> Ken
> http://www.FreeSWITCH.org
> http://www.ClueCon.com
> http://www.OSTAG.org
> irc.freenode.net #freeswitch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121120/cee6204d/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list