diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-03-19 12:55:35 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-03-19 12:55:35 +0000 |
commit | 739ae13842319fc021f27e11c71907ea0fb1c35a (patch) | |
tree | c4488023679a8194e610eced6110b519e5ba74cb | |
parent | 21b2eba1bc9182b5ae7726bef716ab2a5c76025c (diff) |
Fixed ticket #188: Error parsing compact form of SIP header (thanks Tobias Söreling)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1083 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip/src/pjsip/sip_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pjsip/src/pjsip/sip_parser.c b/pjsip/src/pjsip/sip_parser.c index 3ff546de..cf0f0389 100644 --- a/pjsip/src/pjsip/sip_parser.c +++ b/pjsip/src/pjsip/sip_parser.c @@ -397,17 +397,17 @@ static pj_status_t init_parser() status = pjsip_register_hdr_parser( "Allow", NULL, &parse_hdr_allow); PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); - status = pjsip_register_hdr_parser( "Call-ID", NULL, &parse_hdr_call_id); + status = pjsip_register_hdr_parser( "Call-ID", "i", &parse_hdr_call_id); PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); status = pjsip_register_hdr_parser( "Contact", "m", &parse_hdr_contact); PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); - status = pjsip_register_hdr_parser( "Content-Length", NULL, + status = pjsip_register_hdr_parser( "Content-Length", "l", &parse_hdr_content_len); PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); - status = pjsip_register_hdr_parser( "Content-Type", NULL, + status = pjsip_register_hdr_parser( "Content-Type", "c", &parse_hdr_content_type); PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); |