2016-06-09 54 views
-1

我使用開源SIP庫liblinphone使斯威夫特一個呼出:Liblinphone SIP錯誤:403電話檢查失敗

func inviteCall(lc: COpaquePointer){ 
    let identity = "sip:[email protected]:5060" 
    let callee = linphone_address_new(identity) 
    var call: COpaquePointer = linphone_core_invite_address(lc, callee) 

    for _ in 1...20{ 
     linphone_core_iterate(lc); /* first iterate initiates registration */ 
     ms_usleep(1000 * 1000); 

    } 
} 

我從SIP服務器以下eror meesage:

2016-06-09 10:38:01:490 ortp-message-channel [0x7ffe73845000]: received [315] new bytes from [UDP://1.1.1.1:5060]: 
SIP/2.0 403 Phone Check Failed 
Via: SIP/2.0/UDP 172.20.10.2:5060;branch=z9hG4bK.wT4sI9IJA;rport=61355;received=180.217.232.152 

From: <sip:[email protected]>;tag=q6lu03sDI 
To: sip:[email protected];tag=00ddf5d9798df559a35d085b6da2ca8e.8b81 
CSeq: 21 INVITE 
Call-ID: al9nF3pfWh 
Content-Length: 0 

我搜索了約403 Phone Check Failed,但沒有可用的信息。任何想法如何解決它?謝謝。

PS:帳號/ IP信息被屏蔽

這是發送到SIP服務器

INVITE sip:[email protected]:5060 SIP/2.0 
Via: SIP/2.0/UDP 172.20.10.2:5060;branch=z9hG4bK.wT4sI9IJA;rport 
From: <sip:[email protected]>;tag=q6lu03sDI 
To: sip:[email protected] 
CSeq: 21 INVITE 
Call-ID: al9nF3pfWh 
Max-Forwards: 70 
Supported: replaces, outbound 
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE 
Content-Type: application/sdp 
Content-Length: 473 
Contact: <sip:[email protected]:61355>;+sip.instance="<urn:uuid:5b5a5dd0-5447-4066-9a3a-b652eb4db075>" 
User-Agent: (belle-sip/1.4.2) 
Proxy-Authorization: Digest realm="XXX.XXX.XXX.XXX", nonce="5758d7b1e9287b8975df56f3b8a5e9f3f455b585", username="XXXXXXX2519", uri="sip:[email protected]:5060", response="cf978e8e12c032aafa9a03e5d9450e9f", cnonce="7fb0fe3c", nc=00000001, qop=auth 

v=0 
o=XXXXXXX2519 238 1151 IN IP4 172.20.10.2 
s=Talk 
c=IN IP4 172.20.10.2 
t=0 0 
a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics 
m=audio 7078 RTP/AVP 96 97 98 0 8 101 99 100 
a=rtpmap:96 opus/48000/2 
a=fmtp:96 useinbandfec=1 
a=rtpmap:97 speex/16000 
a=fmtp:97 vbr=on 
a=rtpmap:98 speex/8000 
a=fmtp:98 vbr=on 
a=rtpmap:101 telephone-event/48000 
a=rtpmap:99 telephone-event/16000 
a=rtpmap:100 telephone-event/8000 
a=rtcp-fb:* trr-int 5000 

回答

0

我發現這個問題的邀請消息。我們不能在同一時間執行registerinvite sip命令。我認爲這造成了這個問題。