Ticket #433 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Failure in media negotiation when SDP contains two audio media lines (thanks Arie Velthoen)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.9.0
Component: pjmedia Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

PJSUA-LIB will fail to start audio when the SDP in incoming INVITE contains two audio media lines, for example:

v=0
o=- 1197975037 1197975037 IN IP4 192.168.9.74
s=-
c=IN IP4 192.168.9.74
t=0 0
m=audio 49200 RTP/SAVP 8 0 9 18 96
a=sendrecv
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:tMuyik1Aiiq9p4DQVHhAASSWDEP7K7wo0cICOn39
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=rtpmap:96 telephone-event/8000
m=audio 49200 RTP/AVP 8 0 9 18 96
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=rtpmap:96 telephone-event/8000

In this case, PJSUA-LIB treats the first m= line as the audio media, but since the transport is not supported, the audio will not be active.

Thanks Arie Velthoen for pointing this out.

Change History

comment:1 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r1639

Note: See TracTickets for help on using tickets.