0
我試圖複製我們在另一臺交換機上使用的API服務,該服務需要使用mod_curl操作將基本呼叫信息(呼叫者號碼和被呼叫號碼)傳遞到網頁。Freeswitch - 使用撥號方案通過mod_curl呼叫
我的代碼是這樣的,在默認的入站撥號規則:
<action application="curl" data="http://web.test.net/fs.php post id=${new}" inline="true"/>
如果我粘貼內FS_CLI捲曲要求它粘貼信息,所以我知道捲曲啓用並在服務器上運行。但是,如果我撥打與撥號計劃相關的號碼,則什麼都不會發生 - 我甚至無法看到FS試圖運行該操作。
任何人都可以建議如何調用URL來傳遞dialplan中的一些變量。我意識到我可以構建一個事件監聽器,但這對我試圖實現的內容來說過分了。
全部下面的代碼:
<include>
<extension name="sip-inbound">
<condition field="destination_number" expression="^(xxxx594xxxx)$">
<action application="set" data="domain_name=$${domain}"/>
<action application="curl" data="http://web.test.net/fs.php post id=${new}" inline="true"/>
<action application="bridge" data="1000 XML default"/>
</condition>
</extension>
</include>
感謝您使用
你保存後reloadxml?你可以在某處粘貼電話記錄嗎? – user1278519 2014-08-31 04:52:12