Ignore:
Timestamp:
Apr 29, 2007 6:07:53 PM (18 years ago)
Author:
bennylp
Message:

Continuing ticket #240: Error parsing quoted URI parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test-pjsip/msg_test.c

    r1221 r1228  
    803803#define PARAM_CHAR           "[]/:&+$" 
    804804#define SIMPLE_ADDR_SPEC     "sip:host" 
    805 #define ADDR_SPEC            SIMPLE_ADDR_SPEC ";" PARAM_CHAR "=" PARAM_CHAR 
     805#define ADDR_SPEC            SIMPLE_ADDR_SPEC ";"PARAM_CHAR"="PARAM_CHAR ";p1=\";\"" 
    806806#define NAME_ADDR            "<" ADDR_SPEC ">" 
    807807 
     
    11141114#define PARAM_CHAR          "[]/:&+$" 
    11151115#define SIMPLE_ADDR_SPEC    "sip:host" 
    1116 #define ADDR_SPEC           SIMPLE_ADDR_SPEC ";" PARAM_CHAR "=" PARAM_CHAR 
     1116#define ADDR_SPEC            SIMPLE_ADDR_SPEC ";"PARAM_CHAR"="PARAM_CHAR ";p1=\";\"" 
    11171117#define NAME_ADDR           "<" ADDR_SPEC ">" 
    11181118 */ 
     
    11301130        return rc; 
    11311131 
    1132     if (pj_list_size(&sip_uri->other_param) != 1) 
     1132    if (pj_list_size(&sip_uri->other_param) != 2) 
    11331133        return -940; 
    11341134 
     
    11391139 
    11401140    if (pj_strcmp2(&param->value, PARAM_CHAR)) 
     1141        return -943; 
     1142 
     1143    param = param->next; 
     1144    if (pj_strcmp2(&param->name, "p1")) 
     1145        return -942; 
     1146    if (pj_strcmp2(&param->value, "\";\"")) 
    11411147        return -943; 
    11421148 
Note: See TracChangeset for help on using the changeset viewer.