Changeset 1134 for pjproject/trunk
- Timestamp:
- Apr 2, 2007 7:51:21 PM (18 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r1112 r1134 50 50 pjsip_evsub *xfer_sub; /**< Xfer server subscription, if this 51 51 call was triggered by xfer. */ 52 pjmedia_sock_info skinfo; /**< Preallocated media sockets. */53 52 pjmedia_transport *med_tp; /**< Media transport. */ 54 53 pj_timer_entry refresh_tm;/**< Timer to send re-INVITE. */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r1133 r1134 2174 2174 pjmedia_sdp_conn *conn; 2175 2175 pjmedia_sdp_attr *attr; 2176 pjmedia_sock_info skinfo; 2176 2177 pjmedia_sdp_session *sdp; 2178 2179 /* Get media socket info */ 2180 pjmedia_transport_get_info(call->med_tp, &skinfo); 2177 2181 2178 2182 /* Create new offer */ 2179 2183 status = pjmedia_endpt_create_sdp(pjsua_var.med_endpt, pjsua_var.pool, 1, 2180 & call->skinfo, &sdp);2184 &skinfo, &sdp); 2181 2185 if (status != PJ_SUCCESS) { 2182 2186 pjsua_perror(THIS_FILE, "Unable to create local SDP", status); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r1112 r1134 142 142 pjsip_tx_data *tdata; 143 143 pjsip_response_addr res_addr; 144 pjmedia_sock_info skinfo; 144 145 pjmedia_sdp_session *sdp; 145 146 const pjsip_hdr *cap_hdr; … … 196 197 } 197 198 199 /* Get media socket info */ 200 pjmedia_transport_get_info(pjsua_var.calls[0].med_tp, &skinfo); 201 198 202 /* Add SDP body, using call0's RTP address */ 199 203 status = pjmedia_endpt_create_sdp(pjsua_var.med_endpt, tdata->pool, 1, 200 & pjsua_var.calls[0].skinfo, &sdp);204 &skinfo, &sdp); 201 205 if (status == PJ_SUCCESS) { 202 206 pjsip_create_sdp_body(tdata->pool, sdp, &tdata->msg->body); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r1133 r1134 506 506 { 507 507 unsigned i; 508 pjmedia_sock_info skinfo; 508 509 pj_status_t status; 509 510 … … 511 512 for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { 512 513 513 status = create_rtp_rtcp_sock(cfg, & pjsua_var.calls[i].skinfo);514 status = create_rtp_rtcp_sock(cfg, &skinfo); 514 515 if (status != PJ_SUCCESS) { 515 516 pjsua_perror(THIS_FILE, "Unable to create RTP/RTCP socket", … … 518 519 } 519 520 status = pjmedia_transport_udp_attach(pjsua_var.med_endpt, NULL, 520 & pjsua_var.calls[i].skinfo, 0,521 &skinfo, 0, 521 522 &pjsua_var.calls[i].med_tp); 522 523 if (status != PJ_SUCCESS) { … … 606 607 } 607 608 608 /* Get transport info */609 pjmedia_transport_get_info(pjsua_var.calls[i].med_tp,610 &pjsua_var.calls[i].skinfo);611 612 609 } 613 610 … … 695 692 { 696 693 pjmedia_sdp_session *sdp; 694 pjmedia_sock_info skinfo; 697 695 pjsua_call *call = &pjsua_var.calls[call_id]; 698 696 pj_status_t status; 699 697 698 /* Get media socket info */ 699 pjmedia_transport_get_info(call->med_tp, &skinfo); 700 701 /* Create SDP */ 700 702 status = pjmedia_endpt_create_sdp(pjsua_var.med_endpt, pool, 1, 701 & call->skinfo, &sdp);703 &skinfo, &sdp); 702 704 if (status != PJ_SUCCESS) 703 705 goto on_error;
Note: See TracChangeset
for help on using the changeset viewer.