Changeset 619


Ignore:
Timestamp:
Jul 22, 2006 12:47:40 PM (18 years ago)
Author:
bennylp
Message:

Fixed bug in tel: URI unescaping code

Location:
pjproject/trunk/pjsip/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_tel_uri.c

    r607 r619  
    165165    status = pj_cis_dup(&pjsip_TEL_PARSING_PVALUE_SPEC_ESC,  
    166166                        &pjsip_TEL_PARSING_PVALUE_SPEC); 
    167     pj_cis_del_str(&pjsip_TEL_PVALUE_SPEC_ESC, "%"); 
     167    pj_cis_del_str(&pjsip_TEL_PARSING_PVALUE_SPEC_ESC, "%"); 
    168168 
    169169    status = pjsip_register_uri_parser("tel", &tel_uri_parse); 
  • pjproject/trunk/pjsip/src/test-pjsip/test.h

    r613 r619  
    3939#define INCLUDE_MESSAGING_GROUP     1 
    4040#define INCLUDE_TRANSPORT_GROUP     1 
    41 #define INCLUDE_TSX_GROUP           1 
     41#define INCLUDE_TSX_GROUP           0 
    4242 
    4343/* 
  • pjproject/trunk/pjsip/src/test-pjsip/tsx_bench.c

    r582 r619  
    3232    pjsip_transaction **tsx; 
    3333    pj_timestamp t1, t2, elapsed; 
     34    pjsip_via_hdr *via; 
    3435    pj_status_t status; 
    3536 
     
    4950    } 
    5051 
     52    via = (pjsip_via_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_VIA, 
     53                                              NULL); 
     54 
    5155    /* Create transaction array */ 
    5256    tsx = pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 
     
    6266        if (status != PJ_SUCCESS) 
    6367            goto on_error; 
     68        /* Reset branch param */ 
     69        via->branch_param.slen = 0; 
    6470    } 
    6571    pj_get_timestamp(&t2); 
     
    184190int tsx_bench(void) 
    185191{ 
    186     enum { WORKING_SET=PJSIP_MAX_TSX_COUNT, REPEAT = 4 }; 
     192    enum { WORKING_SET=10000, REPEAT = 4 }; 
    187193    unsigned i, speed; 
    188194    pj_timestamp usec[REPEAT], min, freq; 
Note: See TracChangeset for help on using the changeset viewer.