Changeset 4122 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- May 14, 2012 11:04:46 AM (12 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
/pjproject/branches/1.x merged: 4116-4117,4119,4121
- Property svn:mergeinfo changed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r4099 r4122 2195 2195 PJSUA_LOCK(); 2196 2196 2197 if ( pjsua_var.tpdata[id].type == PJSIP_TRANSPORT_UDP) {2197 if (t->type == PJSIP_TRANSPORT_UDP) { 2198 2198 2199 2199 pjsip_transport *tp = t->data.tp; … … 2216 2216 status = PJ_SUCCESS; 2217 2217 2218 } else if (pjsua_var.tpdata[id].type == PJSIP_TRANSPORT_TCP) { 2218 } else if (t->type == PJSIP_TRANSPORT_TCP || 2219 t->type == PJSIP_TRANSPORT_TLS) 2220 { 2219 2221 2220 2222 pjsip_tpfactory *factory = t->data.factory; … … 2227 2229 info->id = id; 2228 2230 info->type = t->type; 2229 info->type_name = pj_str("TCP"); 2230 info->info = pj_str("TCP transport"); 2231 info->type_name = (t->type==PJSIP_TRANSPORT_TCP)? pj_str("TCP"): 2232 pj_str("TLS"); 2233 info->info = (t->type==PJSIP_TRANSPORT_TCP)? pj_str("TCP transport"): 2234 pj_str("TLS transport"); 2231 2235 info->flag = factory->flag; 2232 2236 info->addr_len = sizeof(factory->local_addr);
Note: See TracChangeset
for help on using the changeset viewer.