New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in the logs while looking for contact param when param missing #228
Comments
Ovidiu, That's because "param.value" requires formatted input. Try using $(ct{nameaddr.params}{param.value,blah}) |
xlog("L_NOTICE", "$(ct{nameaddr.params}{param.value,blah})\n");
leads to:
ERROR:core:parse_param_body: failed to parse quoted string
ERROR:core:parse_params: failed to parse param body
|
The problem is depicted more clearly here: Leads to the following output: The last <"> char is lost during the nameaddr.params transformation. |
@ovidiusas , according to the RFC3261 grammar , the contact body Contact = ("Contact" / "m" ) HCOLON So, the correct format should be : |
The formatting was messed up by github :(
The header is properly formated:
|
If the value of the last parameter is a quoted string, we need to include in the len calculation the closing quote too (quotes are not included in the actual value). Closing #228.
@ovidiusas , thanks for the hints, I found and fix the bug - it was related to having a quoted value in the last hdr param (problem was in the nameaddr transformation, for "params"). Btw, instead of |
Something is not right again (latest 1.11).
generates:
|
It was a different case, when the last parameter has no value. It is fixed now. Thanks, Bogdan |
Easy to reproduce with the following probe:
xlog("L_NOTICE", "$(ct{param.value,blah})\n");
ERROR:core:parse_params: invalid character, ; expected, found <
This is specific to Contact header only. Trying to retrieve a bogus param from to or from header does not produce an error in the logs.
The text was updated successfully, but these errors were encountered: