summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-03-19 13:06:32 +0000
committerBenny Prijono <bennylp@teluu.com>2007-03-19 13:06:32 +0000
commitddd77d225ea62a6200a6a215655a31f680b15fe8 (patch)
treecf976e48a2b96e84bed2b60902c8af25c1c20592 /pjsip
parentf095983b7171f45ccc595b9be489f04e242b066e (diff)
Fixed ticket #189: Error parsing compact form of SIP header (thanks Tobias Söreling)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1084 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-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);