Opened 12 years ago

Closed 11 years ago

#1185 closed enhancement (fixed)

Dynamic creation of media transports

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.0-dev
Component: pjsua-lib Version: 2.0-dev-branch
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

This ticket implements ticket #539.

See the spec in ReleaseNotes-2.0

Change History (7)

comment:1 Changed 12 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 11 years ago by bennylp

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

(In [3457]) Modifications in PJSUA-LIB to support multiple media streams (multiple audio and/or video) and dynamic creation of media transports. This closed #1185 and closed #1201.

1185: Dynamic creation of media transports

  • media transports are created on demand now


  • media transport creation is still blocking

1201: Video support in PJSUA-LIB

  • call now supports N media (N audio and M video)
  • number of audio/video streams is configurable per acc
  • extra audio stream info in pjsua_call_info to support multiple audio streams

in one call

  • video subsys and ffmpeg initialization in PJSUA-LIB
  • ability to offer and create video SDP answer
  • "dq" for more than 1 audio streams
  • introducing pjsua_state and pjsua_get_state()

API change:

  • on_stream_created() and on_stream_destroyed() callbacks: changed session to



  • many others features are disabled, just search for DISABLED_FOR_TICKET_1185

macro (these have also been added to ticket #1193 (Issues & Todos)). Notable
missing features are:

  • creation of duplicate SDP m= lines for optional SRTP
  • mm.. that's it?
  • whole lot of testings


  • Added --extra-audio and --video options. Specify these more than once and

each time an extra audio/video streams will be added. :)

comment:3 Changed 11 years ago by bennylp

  • Resolution fixed deleted
  • Status changed from closed to reopened

Work is still needed to make the transport creation asynchronous. Reopening the ticket.

comment:4 Changed 11 years ago by bennylp

(In [3506]) Re #1185: requesting call hold did not set video direction to sendonly

comment:5 Changed 11 years ago by bennylp

(In [3520]) Re #1185: fixed ICE media transport to work with video in pjsua-lib

comment:6 Changed 11 years ago by nanang

In r3560:

  • Fixed bug media transport is not closed after call disconnected.
  • Fixed handling remote re-offer, media transport will be created/disabled when media is added/removed/deactivated.

comment:7 Changed 11 years ago by bennylp

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.