Hello, currently pjsip parser couldn't handle incorrect format value of Retry-After header.For example, Retry-After: 30 ((bad value)) Retry-After: 8 (retry) bad It is better to bypass current char when it isn't '(' and ';' inside looping. while (!pj_scan_is_eof(scanner) && *scanner->curptr!='\r' && *scanner->curptr!='\n') { if (*scanner->curptr=='(') { pj_scan_get_quote(scanner, '(', ')', &hdr->comment); /* Trim the leading and ending parens */ hdr->comment.ptr++; hdr->comment.slen -= 2; } else if (*scanner->curptr==';') { pjsip_param *prm = PJ_POOL_ALLOC_T(ctx->pool, pjsip_param); int_parse_param(scanner, ctx->pool, &prm->name, &prm->value, 0); pj_list_push_back(&hdr->param, prm); } else pj_scan_get_char(scanner); /* ++++++++++++++++++++++++++ not standard header value, go next */ } regards, Gang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110128/a6bc645e/attachment.html>