26 Nov
2021
26 Nov
'21
9:43 a.m.
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