Ignore:
Timestamp:
Feb 27, 2014 6:16:36 AM (10 years ago)
Author:
nanang
Message:

Fixed #1740: TLS will be used whenever request URI uses "sips" scheme regardless the target-URI scheme/transport. This behavior is configurable via 'PJSIP_DONT_SWITCH_TO_TLS' in compile-time, or 'pjsip_cfg()->disable_tls_switch' in run-time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r4720 r4770  
    113113 
    114114        /** 
     115         * Disable automatic switching to TLS if target-URI does not use 
     116         * "sips" scheme nor TLS transport, even when request-URI uses 
     117         * "sips" scheme. 
     118         * 
     119         * Default is PJSIP_DONT_SWITCH_TO_TLS. 
     120         */ 
     121        pj_bool_t disable_tls_switch; 
     122 
     123        /** 
    115124         * Enable call media session to always be updated to the latest 
    116125         * received early media SDP when receiving forked early media 
     
    310319 
    311320/** 
     321 * As specified RFC 3261 section 8.1.2, when request-URI uses "sips" scheme, 
     322 * TLS must always be used regardless of the target-URI scheme or transport 
     323 * type. 
     324 * 
     325 * This option will specify whether the behavior of automatic switching to TLS 
     326 * should be disabled, i.e: regard the target-URI scheme or transport type. 
     327 * 
     328 * This option can also be controlled at run-time by the \a disable_tls_switch 
     329 * setting in pjsip_cfg_t. 
     330 * 
     331 * Default is 0 (no). 
     332 */ 
     333#ifndef PJSIP_DONT_SWITCH_TO_TLS 
     334#   define PJSIP_DONT_SWITCH_TO_TLS     0 
     335#endif 
     336 
     337 
     338/** 
    312339 * Specify whether the call media session should be updated to the latest 
    313340 * received early media SDP when receiving forked early media (multiple 183 
Note: See TracChangeset for help on using the changeset viewer.