我正在編寫MSPL腳本以將所有呼叫重定向到我的UCMA應用程序。聽起來很簡單,但我無法讓它工作。 它也崩潰了我的Skype 4商務客戶,當我嘗試,並與腳本的MSPL調用安裝如何創建MSPL腳本以將呼叫重定向到UCMA應用程序
我已經成功地使用New-CsServerApplication命令安裝MSPL腳本,該腳本編譯並沒有錯誤安裝。 這是MSPL腳本的問題。
我查看了http://blog.greenl.ee/2011/09/04/rerouting-requests-ucma-application-mspl/頁面尋求幫助,但仍無法使其工作。
當我打電話時,它只是使我的Skype 4 Business客戶端崩潰。
我粘貼下面
<?xml version="1.0" encoding="utf-8"?>
<r:applicationManifest appUri="http://www.example.com/recording" xmlns:r="http://schemas.microsoft.com/lcs/2006/05">
<r:requestFilter methodNames="INVITE" strictRoute="true" registrarGenerated="true" domainSupported="true" />
<r:proxyByDefault action="true" />
<r:scriptOnly />
<r:splScript><![CDATA[
if (sipRequest && IndexOfString(sipRequest.Content, "m=audio") >= 0) {
// Check to see if the call has been already forwarded
if (ContainsString(sipRequest.From, "sip: [email protected]", true)) {
// Allow the call to continue to its original destination.
Log("Event", 1, "Allowed call to continue to its original destination");
ProxyRequest();
} else {
// Forward the call to the UCMA app.
Log("Event", 1, "Forwarded caller to UCMA app: ", sipRequest.From);
Respond("302", "Moved Temporarily", "Contact=<sip:[email protected]>");
}
}
]]></r:splScript>
</r:applicationManifest>
我的腳本可有人請告訴我一個工作MSPL腳本的例子,將呼叫路由到UCMA的應用程序?
謝謝