xml_curl requests multiple times per call
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
It does make sense, but I don't know that you can use xml_curl for that. However, it sounds suspiciously similar to how mod_httapi works. Have you ever looked at that? -MC On Mon, Nov 19, 2012 at 3: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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
If you transfer your call, a new dialplan/ext will be called/build,via xml_curl.... So you can transfer inside via action at the point you want or transfer externaly via event_socket or xml_rpc. 2012/11/20 Michael Collins <msc@freeswitch.org>
It does make sense, but I don't know that you can use xml_curl for that. However, it sounds suspiciously similar to how mod_httapi works. Have you ever looked at that?
-MC
On Mon, Nov 19, 2012 at 3: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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ 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
Pfff , my gmail interface wasn't refresh when i clicked answer so I don't saw all the answer before mine :) sorry for the doublon... 2012/11/20 Regis M <regis.freeswitch.org@tornad.net>
If you transfer your call, a new dialplan/ext will be called/build,via xml_curl.... So you can transfer inside via action at the point you want or transfer externaly via event_socket or xml_rpc.
2012/11/20 Michael Collins <msc@freeswitch.org>
It does make sense, but I don't know that you can use xml_curl for that. However, it sounds suspiciously similar to how mod_httapi works. Have you ever looked at that?
-MC
On Mon, Nov 19, 2012 at 3: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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ 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
Thanks everyone. The transfer option sounds interesting. I will most certainly look at httapi first. We looked at it back when but I'm not sure why we didn't use it. Tim From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Regis M Sent: Tuesday, November 20, 2012 1:49 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] xml_curl requests multiple times per call Pfff , my gmail interface wasn't refresh when i clicked answer so I don't saw all the answer before mine :) sorry for the doublon... 2012/11/20 Regis M <regis.freeswitch.org@tornad.net<mailto:regis.freeswitch.org@tornad.net>> If you transfer your call, a new dialplan/ext will be called/build,via xml_curl.... So you can transfer inside via action at the point you want or transfer externaly via event_socket or xml_rpc. 2012/11/20 Michael Collins <msc@freeswitch.org<mailto:msc@freeswitch.org>> It does make sense, but I don't know that you can use xml_curl for that. However, it sounds suspiciously similar to how mod_httapi works. Have you ever looked at that? -MC On Mon, Nov 19, 2012 at 3:36 PM, Tim Meade <Tim.Meade@millicorp.com<mailto: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<mailto: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<mailto: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 -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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
Transfer or execute extension. Sent from my iPhone On Nov 19, 2012, at 8: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
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
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
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
Yes, Either the transfer app or the execute_extension will both do it. One transfers the call to a whole new extension and the other requests an extension and executes it in place like a gosub. On Mon, Nov 19, 2012 at 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
When you transfer, the xml_curl gets called again, and has access to all current channel variables. -Avi
participants (7)
-
Anthony Minessale
-
Avi Marcus
-
João Mesquita
-
Ken Rice
-
Michael Collins
-
Regis M
-
Tim Meade