diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-05-12 15:55:09 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-05-12 15:55:09 +0000 |
commit | 563c9c9854f072e3162bea977ced8b7ac40cf57b (patch) | |
tree | 8569d2d1d275dd0f20796957ee273e35d88af752 /pjsip/src/test/msg_test.c | |
parent | cd3fb1c8385ed3eb7568e6d0281e0d1faa92536b (diff) |
Ticket #842: Error parsing status line in sipfrag message body in call transfer scenario (thanks Tomáš Valenta for the report!)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2695 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/test/msg_test.c')
-rw-r--r-- | pjsip/src/test/msg_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pjsip/src/test/msg_test.c b/pjsip/src/test/msg_test.c index 0d922a5b..d4a7f14b 100644 --- a/pjsip/src/test/msg_test.c +++ b/pjsip/src/test/msg_test.c @@ -815,10 +815,17 @@ static pjsip_msg *create_msg1(pj_pool_t *pool) static pj_status_t simple_test(void) { + char stbuf[] = "SIP/2.0 180 Ringing like it never rings before"; unsigned i; + pjsip_status_line st_line; pj_status_t status; PJ_LOG(3,(THIS_FILE, " simple test..")); + + status = pjsip_parse_status_line(stbuf, pj_ansi_strlen(stbuf), &st_line); + if (status != PJ_SUCCESS) + return status; + for (i=0; i<PJ_ARRAY_SIZE(test_array); ++i) { pj_pool_t *pool; pool = pjsip_endpt_create_pool(endpt, NULL, POOL_SIZE, POOL_SIZE); |