summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-11-27 11:10:52 +0000
committerBenny Prijono <bennylp@teluu.com>2006-11-27 11:10:52 +0000
commitea75f01d491f763a7707f8b0218fc76d0e400646 (patch)
treefe564676f791e58f38efd1c2d6b6e435d722fa54
parent8bdc904e9557dc874a1ebf01d3273f418d234b8c (diff)
Fixed ticket #28: bug in Replaces header parsing
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@834 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsip-ua/sip_replaces.c6
1 files changed, 5 insertions, 1 deletions
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;