2015-06-12 53 views
4

我想集成Webrtc與PJSIP的iOS。邏輯是SIP系統單獨工作和Webrtc系統單獨工作。在任何情況下我都不會混淆。我在鏈接器嘗試集成PJSIP的SRTP和Webrtc的SRTP時遇到了第一個問題。 PJSIP的SRTP更舊,Webrtc的SRTP更新。我強制使用鏈接器中的force_load「LibPath」加載。它解決了鏈接器錯誤。我能夠使Webrtc連接,接收遠程視頻軌道,但我無法呈現遠程的流。我得到以下日誌。我的主要嫌疑人是在Webrtc的SRTP需要時加載PJSIP的SRTP。是否有可能用Webrtc的SRTP庫覆蓋?或者您有其他建議嗎?SIP和Webrtc集成iOS

沒有SIP,我能夠在兩臺設備之間建立正確的連接和流式傳輸,並且在不同的項目中工作,甚至APPRTC的演示也可以使用。

2015-06-12 18:57:41.835 [1028:134693] -[WebrtcManager peerConnection:iceGatheringChanged:] [Line 529] ICE gathering state changed: 2 
 
testing rand_source...passed 
 
cipher: aes cipher block chaining (cbc) mode 
 
    instance count: 0 
 
    self-test: 2015-06-12 18:57:42.063 [1028:134693] -[WebrtcManager peerConnection:iceConnectionChanged:] [Line 524] ICE state changed: 2 
 
passed 
 
cipher: aes integer counter mode 
 
    instance count: 0 
 
    self-test: passed 
 
cipher: null cipher 
 
    instance count: 0 
 
    self-test: passed 
 
auth func: hmac sha-1 authentication function 
 
    instance count: 0 
 
    self-test: passed 
 
auth func: null authentication function 
 
    instance count: 0 
 
    self-test: passed 
 
debug modules loaded: 
 
    srtp (off) 
 
    hmac sha-1 (off) 
 
    aes cbc (off) 
 
    aes icm (off) 
 
    alloc (off) 
 
    stat test (off) 
 
    cipher (off) 
 
    auth func (off) 
 
    crypto kernel (off) 
 
testing rand_source...passed 
 
cipher: aes cipher block chaining (cbc) mode 
 
    instance count: 0 
 
    self-test: passed 
 
cipher: aes integer counter mode 
 
    instance count: 0 
 
    self-test: passed 
 
cipher: null cipher 
 
    instance count: 0 
 
    self-test: passed 
 
auth func: hmac sha-1 authentication function 
 
    instance count: 0 
 
    self-test: passed 
 
auth func: null authentication function 
 
    instance count: 0 
 
    self-test: passed 
 
debug modules loaded: 
 
    srtp (off) 
 
    hmac sha-1 (off) 
 
    aes cbc (off) 
 
    aes icm (off) 
 
    alloc (off) 
 
    stat test (off) 
 
    cipher (off) 
 
    auth func (off) 
 
    crypto kernel (off)

回答

1

我不得不在PJSIP srtp庫中添加命名空間以避免符號衝突。現在雙方都存在