summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-03-19 12:55:35 +0000
committerBenny Prijono <bennylp@teluu.com>2007-03-19 12:55:35 +0000
commit739ae13842319fc021f27e11c71907ea0fb1c35a (patch)
treec4488023679a8194e610eced6110b519e5ba74cb
parent21b2eba1bc9182b5ae7726bef716ab2a5c76025c (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.c6
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);