Fixed ticket #28: bug in Replaces header parsing

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@834 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2006-11-27 11:10:52 +00:00
parent c53c6d706e
commit 75862ec87a
1 changed files with 5 additions and 1 deletions

View File

@ -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;