Changeset 1860 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- Mar 11, 2008 9:38:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r1855 r1860 261 261 pjsip_tx_data *tdata; 262 262 pjsip_response_addr res_addr; 263 pjmedia_ sock_info skinfo;263 pjmedia_transport_info tpinfo; 264 264 pjmedia_sdp_session *sdp; 265 265 const pjsip_hdr *cap_hdr; … … 321 321 322 322 /* Get media socket info */ 323 pjmedia_transport_get_info(pjsua_var.calls[0].med_tp, & skinfo);323 pjmedia_transport_get_info(pjsua_var.calls[0].med_tp, &tpinfo); 324 324 325 325 /* Add SDP body, using call0's RTP address */ 326 326 status = pjmedia_endpt_create_sdp(pjsua_var.med_endpt, tdata->pool, 1, 327 & skinfo, &sdp);327 &tpinfo.sock_info, &sdp); 328 328 if (status == PJ_SUCCESS) { 329 329 pjsip_create_sdp_body(tdata->pool, sdp, &tdata->msg->body); … … 2061 2061 for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { 2062 2062 pjsua_call *call = &pjsua_var.calls[i]; 2063 pjmedia_ sock_info skinfo;2063 pjmedia_transport_info tpinfo; 2064 2064 char addr_buf[80]; 2065 2065 2066 /* MSVC complains about skinfo not being initialized */2067 pj_bzero(& skinfo, sizeof(skinfo));2068 2069 pjmedia_transport_get_info(call->med_tp, & skinfo);2066 /* MSVC complains about tpinfo not being initialized */ 2067 pj_bzero(&tpinfo, sizeof(tpinfo)); 2068 2069 pjmedia_transport_get_info(call->med_tp, &tpinfo); 2070 2070 2071 2071 PJ_LOG(3,(THIS_FILE, " %s: %s", 2072 2072 (pjsua_var.media_cfg.enable_ice ? "ICE" : "UDP"), 2073 pj_sockaddr_print(& skinfo.rtp_addr_name, addr_buf,2073 pj_sockaddr_print(&tpinfo.sock_info.rtp_addr_name, addr_buf, 2074 2074 sizeof(addr_buf), 3))); 2075 2075 }
Note: See TracChangeset
for help on using the changeset viewer.