diff options
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsip/sip_tel_uri.c | 2 | ||||
-rw-r--r-- | pjsip/src/test-pjsip/test.h | 2 | ||||
-rw-r--r-- | pjsip/src/test-pjsip/tsx_bench.c | 8 |
3 files changed, 9 insertions, 3 deletions
diff --git a/pjsip/src/pjsip/sip_tel_uri.c b/pjsip/src/pjsip/sip_tel_uri.c index f7069c52..8398aa66 100644 --- a/pjsip/src/pjsip/sip_tel_uri.c +++ b/pjsip/src/pjsip/sip_tel_uri.c @@ -164,7 +164,7 @@ pj_status_t pjsip_tel_uri_subsys_init(void) status = pj_cis_dup(&pjsip_TEL_PARSING_PVALUE_SPEC_ESC, &pjsip_TEL_PARSING_PVALUE_SPEC); - pj_cis_del_str(&pjsip_TEL_PVALUE_SPEC_ESC, "%"); + pj_cis_del_str(&pjsip_TEL_PARSING_PVALUE_SPEC_ESC, "%"); status = pjsip_register_uri_parser("tel", &tel_uri_parse); PJ_ASSERT_RETURN(status==PJ_SUCCESS, status); diff --git a/pjsip/src/test-pjsip/test.h b/pjsip/src/test-pjsip/test.h index b7b79c7d..84d9e1ef 100644 --- a/pjsip/src/test-pjsip/test.h +++ b/pjsip/src/test-pjsip/test.h @@ -38,7 +38,7 @@ extern pjsip_endpoint *endpt; #define INCLUDE_MESSAGING_GROUP 1 #define INCLUDE_TRANSPORT_GROUP 1 -#define INCLUDE_TSX_GROUP 1 +#define INCLUDE_TSX_GROUP 0 /* * Include tests that normally would fail under certain gcc diff --git a/pjsip/src/test-pjsip/tsx_bench.c b/pjsip/src/test-pjsip/tsx_bench.c index 08e20ae0..8e2b112b 100644 --- a/pjsip/src/test-pjsip/tsx_bench.c +++ b/pjsip/src/test-pjsip/tsx_bench.c @@ -31,6 +31,7 @@ static int uac_tsx_bench(unsigned working_set, pj_timestamp *p_elapsed) pjsip_tx_data *request; pjsip_transaction **tsx; pj_timestamp t1, t2, elapsed; + pjsip_via_hdr *via; pj_status_t status; /* Create the request first. */ @@ -48,6 +49,9 @@ static int uac_tsx_bench(unsigned working_set, pj_timestamp *p_elapsed) return status; } + via = (pjsip_via_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_VIA, + NULL); + /* Create transaction array */ tsx = pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); @@ -61,6 +65,8 @@ static int uac_tsx_bench(unsigned working_set, pj_timestamp *p_elapsed) status = pjsip_tsx_create_uac(&mod_tsx_user, request, &tsx[i]); if (status != PJ_SUCCESS) goto on_error; + /* Reset branch param */ + via->branch_param.slen = 0; } pj_get_timestamp(&t2); pj_sub_timestamp(&t2, &t1); @@ -183,7 +189,7 @@ on_error: int tsx_bench(void) { - enum { WORKING_SET=PJSIP_MAX_TSX_COUNT, REPEAT = 4 }; + enum { WORKING_SET=10000, REPEAT = 4 }; unsigned i, speed; pj_timestamp usec[REPEAT], min, freq; char desc[250]; |