Hello List!
We have a certain user agent that somehow triggers a parser error log entry, everytime
this type of user agent registers.
Sep 20 12:03:49 kamailio-dev-1 /usr/sbin/kamailio[1803]: ERROR: <core>
[core/parser/parse_param.c:517]: parse_param2(): Invalid character, ; expected
The odd thing now is that this register still succeeds. And we do not see that error for
other methods like e.g. INVITE.
The user agent in question is an Android app based on linphone which we develop inhouse.
We also use the same for iOS where the error does not occur.
The REGISTER request contains a push-token in the Contact header and I think this is where
the parser somehow generates this error. Since this is the only line apart from the
User-Agent header where the content of the two is different.
We did have a look and diffed the differences between our iOS and Android app variants and
didn’t see any obvious problem or invalid character (compared even with hex editor).
So my questions regarding this I hope that someone of you can help me with:
* Is there any way to make the parser error more verbose (e.g. which character in
which header it is complaining about)? Right now it only says that there was an error and
that it expected ‘;’ but not where and what character was found instead.
* Why does the parser throw the error but the registration still succeeds? It does not
quite make sense to me.
Best Regards
FLORIAN FLOIMAIR
Development
Commend International GmbH
Saalachstrasse 51
5020 Salzburg, Austria
Phone: +43 662 85 62 25
Mail: f.floimair@commend.com<mailto:f.floimair@commend.com>
[signature_1687123261]
commend.com
LG Salzburg / FN 178618z