Opened 7 years ago
Closed 7 years ago
#2052 closed defect (fixed)
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 (1)
comment:1 Changed 7 years ago by ming
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 5676: