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
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> 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 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
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> 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 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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWirehttps://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 timehttps://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
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> 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> 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 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
_________________________________________________________________________
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 Servicessales@freeswitch.comhttps://freeswitch.com
Official FreeSWITCH Siteshttps://freeswitch.com/osshttps://freeswitch.org/confluencehttps://cluecon.c...
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswit...
_________________________________________________________________________
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
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.
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
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 wrote:
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
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWirehttps://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 timehttps://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
participants (5)
-
Adrian Fretwell
-
Avi Marcus
-
Gregor Nanger
-
krice@freeswitch.org
-
Zvonimir Bužanić