Changeset 4974 for pjproject/trunk
- Timestamp:
- Jan 19, 2015 8:04:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4965 r4974 3137 3137 3138 3138 if (status == PJ_SUCCESS) { 3139 pjsip_tx_data tdata; 3139 3140 int addr_len = pj_sockaddr_get_len(&ai.ai_addr); 3140 3141 pj_uint16_t port = (pj_uint16_t)dinfo.addr.port; 3142 3143 /* Create a dummy tdata to inform remote host name to transport */ 3144 pj_bzero(&tdata, sizeof(tdata)); 3145 pj_strdup(pool, &tdata.dest_info.name, &dinfo.addr.host); 3141 3146 3142 3147 if (port==0) { … … 3144 3149 } 3145 3150 pj_sockaddr_set_port(&ai.ai_addr, port); 3146 status = pjsip_endpt_acquire_transport(pjsua_var.endpt, 3147 dinfo.type, 3148 &ai.ai_addr, 3149 addr_len, 3150 &tp_sel, &tp); 3151 status = pjsip_endpt_acquire_transport2(pjsua_var.endpt, 3152 dinfo.type, 3153 &ai.ai_addr, 3154 addr_len, 3155 &tp_sel, 3156 &tdata, &tp); 3151 3157 } 3152 3158
Note: See TracChangeset
for help on using the changeset viewer.