[Freeswitch-users] Lua to create gateway XML

Seven Du dujinfang at gmail.com
Mon Nov 29 03:07:00 UTC 2021


not stream:write, you should return a XML_STRING = <xml>....

On Sat, Nov 27, 2021 at 1:39 PM Steve Aubrey-Bradshaw <
steve.aubrey-bradshaw at pipcall.com> wrote:

> Hi,
> I'm trying to use a Lua script to manage a list of SIP gateways on
> FreeSwitch that are stored in a mysql database.
>
> I have a script that I can run from the CLI that prints out the correct
> XML and I've added the lines below to autoload_configs/lua.conf.xml
>
>     <param name="xml-handler-script" value="gateways.lua"/>
>     <param name="xml-handler-bindings" value="configuration"/>
>
> However, nothing from the script is loading.
>
> I suspect that I'm not returning the XML from the script correctly. I'm
> currently using stream:write
>
> Does anyone have any experience with this?
>
> Best Regards,
> Steve
>
> _________________________________________________________________________
>
> 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com



-- 
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20211129/fa760492/attachment.html>


More information about the FreeSWITCH-users mailing list