Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_curl or mod_httapi


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
john.nash778 at gmail.com
Guest





PostPosted: Wed Mar 09, 2016 7:25 am    Post subject: [Freeswitch-users] mod_curl or mod_httapi Reply with quote

I need to call an http URL with some Post parameters from lua script and set some channel variables based on response data received. Which module will be best from performance point of view?
Back to top
gregor at infomedia.si
Guest





PostPosted: Wed Mar 09, 2016 8:09 am    Post subject: [Freeswitch-users] mod_curl or mod_httapi Reply with quote

Interesting question. I would also like to know this information from experts. I use mod_curl because of syntax, because you can use same knowledge from FS dialplan.
[img]http://t.sidekickopen45.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&pi=8cc3f297-a10c-4cb8-efd4-2f2973e4bfa7[/img]

2016-03-09 13:23 GMT+01:00 John Nash <john.nash778@gmail.com (john.nash778@gmail.com)>:
Quote:
I need to call an http URL with some Post parameters from lua script and set some channel variables based on response data received. Which module will be best from performance point of view?


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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




--
Gregor Nanger 
CTO
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
www.infomedia.si
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Mar 09, 2016 9:25 am    Post subject: [Freeswitch-users] mod_curl or mod_httapi Reply with quote

Those things aren't even alike, they solve different problems.  Just call the http url yourself from your lua script then.

On Wed, Mar 9, 2016 at 6:23 AM, John Nash <john.nash778@gmail.com (john.nash778@gmail.com)> wrote:
Quote:
I need to call an http URL with some Post parameters from lua script and set some channel variables based on response data received. Which module will be best from performance point of view?


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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




--

Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
Back to top
john.nash778 at gmail.com
Guest





PostPosted: Wed Mar 09, 2016 10:07 am    Post subject: [Freeswitch-users] mod_curl or mod_httapi Reply with quote

well as per documentation mod_curl looks straight forward, what do you mean by "Just call the http url yourself from your lua script then"?

On Wed, Mar 9, 2016 at 7:53 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Those things aren't even alike, they solve different problems.  Just call the http url yourself from your lua script then.

On Wed, Mar 9, 2016 at 6:23 AM, John Nash <john.nash778@gmail.com (john.nash778@gmail.com)> wrote:
Quote:
I need to call an http URL with some Post parameters from lua script and set some channel variables based on response data received. Which module will be best from performance point of view?


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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




--

Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest













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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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
Back to top
mgg at giagnocavo.net
Guest





PostPosted: Wed Mar 09, 2016 12:00 pm    Post subject: [Freeswitch-users] mod_curl or mod_httapi Reply with quote

mod_curl is perhaps a misleading name (the fact it uses curl internally is irrelevant). It’s better to think of it as mod_load_config_by_http. If you’re executing Lua code just perform the HTTP request directly from Lua, using Lua libraries and Lua code, then set variables, from Lua code.

-Michael

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of John Nash
Sent: Wednesday, 9 March, 2016 9:06
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] mod_curl or mod_httapi

well as per documentation mod_curl looks straight forward, what do you mean by "Just call the http url yourself from your lua script then"?


On Wed, Mar 9, 2016 at 7:53 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:

Those things aren't even alike, they solve different problems. Just call the http url yourself from your lua script then.


On Wed, Mar 9, 2016 at 6:23 AM, John Nash <john.nash778@gmail.com (john.nash778@gmail.com)> wrote:
Quote:

I need to call an http URL with some Post parameters from lua script and set some channel variables based on response data received. Which module will be best from performance point of view?


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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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






--
Brian West
brian@freeswitch.org (brian@freeswitch.org)

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest














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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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
Back to top
govoiper at gmail.com
Guest





PostPosted: Wed Mar 09, 2016 12:25 pm    Post subject: [Freeswitch-users] mod_curl or mod_httapi Reply with quote

+1 For mod_load_config_by_http Smile
On Mar 9, 2016 11:58, "Michael Giagnocavo" <mgg@giagnocavo.net (mgg@giagnocavo.net)> wrote:
Quote:

mod_curl is perhaps a misleading name (the fact it uses curl internally is irrelevant). It’s better to think of it as mod_load_config_by_http. If you’re executing Lua code just perform the HTTP request directly from Lua, using Lua libraries and Lua code, then set variables, from Lua code.
 
-Michael
 
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of John Nash
Sent: Wednesday, 9 March, 2016 9:06
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] mod_curl or mod_httapi
 
well as per documentation mod_curl looks straight forward, what do you mean by "Just call the http url yourself from your lua script then"?

 
On Wed, Mar 9, 2016 at 7:53 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:

Those things aren't even alike, they solve different problems.  Just call the http url yourself from your lua script then.

 
On Wed, Mar 9, 2016 at 6:23 AM, John Nash <john.nash778@gmail.com (john.nash778@gmail.com)> wrote:
Quote:

I need to call an http URL with some Post parameters from lua script and set some channel variables based on response data received. Which module will be best from performance point of view?


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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




 

--
Brian West
brian@freeswitch.org (brian@freeswitch.org)

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:[url=tel:%2B19184209001]+19184209001[/url] | F:[url=tel:%2B19184209002]+19184209002[/url] | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest














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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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


 



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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Mar 09, 2016 12:31 pm    Post subject: [Freeswitch-users] mod_curl or mod_httapi Reply with quote

What exactly do you think mod_xml_curl is?  LOL

On Wed, Mar 9, 2016 at 11:22 AM, SamyGo <govoiper@gmail.com (govoiper@gmail.com)> wrote:
Quote:

+1 For mod_load_config_by_http Smile
On Mar 9, 2016 11:58, "Michael Giagnocavo" <mgg@giagnocavo.net (mgg@giagnocavo.net)> wrote:
Quote:

mod_curl is perhaps a misleading name (the fact it uses curl internally is irrelevant). It’s better to think of it as mod_load_config_by_http. If you’re executing Lua code just perform the HTTP request directly from Lua, using Lua libraries and Lua code, then set variables, from Lua code.
 
-Michael
 
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of John Nash
Sent: Wednesday, 9 March, 2016 9:06
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] mod_curl or mod_httapi
 
well as per documentation mod_curl looks straight forward, what do you mean by "Just call the http url yourself from your lua script then"?

 
On Wed, Mar 9, 2016 at 7:53 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:

Those things aren't even alike, they solve different problems.  Just call the http url yourself from your lua script then.

 
On Wed, Mar 9, 2016 at 6:23 AM, John Nash <john.nash778@gmail.com (john.nash778@gmail.com)> wrote:
Quote:

I need to call an http URL with some Post parameters from lua script and set some channel variables based on response data received. Which module will be best from performance point of view?


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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




 

--
Brian West
brian@freeswitch.org (brian@freeswitch.org)

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:[url=tel:%2B19184209001]+19184209001[/url] | F:[url=tel:%2B19184209002]+19184209002[/url] | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest














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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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


 



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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




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

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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




--

Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services