Changeset 1417 for pjproject/trunk/pjsip/src/pjsip/sip_uri.c
- Timestamp:
- Aug 16, 2007 10:11:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_uri.c
r1241 r1417 244 244 char *endbuf = buf+size; 245 245 const pj_str_t *scheme; 246 const pjsip_parser_const_t *pc = pjsip_parser_const(); 246 247 247 248 *buf = '\0'; … … 254 255 /* Print "user:password@", if any. */ 255 256 if (url->user.slen) { 256 copy_advance_escape(buf, url->user, p jsip_USER_SPEC);257 copy_advance_escape(buf, url->user, pc->pjsip_USER_SPEC); 257 258 if (url->passwd.slen) { 258 259 *buf++ = ':'; 259 copy_advance_escape(buf, url->passwd, p jsip_PASSWD_SPEC);260 copy_advance_escape(buf, url->passwd, pc->pjsip_PASSWD_SPEC); 260 261 } 261 262 … … 290 291 if (context == PJSIP_URI_IN_OTHER) { 291 292 copy_advance_pair_escape(buf, ";method=", 8, url->method_param, 292 p jsip_PARAM_CHAR_SPEC);293 pc->pjsip_PARAM_CHAR_SPEC); 293 294 } 294 295 … … 296 297 if (context != PJSIP_URI_IN_FROMTO_HDR) { 297 298 copy_advance_pair_escape(buf, ";transport=", 11, url->transport_param, 298 p jsip_PARAM_CHAR_SPEC);299 pc->pjsip_PARAM_CHAR_SPEC); 299 300 } 300 301 … … 313 314 if (context != PJSIP_URI_IN_FROMTO_HDR) { 314 315 copy_advance_pair_escape(buf, ";maddr=", 7, url->maddr_param, 315 p jsip_PARAM_CHAR_SPEC);316 pc->pjsip_PARAM_CHAR_SPEC); 316 317 } 317 318 … … 328 329 /* Other param. */ 329 330 printed = pjsip_param_print_on(&url->other_param, buf, endbuf-buf, 330 &p jsip_PARAM_CHAR_SPEC,331 &p jsip_PARAM_CHAR_SPEC, ';');331 &pc->pjsip_PARAM_CHAR_SPEC, 332 &pc->pjsip_PARAM_CHAR_SPEC, ';'); 332 333 if (printed < 0) 333 334 return -1; … … 341 342 if (context == PJSIP_URI_IN_CONTACT_HDR || context == PJSIP_URI_IN_OTHER) { 342 343 printed = pjsip_param_print_on(&url->header_param, buf, endbuf-buf, 343 &p jsip_HDR_CHAR_SPEC,344 &p jsip_HDR_CHAR_SPEC, '?');344 &pc->pjsip_HDR_CHAR_SPEC, 345 &pc->pjsip_HDR_CHAR_SPEC, '?'); 345 346 if (printed < 0) 346 347 return -1;
Note: See TracChangeset
for help on using the changeset viewer.