Changeset 1229
- Timestamp:
- Apr 29, 2007 6:13:20 PM (18 years ago)
- Location:
- pjproject/branches/pjproject-0.5-stable/pjsip/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip/sip_parser.c
r1222 r1229 144 144 pj_pool_t *pool, 145 145 pj_str_t *pname, 146 pj_str_t *pvalue); 146 pj_str_t *pvalue, 147 unsigned option); 147 148 static void int_parse_hparam( pj_scanner *scanner, 148 149 pj_pool_t *pool, … … 1131 1132 /* Parse parameter (";" pname ["=" pvalue]) in URI. */ 1132 1133 static void int_parse_uri_param( pj_scanner *scanner, pj_pool_t *pool, 1133 pj_str_t *pname, pj_str_t *pvalue) 1134 pj_str_t *pname, pj_str_t *pvalue, 1135 unsigned option) 1134 1136 { 1135 1137 /* Get ';' character */ … … 1138 1140 /* Get pname and optionally pvalue */ 1139 1141 pjsip_parse_uri_param_imp(scanner, pool, pname, pvalue, 1140 PJSIP_PARSE_REMOVE_QUOTE);1142 option); 1141 1143 } 1142 1144 … … 1357 1359 pj_str_t pname, pvalue; 1358 1360 1359 int_parse_uri_param( scanner, pool, &pname, &pvalue );1361 int_parse_uri_param( scanner, pool, &pname, &pvalue, 0); 1360 1362 1361 1363 if (!parser_stricmp(pname, pjsip_USER_STR) && pvalue.slen) { -
pjproject/branches/pjproject-0.5-stable/pjsip/src/test-pjsip/msg_test.c
r1222 r1229 803 803 #define PARAM_CHAR "[]/:&+$" 804 804 #define SIMPLE_ADDR_SPEC "sip:host" 805 #define ADDR_SPEC SIMPLE_ADDR_SPEC ";" PARAM_CHAR "=" PARAM_CHAR805 #define ADDR_SPEC SIMPLE_ADDR_SPEC ";"PARAM_CHAR"="PARAM_CHAR ";p1=\";\"" 806 806 #define NAME_ADDR "<" ADDR_SPEC ">" 807 807 … … 1114 1114 #define PARAM_CHAR "[]/:&+$" 1115 1115 #define SIMPLE_ADDR_SPEC "sip:host" 1116 #define ADDR_SPEC SIMPLE_ADDR_SPEC ";" PARAM_CHAR "=" PARAM_CHAR1116 #define ADDR_SPEC SIMPLE_ADDR_SPEC ";"PARAM_CHAR"="PARAM_CHAR ";p1=\";\"" 1117 1117 #define NAME_ADDR "<" ADDR_SPEC ">" 1118 1118 */ … … 1130 1130 return rc; 1131 1131 1132 if (pj_list_size(&sip_uri->other_param) != 1)1132 if (pj_list_size(&sip_uri->other_param) != 2) 1133 1133 return -940; 1134 1134 … … 1139 1139 1140 1140 if (pj_strcmp2(¶m->value, PARAM_CHAR)) 1141 return -943; 1142 1143 param = param->next; 1144 if (pj_strcmp2(¶m->name, "p1")) 1145 return -942; 1146 if (pj_strcmp2(¶m->value, "\";\"")) 1141 1147 return -943; 1142 1148
Note: See TracChangeset
for help on using the changeset viewer.