我们正在使用 SIPML5 lib ( https://www.doubango.org/sipml5/ )开发一个 opensip 客户端。
通话正常,但是当我们使用保持选项时,会使用额外的“m=audio”参数生成 SDP:
recv=SIP/2.0 200 OK
Via: SIP/2.0/WSS df7jal23ls0d.invalid;rport=42992;received=NOP;branch=NOP
From: "SIPML5 Lib"<sip:NUMBER1@HOST>;tag=NOP
To: <sip:NUMBER2@HOST>;tag=NOP
Contact: <sip:NOP;transport=wss;did=27b.e64be994>
Call-ID: NOP
CSeq: 19833 INVITE
Content-Type: application/sdp
Content-Length: 583
Server: NOP
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY,INFO,PUBLISH,MESSAGE
Supported: replaces
v=0
o=root 570858297 570858299 IN IP4 NOP
s=NOP
c=IN IP4 NOP
t=0 0
m=audio 35780 UDP/TLS/RTP/SAVPF 8 0 101
a=maxptime:150
a=mid:0
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv
a=rtcp:35780
a=rtcp-mux
a=setup:active
a=fingerprint:sha-1 NOP
a=ptime:20
a=ice-ufrag:KdoQAI7m
a=ice-pwd:NOP
a=candidate:NOP 1 UDP 2130706431 NOP 35780 typ host
m=audio 0 UDP/TLS/RTP/SAVPF 109 9 0 8 101
这不应该发生对吗?有没有办法在发送之前“编辑”这个 SDP 消息?或者任何其他方法来解决这个问题?