Ignore:
Timestamp:
May 14, 2012 11:04:46 AM (8 years ago)
Author:
bennylp
Message:

Re #1509: backported r4112-4121

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r4099 r4122  
    21952195    PJSUA_LOCK(); 
    21962196 
    2197     if (pjsua_var.tpdata[id].type == PJSIP_TRANSPORT_UDP) { 
     2197    if (t->type == PJSIP_TRANSPORT_UDP) { 
    21982198 
    21992199        pjsip_transport *tp = t->data.tp; 
     
    22162216        status = PJ_SUCCESS; 
    22172217 
    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    { 
    22192221 
    22202222        pjsip_tpfactory *factory = t->data.factory; 
     
    22272229        info->id = id; 
    22282230        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"); 
    22312235        info->flag = factory->flag; 
    22322236        info->addr_len = sizeof(factory->local_addr); 
Note: See TracChangeset for help on using the changeset viewer.