Changeset 3106 for pjproject/trunk/pjsip/src/pjsip/sip_util.c
- Timestamp:
- Feb 24, 2010 5:43:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r3069 r3106 779 779 pjsip_hdr_clone(cancel_tdata->pool, req_tdata->saved_strict_route); 780 780 } 781 782 /* Copy the destination host name from the original request */ 783 pj_strdup(cancel_tdata->pool, &cancel_tdata->dest_info.name, 784 &req_tdata->dest_info.name); 781 785 782 786 /* Finally copy the destination info from the original request */ … … 1135 1139 1136 1140 /* Acquire transport. */ 1137 status = pjsip_endpt_acquire_transport (stateless_data->endpt,1141 status = pjsip_endpt_acquire_transport2(stateless_data->endpt, 1138 1142 cur_addr_type, 1139 1143 cur_addr, 1140 1144 cur_addr_len, 1141 1145 &tdata->tp_sel, 1146 tdata, 1142 1147 &stateless_data->cur_transport); 1143 1148 if (status != PJ_SUCCESS) { … … 1320 1325 */ 1321 1326 if (tdata->dest_info.addr.count == 0) { 1327 /* Copy the destination host name to TX data */ 1328 pj_strdup(tdata->pool, &tdata->dest_info.name, &dest_info.addr.host); 1329 1322 1330 pjsip_endpt_resolve( endpt, tdata->pool, &dest_info, stateless_data, 1323 1331 &stateless_send_resolver_callback); … … 1466 1474 pjsip_tpselector_add_ref(sraw_data->sel); 1467 1475 } 1476 1477 /* Copy the destination host name to TX data */ 1478 pj_strdup(tdata->pool, &tdata->dest_info.name, &dest_info.addr.host); 1468 1479 1469 1480 /* Resolve destination host. … … 1623 1634 1624 1635 /* Acquire transport. */ 1625 status = pjsip_endpt_acquire_transport (send_state->endpt,1636 status = pjsip_endpt_acquire_transport2(send_state->endpt, 1626 1637 addr->entry[0].type, 1627 1638 &addr->entry[0].addr, 1628 1639 addr->entry[0].addr_len, 1629 1640 &send_state->tdata->tp_sel, 1641 send_state->tdata, 1630 1642 &send_state->cur_transport); 1631 1643 if (status != PJ_SUCCESS) { … … 1703 1715 } 1704 1716 } else { 1717 /* Copy the destination host name to TX data */ 1718 pj_strdup(tdata->pool, &tdata->dest_info.name, 1719 &res_addr->dst_host.addr.host); 1720 1705 1721 pjsip_endpt_resolve(endpt, tdata->pool, &res_addr->dst_host, 1706 1722 send_state, &send_response_resolver_cb);
Note: See TracChangeset
for help on using the changeset viewer.