- Timestamp:
- Sep 6, 2013 10:04:39 AM (11 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r4586 r4592 2535 2535 2536 2536 /** 2537 * This macro specifies the URI scheme to use in Contact header2538 * when secure transport such as TLS is used. Application can specify2539 * either "sip" or "sips".2540 */2541 #ifndef PJSUA_SECURE_SCHEME2542 # define PJSUA_SECURE_SCHEME "sip"2543 #endif2544 2545 2546 /**2547 2537 * Maximum time to wait for unpublication transaction(s) to complete 2548 2538 * during shutdown process, before sending unregistration. The library -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r4543 r4592 215 215 pj_str_t display; /**< Display name, if any. */ 216 216 pj_str_t user_part; /**< User part of local URI. */ 217 pj_bool_t is_sips; /**< Local URI uses "sips"? */ 217 218 pj_str_t contact; /**< Our Contact header. */ 218 219 pj_str_t reg_contact; /**< Contact header for REGISTER. -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4586 r4592 202 202 acc->srv_port = 0; 203 203 } 204 acc->is_sips = PJSIP_URI_SCHEME_IS_SIPS(name_addr); 204 205 205 206 … … 912 913 pj_strdup_with_null(acc->pool, &acc->srv_domain, &id_sip_uri->host); 913 914 acc->srv_port = 0; 915 acc->is_sips = PJSIP_URI_SCHEME_IS_SIPS(id_name_addr); 914 916 update_reg = PJ_TRUE; 915 917 unreg_first = PJ_TRUE; … … 1705 1707 char transport_param[32]; 1706 1708 int len; 1709 pj_bool_t secure; 1710 1711 secure = pjsip_transport_get_flag_from_type(tp->key.type) & 1712 PJSIP_TRANSPORT_SECURE; 1707 1713 1708 1714 /* Enclose IPv6 address in square brackets */ … … 1728 1734 tmp = (char*) pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 1729 1735 len = pj_ansi_snprintf(tmp, PJSIP_MAX_URL_SIZE, 1730 "<sip:%.*s%s%s%.*s%s:%d%s%.*s%s>%.*s", 1736 "<%s:%.*s%s%s%.*s%s:%d%s%.*s%s>%.*s", 1737 ((secure && acc->is_sips)? "sips" : "sip"), 1731 1738 (int)acc->user_part.slen, 1732 1739 acc->user_part.ptr, … … 3080 3087 acc->display.ptr, 3081 3088 (acc->display.slen?"\" " : ""), 3082 ( secure ? PJSUA_SECURE_SCHEME: "sip"),3089 ((secure && acc->is_sips)? "sips" : "sip"), 3083 3090 (int)acc->user_part.slen, 3084 3091 acc->user_part.ptr, … … 3251 3258 acc->display.ptr, 3252 3259 (acc->display.slen?"\" " : ""), 3253 ( secure ? PJSUA_SECURE_SCHEME: "sip"),3260 ((secure && acc->is_sips)? "sips" : "sip"), 3254 3261 (int)acc->user_part.slen, 3255 3262 acc->user_part.ptr,
Note: See TracChangeset
for help on using the changeset viewer.