我正在使用pjproject 2.7.2,它工作正常,但是我有一个问题。我设置了一个呼叫,然后发送了另一个邀请,该邀请的属性无效。 PjSip回答为200OK,正确,但SDP信息不完整。
邀请:
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): - 2351622143 2351622137 IN IP4 10.17.87.101
Session Name (s): sessionDescription
Connection Information (c): IN IP4 10.17.87.101
Time Description, active time (t): 0 0
Media Description, name and address (m): audio 5000 RTP/AVP 8
Connection Information (c): IN IP4 127.0.0.1
Media Attribute (a): label:SDPlabelCtrl
Media Attribute (a): inactive
Media Attribute (a): rtpmap:8 PCMA/8000
Media Description, name and address (m): audio 0 RTP/AVP 8
Connection Information (c): IN IP4 127.0.0.1
Media Attribute (a): label:SDPlabelCall_1
Media Attribute (a): inactive
Media Attribute (a): rtpmap:8 PCMA/800
SIP OK:
v=0
o=- 3753002766 3753002774 IN IP4 10.17.87.201
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 2000 RTP/AVP 8
c=IN IP4 10.17.87.201
b=TIAS:64000
a=rtcp:2001 IN IP4 10.17.87.201
a=rtpmap:8 PCMA/8000
a=label:SDPlabelCtrl
a=inactive
m=audio 0 RTP/AVP 8
c=IN IP4 127.0.0.1
因此在200ok中缺少标签SDPlabelCall_1。有什么简单的方法可以在pjproject中添加它吗? 谢谢 BR 哈拉尔德