Changeset 1484


Ignore:
Timestamp:
Oct 6, 2007 5:55:55 PM (12 years ago)
Author:
bennylp
Message:

Fixed bug: resolver did not select securer transport for SIPS URI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_resolve.c

    r1358 r1484  
    197197             * But we don't support it (yet). 
    198198             */ 
    199             type = PJSIP_TRANSPORT_UDP; 
     199#if PJ_HAS_TCP 
     200            if (target->flag & PJSIP_TRANSPORT_SECURE)  
     201            { 
     202                type = PJSIP_TRANSPORT_TLS; 
     203            } else if (target->flag & PJSIP_TRANSPORT_RELIABLE)  
     204            { 
     205                type = PJSIP_TRANSPORT_TCP; 
     206            } else  
     207#endif 
     208            { 
     209                type = PJSIP_TRANSPORT_UDP; 
     210            } 
    200211        } 
    201212    } 
Note: See TracChangeset for help on using the changeset viewer.