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:
parent
c53c6d706e
commit
75862ec87a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue