Changeset 3775 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Sep 28, 2011 4:20:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3767 r3775 1415 1415 if (pjsua_var.media_cfg.enable_ice) { 1416 1416 status = create_ice_media_transport(tcfg, call_med, async); 1417 if (async && status == PJ_SUCCESS) { 1418 /* Callback has been called. */ 1419 call_med->med_init_cb = NULL; 1420 /* We cannot return PJ_SUCCESS here since we already call 1421 * the callback. 1422 */ 1423 return PJ_EPENDING; 1424 } else if (async && status == PJ_EPENDING) { 1425 /* We will resume call media initialization in the 1426 * on_ice_complete() callback. 1427 */ 1428 return PJ_EPENDING; 1429 } 1417 1430 } else { 1418 1431 status = create_udp_media_transport(tcfg, call_med); 1419 1432 } 1420 1433 1421 if (status == PJ_EPENDING) { 1422 /* We will resume call media initialization in the 1423 * on_ice_complete() callback. 1424 */ 1425 return PJ_EPENDING; 1426 } else if (status != PJ_SUCCESS) { 1434 if (status != PJ_SUCCESS) { 1427 1435 PJ_PERROR(1,(THIS_FILE, status, "Error creating media transport")); 1428 1436 return status;
Note: See TracChangeset
for help on using the changeset viewer.