Changeset 2291 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Sep 17, 2008 3:32:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r2266 r2291 2019 2019 static void dump_media_session(const char *indent, 2020 2020 char *buf, unsigned maxlen, 2021 pj media_session *session)2021 pjsua_call *call) 2022 2022 { 2023 2023 unsigned i; … … 2025 2025 int len; 2026 2026 pjmedia_session_info info; 2027 2027 pjmedia_session *session = call->session; 2028 pjmedia_transport_info tp_info; 2029 2030 pjmedia_transport_info_init(&tp_info); 2031 2032 pjmedia_transport_get_info(call->med_tp, &tp_info); 2028 2033 pjmedia_session_get_info(session, &info); 2029 2034 … … 2038 2043 2039 2044 pjmedia_session_get_stream_stat(session, i, &stat); 2040 rem_addr = pj_sockaddr_print(&info.stream_info[i].rem_addr, 2041 rem_addr_buf, sizeof(rem_addr_buf), 3); 2045 // rem_addr will contain actual address of RTP originator, instead of 2046 // remote RTP address specified by stream which is fetched from the SDP. 2047 // Please note that we are assuming only one stream per call. 2048 //rem_addr = pj_sockaddr_print(&info.stream_info[i].rem_addr, 2049 // rem_addr_buf, sizeof(rem_addr_buf), 3); 2050 if (pj_sockaddr_has_addr(&tp_info.rem_rtp_name)) { 2051 rem_addr = pj_sockaddr_print(&tp_info.rem_rtp_name, rem_addr_buf, 2052 sizeof(rem_addr_buf), 3); 2053 } else { 2054 pj_ansi_snprintf(rem_addr_buf, sizeof(rem_addr_buf), "-"); 2055 } 2042 2056 2043 2057 if (info.stream_info[i].dir == PJMEDIA_DIR_ENCODING) … … 2628 2642 /* Print call info */ 2629 2643 void print_call(const char *title, 2630 2631 2644 int call_id, 2645 char *buf, pj_size_t size) 2632 2646 { 2633 2647 int len; … … 2759 2773 /* Dump session statistics */ 2760 2774 if (with_media && call->session) 2761 dump_media_session(indent, p, end-p, call ->session);2775 dump_media_session(indent, p, end-p, call); 2762 2776 2763 2777 pjsip_dlg_dec_lock(dlg);
Note: See TracChangeset
for help on using the changeset viewer.