2
我目前正試圖聯合兩個Lync域與中間一個自定義SIP代理。問題是,Lync服務器將回復「413 - 實體太大」,以便在通過代理服務器後訂閱來自其他Lync域的請求(msrtc-adrl-categorylist)。LYNC-SIP「413-請求實體太大」錯誤訂閱請求
但是,當我向SIP模擬器(SIP模擬器)發送了類似的消息時,即使它通過SIP代理,訂閱也會被接受。
這兩條消息非常相似。代理添加一條記錄路由並在From標籤末尾附加一個ID。它沒有把手放在身體上。
內容長度的差異是因爲SIPp在正文的末尾添加了一個CRLF,而Lync沒有。
我看不到任何請求的錯誤。以下消息記錄在目標域的Lync Edge上。
LYNC訂閱 - 拒絕,
Start-Line: SUBSCRIBE sip:[email protected] SIP/2.0
From: <sip:[email protected]>;epid=75bdd22553;tag=vl57cpy2rb72lu15i7awk22h0100003f1410
To: <sip:[email protected]>
CSeq: 1 SUBSCRIBE
Call-ID: 3ad1662aa2d84bc5a7de15f5d2ecd0be
Record-Route: <sip:smf1.testucfed.com:5061;lr>
Max-Forwards: 68
Via: SIP/2.0/TLS smf1.testucfed.com:5061;branch=z9hG4bKfspbWpOjnrsr3kELP8S9
Via: SIP/2.0/TCP 10.0.0.6:5060;branch=z9hG4bKfspbkK8M7FQrQmqN99a9
User-Agent: UCCAPI/4.0.7577.4103 OC/4.0.7577.4109 (Microsoft Lync 2010)
Event: presence
Accept: application/msrtc-event-categories+xml, application/xpidf+xml, text/xml+msrtc.pidf, application/pidf+xml, application/rlmi+xml, multipart/related
Supported: com.microsoft.autoextend
Supported: ms-piggyback-first-notify
ms-asserted-verification-level: ms-source-verified-user=verified
Content-Type: application/msrtc-adrl-categorylist+xml
Content-Length: 464
Contact: <sip:smf1.testucfed.com:5061>
Message-Body:
<batchSub xmlns="http://schemas.microsoft.com/2006/01/sip/batch-subscribe" uri="sip:[email protected]" name="">
<action name="subscribe" id="104999392">
<adhocList>
<resource uri="sip:[email protected]"/>
</adhocList>
<categoryList xmlns="http://schemas.microsoft.com/2006/09/sip/categorylist">
<category name="state"/>
<category name="note"/>
<category name="services"/>
<category name="contactCard"/>
<category name="calendarData"/>
</categoryList>
</action>
</batchSub>
西普訂閱 - 接受
Start-Line: SUBSCRIBE sip:[email protected] SIP/2.0
From: <sip:[email protected]>;epid=75bdd22553;tag=1iy5s1s4humjf184oeqyeitztd0100003f1410
To: <sip:[email protected]>
CSeq: 1 SUBSCRIBE
Call-ID: [email protected]
Record-Route: <sip:smf1.testucfed.com:5061;lr>
Max-Forwards: 68
Via: SIP/2.0/TLS smf1.testucfed.com:5061;branch=z9hG4bKfspbIP0PgNyO4vZelNvG
Via: SIP/2.0/TCP 10.0.0.6:5060;branch=z9hG4bKfspbWS366kCidcbxJt9m
Event: presence
Accept: application/msrtc-event-categories+xml, application/xpidf+xml, text/xml+msrtc.pidf, application/pidf+xml, application/rlmi+xml, multipart/related
User-Agent: UCCAPI/4.0.7577.4103 OC/4.0.7577.4109 (Microsoft Lync 2010)
Supported: com.microsoft.autoextend
Supported: ms-piggyback-first-notify
ms-asserted-verification-level: ms-source-verified-user=verified
Content-Type: application/msrtc-adrl-categorylist+xml
Content-Length: 466
Contact: <sip:smf1.testucfed.com:5061>
Message-Body:
<batchSub xmlns="http://schemas.microsoft.com/2006/01/sip/batch-subscribe" uri="sip:[email protected]" name="">
<action name="subscribe" id="104999648">
<adhocList>
<resource uri="sip:[email protected]"/>
</adhocList>
<categoryList xmlns="http://schemas.microsoft.com/2006/09/sip/categorylist">
<category name="state"/>
<category name="note"/>
<category name="services"/>
<category name="contactCard"/>
<category name="calendarData"/>
</categoryList>
</action>
</batchSub>
響應
Start-Line: SIP/2.0 413 Request entity too large
From: <sip:[email protected]>;epid=75bdd22553;tag=vl57cpy2rb72lu15i7awk22h0100003f1410
To: <sip:[email protected]>;tag=5F72F2201902C33E22FE6C4063EC56AD
CSeq: 1 SUBSCRIBE
Call-ID: 3ad1662aa2d84bc5a7de15f5d2ecd0be
Via: SIP/2.0/TLS 10.0.0.7:38020;branch=z9hG4bKDA21D3D8.2E84E1112774D915;branched=FALSE;ms-received- port=38020;ms-received-cid=400
Via: SIP/2.0/TLS smf1.testucfed.com:5061;branch=z9hG4bKfspbWpOjnrsr3kELP8S9;received=212.166.45.124;ms-received-port=51456;ms-received-cid=A3300
Via: SIP/2.0/TCP 10.0.0.6:5060;branch=z9hG4bKfspbkK8M7FQrQmqN99a9
ms-diagnostics: 4008;reason="Input data too large - One of the paramaters to the sproc exceeds limit";source="ARIW002.lync2.com"
Server: RTC/4.0
Content-Length: 0
Message-Body: –
是否有人知道什麼可以觸發這個錯誤?錯誤信息並不是真的很有幫助...
被拒絕的郵件的From頭是'From:(注意** lyn1 ** instread ** lync1 **,它位於接受郵件的標題中)。它的目的是?一些SIP服務器會拒絕來自不正確域的消息 –
tozka
這是一個錯誤。我爲這篇文章故意改變了域名。 – mdef