Ignore:
Timestamp:
Sep 2, 2008 11:25:07 AM (13 years ago)
Author:
bennylp
Message:

Ticket #608: Added API to retrieve media transport and session from pjsua call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r2241 r2259  
    10221022                     PJ_EINVAL); 
    10231023    return pjsua_var.calls[call_id].session != NULL; 
     1024} 
     1025 
     1026 
     1027/* 
     1028 * Retrieve the media session associated with this call. 
     1029 */ 
     1030PJ_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 */ 
     1041PJ_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; 
    10241046} 
    10251047 
Note: See TracChangeset for help on using the changeset viewer.