From ea75f01d491f763a7707f8b0218fc76d0e400646 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 27 Nov 2006 11:10:52 +0000 Subject: Fixed ticket #28: bug in Replaces header parsing git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@834 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip-ua/sip_replaces.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pjsip') diff --git a/pjsip/src/pjsip-ua/sip_replaces.c b/pjsip/src/pjsip-ua/sip_replaces.c index acf8181b..e6c963a9 100644 --- a/pjsip/src/pjsip-ua/sip_replaces.c +++ b/pjsip/src/pjsip-ua/sip_replaces.c @@ -125,7 +125,11 @@ static pjsip_hdr *parse_hdr_replaces(pjsip_parse_ctx *ctx) const pj_str_t from_tag = { "from-tag", 8 }; const pj_str_t early_only_tag = { "early-only", 10 }; - pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->call_id); + /*pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->call_id);*/ + /* Get Call-ID (until ';' is found). using pjsip_TOKEN_SPEC doesn't work + * because it stops parsing when '@' character is found. + */ + pj_scan_get_until_ch(ctx->scanner, ';', &hdr->call_id); while (*ctx->scanner->curptr == ';') { pj_str_t pname, pvalue; -- cgit v1.2.3