Changeset 4694 for pjproject/trunk
- Timestamp:
- Dec 17, 2013 9:01:21 AM (11 years ago)
- Location:
- pjproject/trunk/pjsip/src/pjsua-lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r4610 r4694 1505 1505 } 1506 1506 1507 /* Deinit media channel of all calls (see #1717) */ 1508 for (i=0; i<(int)pjsua_var.ua_cfg.max_calls; ++i) { 1509 /* TODO: check if we're not allowed to send to network in the 1510 * "flags", and if so do not do TURN allocation... 1511 */ 1512 pjsua_media_channel_deinit(i); 1513 } 1514 1507 1515 /* Set all accounts to offline */ 1508 1516 for (i=0; i<(int)PJ_ARRAY_SIZE(pjsua_var.acc); ++i) { … … 1515 1523 /* Terminate all presence subscriptions. */ 1516 1524 pjsua_pres_shutdown(flags); 1517 1518 /* Destroy media (to shutdown media transports etc) */1519 pjsua_media_subsys_destroy(flags);1520 1525 1521 1526 /* Wait for sometime until all publish client sessions are done … … 1621 1626 1622 1627 PJ_LOG(4,(THIS_FILE, "Destroying...")); 1628 1629 /* Destroy media (to shutdown media endpoint, etc) */ 1630 pjsua_media_subsys_destroy(flags); 1623 1631 1624 1632 /* Must destroy endpoint first before destroying pools in -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r4614 r4694 180 180 pj_status_t pjsua_media_subsys_destroy(unsigned flags) 181 181 { 182 unsigned i;182 PJ_UNUSED_ARG(flags); 183 183 184 184 PJ_LOG(4,(THIS_FILE, "Shutting down media..")); … … 192 192 } 193 193 194 #if 0 195 // This part has been moved out to pjsua_destroy() (see also #1717). 194 196 /* Close media transports */ 195 197 for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { … … 200 202 pjsua_media_channel_deinit(i); 201 203 } 204 #endif 202 205 203 206 /* Destroy media endpoint. */
Note: See TracChangeset
for help on using the changeset viewer.