- Timestamp:
- Apr 26, 2012 6:41:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r4087 r4101 192 192 /* Close media transports */ 193 193 for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { 194 unsigned strm_idx; 195 pjsua_call *call = &pjsua_var.calls[i]; 196 for (strm_idx=0; strm_idx<call->med_cnt; ++strm_idx) { 197 pjsua_call_media *call_med = &call->media[strm_idx]; 198 if (call_med->tp_st != PJSUA_MED_TP_IDLE) { 199 pjsua_media_channel_deinit(i); 200 } 201 if (call_med->tp && call_med->tp_auto_del) { 202 /* TODO: check if we're not allowed to send to network in the 203 * "flags", and if so do not do TURN allocation... 204 */ 205 PJ_UNUSED_ARG(flags); 206 pjmedia_transport_close(call_med->tp); 207 } 208 call_med->tp = NULL; 209 } 194 /* TODO: check if we're not allowed to send to network in the 195 * "flags", and if so do not do TURN allocation... 196 */ 197 PJ_UNUSED_ARG(flags); 198 pjsua_media_channel_deinit(i); 210 199 } 211 200
Note: See TracChangeset
for help on using the changeset viewer.