VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
john.nash778 at gmail.com Guest
|
Posted: Wed Mar 09, 2016 7:25 am Post subject: [Freeswitch-users] mod_curl or mod_httapi |
|
|
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
|
Posted: Wed Mar 09, 2016 8:09 am Post subject: [Freeswitch-users] mod_curl or mod_httapi |
|
|
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)>:
--
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
|
|
Back to top |
|
|
john.nash778 at gmail.com Guest
|
Posted: Wed Mar 09, 2016 10:07 am Post subject: [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:
|
|
Back to top |
|
|
mgg at giagnocavo.net Guest
|
Posted: Wed Mar 09, 2016 12:00 pm Post subject: [Freeswitch-users] mod_curl or mod_httapi |
|
|
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: |
|
Back to top |
|
|
govoiper at gmail.com Guest
|
Posted: Wed Mar 09, 2016 12:25 pm Post subject: [Freeswitch-users] mod_curl or mod_httapi |
|
|
+1 For mod_load_config_by_http
On Mar 9, 2016 11:58, "Michael Giagnocavo" <mgg@giagnocavo.net (mgg@giagnocavo.net)> wrote: |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
|
|
|
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
|