VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
adrian at a2es.co.uk Guest
|
Posted: Thu Jan 05, 2023 9:45 am Post subject: [Freeswitch-users] mod_httapi usage/popular? |
|
|
Hello,
mod_httapi appears to be handy alternative to calling embedded language scripts for ad-hoc dialplan interactions. I can see a lot of potential for this, do many people use it? If you have used it in production would you share any experiences good or bad? Any hints or tips or gotchas to avoid?
The reason for me asking this, is that I'm having second thoughts about using Python and I really don't like Lua.
Kind regards,
Adrian Fretwell |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
gregor at infomedia.si Guest
|
Posted: Thu Jan 05, 2023 10:00 am Post subject: [Freeswitch-users] mod_httapi usage/popular? |
|
|
When we started with FS years ago, we built everything with mod_xml_curl.
After that we've started with mod_httapi and if we would start over, we would build more logic with mod_httapi. I like it as you can build small pieces of dialplan and have more control of logic while call progress through dialplan. In mod_xml_curl you have to build all dialplan, when call starts, that FS compiles it. You can use transfer, but mod_httapi is more developer friendly.
We are using mod_httapi in production without problems, but still main logic is with mod_xml_curl.
If you are using Python, you can write webhooks in Python or in any language you prefer.
I am also curious how community is using mod_httapi.
BR, Gregor
On Thu, 5 Jan 2023 at 15:08, Adrian Fretwell <adrian@a2es.co.uk (adrian@a2es.co.uk)> wrote:
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
adrian at a2es.co.uk Guest
|
Posted: Thu Jan 05, 2023 10:28 am Post subject: [Freeswitch-users] mod_httapi usage/popular? |
|
|
Hi Gregor,
Thankyou that is really helpful.
I have been using Python with Postgresql behind Nginx to serve mod_xml_curl and have managed to get the round trip response times down to 3 or 4 milliseconds. So I figured if I can do the same with handling httapi requests, it should work reasonably well.
Kind regards,
Adrian Fretwell
On 05/01/2023 14:49, Gregor Nanger wrote:
Quote: | When we started with FS years ago, we built everything with mod_xml_curl.
After that we've started with mod_httapi and if we would start over, we would build more logic with mod_httapi. I like it as you can build small pieces of dialplan and have more control of logic while call progress through dialplan. In mod_xml_curl you have to build all dialplan, when call starts, that FS compiles it. You can use transfer, but mod_httapi is more developer friendly.
We are using mod_httapi in production without problems, but still main logic is with mod_xml_curl.
If you are using Python, you can write webhooks in Python or in any language you prefer.
I am also curious how community is using mod_httapi.
BR, Gregor
On Thu, 5 Jan 2023 at 15:08, Adrian Fretwell <adrian@a2es.co.uk (adrian@a2es.co.uk)> wrote:
|
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
avi at avimarcus.net Guest
|
Posted: Thu Jan 05, 2023 10:48 am Post subject: [Freeswitch-users] mod_httapi usage/popular? |
|
|
I use mod_v8 with a small script that curl's to my endpoint with instructions.
It's not fully featured, but I've set up what I need.
On Thu, Jan 5, 2023, 5:06 PM Adrian Fretwell <adrian@a2es.co.uk (adrian@a2es.co.uk)> wrote:
Quote: |
Hi Gregor,
Thankyou that is really helpful.
I have been using Python with Postgresql behind Nginx to serve mod_xml_curl and have managed to get the round trip response times down to 3 or 4 milliseconds. So I figured if I can do the same with handling httapi requests, it should work reasonably well.
Kind regards,
Adrian Fretwell
On 05/01/2023 14:49, Gregor Nanger wrote:
Quote: | When we started with FS years ago, we built everything with mod_xml_curl.
After that we've started with mod_httapi and if we would start over, we would build more logic with mod_httapi. I like it as you can build small pieces of dialplan and have more control of logic while call progress through dialplan. In mod_xml_curl you have to build all dialplan, when call starts, that FS compiles it. You can use transfer, but mod_httapi is more developer friendly.
We are using mod_httapi in production without problems, but still main logic is with mod_xml_curl.
If you are using Python, you can write webhooks in Python or in any language you prefer.
I am also curious how community is using mod_httapi.
BR, Gregor
On Thu, 5 Jan 2023 at 15:08, Adrian Fretwell <adrian@a2es.co.uk (adrian@a2es.co.uk)> wrote:
|
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com |
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
freeswitch-users at li... Guest
|
Posted: Thu Jan 05, 2023 11:11 am Post subject: [Freeswitch-users] mod_httapi usage/popular? |
|
|
------ Start of attached email. Subject: RE: [Freeswitch-users] mod_httapi usage/popular? ------
We are using mod_xml_curl & c/c++ app to handle scripting, logic, ivrs, recording, etc.
New version is go based & httapi.
Br, Zvonimir
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Avi Marcus
Sent: 05. siječnja 2023. 16:16
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] mod_httapi usage/popular?
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I use mod_v8 with a small script that curl's to my endpoint with instructions.
It's not fully featured, but I've set up what I need.
On Thu, Jan 5, 2023, 5:06 PM Adrian Fretwell <adrian@a2es.co.uk<mailto:adrian@a2es.co.uk>> wrote:
Hi Gregor,
Thankyou that is really helpful.
I have been using Python with Postgresql behind Nginx to serve mod_xml_curl and have managed to get the round trip response times down to 3 or 4 milliseconds. So I figured if I can do the same with handling httapi requests, it should work reasonably well.
Kind regards,
Adrian Fretwell
On 05/01/2023 14:49, Gregor Nanger wrote:
When we started with FS years ago, we built everything with mod_xml_curl.
After that we've started with mod_httapi and if we would start over, we would build more logic with mod_httapi. I like it as you can build small pieces of dialplan and have more control of logic while call progress through dialplan. In mod_xml_curl you have to build all dialplan, when call starts, that FS compiles it. You can use transfer, but mod_httapi is more developer friendly.
We are using mod_httapi in production without problems, but still main logic is with mod_xml_curl.
If you are using Python, you can write webhooks in Python or in any language you prefer.
I am also curious how community is using mod_httapi.
BR, Gregor
On Thu, 5 Jan 2023 at 15:08, Adrian Fretwell <adrian@a2es.co.uk<mailto:adrian@a2es.co.uk>> wrote:
Hello,
mod_httapi appears to be handy alternative to calling embedded language scripts for ad-hoc dialplan interactions. I can see a lot of potential for this, do many people use it? If you have used it in production would you share any experiences good or bad? Any hints or tips or gotchas to avoid?
The reason for me asking this, is that I'm having second thoughts about using Python and I really don't like Lua.
Kind regards,
Adrian Fretwell
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com<mailto:sales@freeswitch.com>
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com<mailto:sales@freeswitch.com>
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com<mailto:sales@freeswitch.com>
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com
This communication is for informational purposes only. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Present message and any attached files may be or contain privileged information and is the property exclusive of ASSECO SEE CAPITAL GROUP. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. The information contained in this message is solely intended for the physical or legal person to whom it is addressed and to the authorized persons for receiving it. In the case you are not the intended recipient or the authorized person to receive this message, we inform that disclosure, duplicate, distribution or taking up any actions on information contained in this message are strictly forbidden and are under civil and legal responsibility. In case you received it by error, you are requested to notify the sender and to destroy the original e-mail message from your system. Opinions, conclusions or any other information contained into this message, which are not related to ASSECO SEE CAPITAL GROUP activity must not be understood to be expressed or should be endorsed by ASSECO SEE CAPITAL GROUP. The interpretation expressed in the present message did not reflect ASSECO SEE CAPITAL GROUP opinion.
------ End of attached email ------
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
krice at freeswitch.org Guest
|
Posted: Thu Jan 05, 2023 11:35 am Post subject: [Freeswitch-users] mod_httapi usage/popular? |
|
|
Both mod_xml_curl and mod_httapi work quite well in production, been using both for years. At some point you will reach a max performance level and will either need to horizontally scale the load by adding more FreeSWITCH boxes and some sort of front end load balancer for the SIP side (OpenSIPS or Kamailio) but this works very well.
Ken
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Adrian Fretwell
Sent: Thursday, January 5, 2023 8:08 AM
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] mod_httapi usage/popular?
Hello,
mod_httapi appears to be handy alternative to calling embedded language scripts for ad-hoc dialplan interactions. I can see a lot of potential for this, do many people use it? If you have used it in production would you share any experiences good or bad? Any hints or tips or gotchas to avoid?
The reason for me asking this, is that I'm having second thoughts about using Python and I really don't like Lua.
Kind regards,
Adrian Fretwell |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
adrian at a2es.co.uk Guest
|
Posted: Thu Jan 05, 2023 4:58 pm Post subject: [Freeswitch-users] mod_httapi usage/popular? |
|
|
Thankyou Ken,
...and many thanks to all who have replied to me on this, it has been very helpful.
I now have httapi up and running on the test bed with a low latency web server and it works very well.
Kind regards,
Adrian Fretwell
On 05/01/2023 16:09, krice@freeswitch.org (krice@freeswitch.org) wrote:
Quote: | @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; font-size:11.0pt; font-family:"Calibri",sans-serif;}span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:windowtext;}.MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;}div.WordSection1 {page:WordSection1;} <![endif]--> <![endif]-->
Both mod_xml_curl and mod_httapi work quite well in production, been using both for years. At some point you will reach a max performance level and will either need to horizontally scale the load by adding more FreeSWITCH boxes and some sort of front end load balancer for the SIP side (OpenSIPS or Kamailio) but this works very well.
Ken
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> (freeswitch-users-bounces@lists.freeswitch.org) On Behalf Of Adrian Fretwell
Sent: Thursday, January 5, 2023 8:08 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: [Freeswitch-users] mod_httapi usage/popular?
Hello,
mod_httapi appears to be handy alternative to calling embedded language scripts for ad-hoc dialplan interactions. I can see a lot of potential for this, do many people use it? If you have used it in production would you share any experiences good or bad? Any hints or tips or gotchas to avoid?
The reason for me asking this, is that I'm having second thoughts about using Python and I really don't like Lua.
Kind regards,
Adrian Fretwell
|
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|
|
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
|