Changeset 4537 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4534 r4537 300 300 #if PJSUA_ADD_ICE_TAGS 301 301 if (acc_cfg->ice_cfg.enable_ice) { 302 unsignednew_len;302 pj_ssize_t new_len; 303 303 pj_str_t new_prm; 304 304 … … 321 321 if (acc_cfg->rfc5626_instance_id.slen==0) { 322 322 const pj_str_t *hostname; 323 pj_uint32_t hval, pos; 323 pj_uint32_t hval; 324 pj_size_t pos; 324 325 char instprm[] = ";+sip.instance=\"<urn:uuid:00000000-0000-0000-0000-0000CCDDEEFF>\""; 325 326 326 327 hostname = pj_gethostname(); 327 328 pos = pj_ansi_strlen(instprm) - 10; 328 hval = pj_hash_calc(0, hostname->ptr, hostname->slen);329 hval = pj_hash_calc(0, hostname->ptr, (unsigned)hostname->slen); 329 330 pj_val_to_hex_digit( ((char*)&hval)[0], instprm+pos+0); 330 331 pj_val_to_hex_digit( ((char*)&hval)[1], instprm+pos+2); … … 335 336 } else { 336 337 const char *prmname = ";+sip.instance=\""; 337 unsignedlen;338 pj_size_t len; 338 339 339 340 len = pj_ansi_strlen(prmname) + acc_cfg->rfc5626_instance_id.slen + 1; … … 351 352 } else { 352 353 const char *prmname = ";reg-id="; 353 unsignedlen;354 pj_size_t len; 354 355 355 356 len = pj_ansi_strlen(prmname) + acc_cfg->rfc5626_reg_id.slen; … … 998 999 /* Global outbound proxy */ 999 1000 if (global_route_crc != acc->global_route_crc) { 1000 unsigned i, rcnt; 1001 unsigned i; 1002 pj_size_t rcnt; 1001 1003 1002 1004 /* Remove the outbound proxies from the route set */ … … 1363 1365 * reg-id parameters. 1364 1366 */ 1365 unsignedlen;1367 pj_ssize_t len; 1366 1368 pj_str_t reg_contact; 1367 1369 … … 1683 1685 const pj_str_t HROUTE = { "Route", 5 }; 1684 1686 pjsip_uri *uri[PJSUA_ACC_MAX_PROXIES]; 1685 unsigned i, uri_cnt = 0, rcnt; 1687 unsigned i, uri_cnt = 0; 1688 pj_size_t rcnt; 1686 1689 1687 1690 /* Find and parse Service-Route headers */
Note: See TracChangeset
for help on using the changeset viewer.