【发布时间】:2016-10-07 09:50:00
【问题描述】:
我有带有 xml_curl 模块选项的 freeswitch 的工作设置
<param name="gateway-url"
value="http://localhost:444/index.php"
bindings="directory|dialplan|configuration"/>
我想在 lua 模块上更改 xml_curl 模块,所以我关闭了 xml_curl 模块并将下一个选项设置为 lua 模块
<param name="xml-handler-script"
value="/var/www/callcenter/current/freeswitch/index.lua"/>
<param name="xml-handler-bindings"
value="dialplan|directory|configuration"/>
但是 sofia 模块会抛出错误 Error Creating SIP UA for profile。模块lua有什么问题吗?也许我应该为 lua 模块设置一些其他选项?
我有 FreeSWITCH 1.6
【问题讨论】:
-
首先使用
,而不是|。接下来检查你的 Lua 代码返回给 FS 的内容。它应该返回 full XML 结构以用于以<?xml version="1.0" encoding="UTF-8" standalone="no"?><document type="freeswitch/xml"><section name="configuration">开头的配置 -
Lua 读取与 CURL 相同的文件,因此应该没有区别。将
|更改为,没有帮助
标签: curl lua freeswitch