Opened 14 years ago

Closed 14 years ago

#1143 closed defect (fixed)

Call problems between SRTP optional-with-duplicated-offer and SRTP disabled (thanks Bogdan Krakowski for the report)

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-1.8.5
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

Problems reported:

  1. no audio after call established
  2. crash when trying to re-invite/hold/update.

Steps to reproduce using pjsua app:

  1. instantiate pjsua A with SRTP mode 3 (optional with duplicated m lines in the offer)
  2. instantiate another pjsua B with SRTP mode 0 (disabled)
  3. pjsua A calls pjsua B, the first problem occurs here, pjsua A choose the encrypted media to be the active media (before call established), which later it is deactivated by pjsua B
  4. pjsua B sends re-invite/hold/update, the second problem occurs here, when SRTP transport_encode_sdp() accessing second media lines while actually only one media line generated.

Change History (1)

comment:1 Changed 14 years ago by nanang

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

(In [3334]) Fix #1143:

  • Fixed no audio bug when pjsua with SRTP optional-with-duplicated-offer calls pjsua with SRTP disabled, by updating active media index after SDP negotiation done.
  • Fixed bug in generating SDP, pjsua_media_channel_create_sdp(), by making sure all media in the SDP candidate are aligned with current active SDP before calling pjmedia_transport_encode_sdp().
  • Fixed bug in modifying SDP for call hold, the media index to be modified was hardcoded to 0, should be active media index.
  • Added python tests for calls with SRTP optional-with-duplicated-offer.
Note: See TracTickets for help on using tickets.