Ticket #2052 (closed defect: fixed)

Opened 4 weeks ago

Last modified 4 weeks ago

Add option for pjsua callback on_stream_created to destroy application's supplied media port

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.7.1
Component: pjsua2 Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

In pjsua2, when Call object is about to be destroyed, it will call:

pjsua_call_set_user_data(id, NULL);
hangup(prm);

which will prevent any further callbacks to be invoked, meaning that application creating pjmedia_port in onStreamCreated() may not get the notification to destroy it in onStreamDestroyed().

This ticket is to add a new callback on_stream_created2() with the option to allow pjsua to manage the pjmedia port destruction instead.

Thanks to Kal Conley (b17c0de) for the original patch.

Change History

comment:1 Changed 4 weeks ago by ming

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

In 5676:

Fixed #2052: Add option for pjsua callback on_stream_created to destroy application's supplied media port

Note: See TracTickets for help on using tickets.