2017-09-05 98 views
1

我正在編寫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的應用程序?

謝謝

回答

1

首先,我會強烈建議你不這樣做,你將最有可能打破了很多的呼叫,你可能不會很長一段時間發現怪異&微妙的方式流動。

您不需要執行「響應」,只需使用「RetargetRequest」函數將其重定向到新目標。

例如RetargetRequest( 「SIP:[email protected]」);

相關問題