Ignore:
Timestamp:
Jul 18, 2006 12:33:02 AM (18 years ago)
Author:
bennylp
Message:

More intelligent PJSUA-LIB in selecting the appropriate address for Contact header

File:
1 edited

Legend:

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

    r515 r611  
    360360 * Create new SIP URL and initialize all fields with zero or NULL. 
    361361 * @param pool      The pool. 
    362  * @param secure    Tlag to indicate whether secure transport should be used. 
     362 * @param secure    Flag to indicate whether secure transport should be used. 
    363363 * @return SIP URL. 
    364364 */ 
    365 PJ_DECL(pjsip_sip_uri*) pjsip_sip_uri_create( pj_pool_t *pool, int secure ); 
    366  
    367 /** 
    368  * Create new SIPS URL and initialize all fields with zero or NULL. 
    369  * @param pool      The pool. 
    370  * @return          SIPS URL. 
    371  */ 
    372 PJ_DECL(pjsip_sip_uri*) pjsip_sips_uri_create( pj_pool_t *pool ); 
     365PJ_DECL(pjsip_sip_uri*) pjsip_sip_uri_create( pj_pool_t *pool,  
     366                                              pj_bool_t secure ); 
     367 
     368/** 
     369 * Change the SIP URI scheme to sip or sips based on the secure flag. 
     370 * This would not change anything except the scheme. 
     371 * @param uri       The URI 
     372 * @param secure    Non-zero if sips is wanted. 
     373 */ 
     374PJ_DECL(void) pjsip_sip_uri_set_secure( pjsip_sip_uri *uri,  
     375                                        pj_bool_t secure ); 
    373376 
    374377/** 
     
    377380 * @param secure    Create sips URI? 
    378381 */ 
    379 PJ_DECL(void)  pjsip_sip_uri_init(pjsip_sip_uri *url, int secure); 
     382PJ_DECL(void)  pjsip_sip_uri_init(pjsip_sip_uri *url, pj_bool_t secure); 
    380383 
    381384/** 
Note: See TracChangeset for help on using the changeset viewer.