Changeset 2259 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Sep 2, 2008 11:25:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r2241 r2259 1022 1022 PJ_EINVAL); 1023 1023 return pjsua_var.calls[call_id].session != NULL; 1024 } 1025 1026 1027 /* 1028 * Retrieve the media session associated with this call. 1029 */ 1030 PJ_DEF(pjmedia_session*) pjsua_call_get_media_session(pjsua_call_id call_id) 1031 { 1032 PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, 1033 NULL); 1034 return pjsua_var.calls[call_id].session; 1035 } 1036 1037 1038 /* 1039 * Retrieve the media transport instance that is used for this call. 1040 */ 1041 PJ_DEF(pjmedia_transport*) pjsua_call_get_media_transport(pjsua_call_id cid) 1042 { 1043 PJ_ASSERT_RETURN(cid>=0 && cid<(int)pjsua_var.ua_cfg.max_calls, 1044 NULL); 1045 return pjsua_var.calls[cid].med_tp; 1024 1046 } 1025 1047
Note: See TracChangeset
for help on using the changeset viewer.