<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:219093158;
        mso-list-type:hybrid;
        mso-list-template-ids:-652204626 2082639678 67567619 67567621 67567617 67567619 67567621 67567617 67567619 67567621;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-AT" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello List!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We have a certain user agent that somehow triggers a parser error log entry, everytime this type of user agent registers.<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The odd thing now is that this register still succeeds. And we do not see that error for other methods like e.g. INVITE.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<br>
<br>
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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So my questions regarding this I hope that someone of you can help me with:<br>
<br>
<o:p></o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">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.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">Why does the parser throw the error but the registration still succeeds? It does not quite make sense to me.<o:p></o:p></span></li></ul>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Segoe UI",sans-serif;color:#006ED2;mso-fareast-language:DE">FLORIAN FLOIMAIR</span></b><b><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE"><br>
</span></b><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE">Development<br>
</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE">Commend International GmbH<br>
Saalachstrasse 51<br>
5020 Salzburg, Austria<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE">Phone: +43 662 85 62 25<br>
Mail: </span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE"><a href="mailto:f.floimair@commend.com" target="_blank"><span lang="EN-US" style="color:#0052CC;text-decoration:none">f.floimair@commend.com</span></a></span><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:white"><span style="color:black"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Rechteck_x0020_1" o:spid="_x0000_s1026" type="#_x0000_t75" alt="signature_1687123261" style='width:19.5pt;height:19.5pt;visibility:visible;mso-left-percent:-10001;mso-top-percent:-10001;mso-position-horizontal:absolute;mso-position-horizontal-relative:char;mso-position-vertical:absolute;mso-position-vertical-relative:line;mso-left-percent:-10001;mso-top-percent:-10001'>
<w:wrap type="none"/>
<w:anchorlock/>
</v:shape><![endif]--><![if !vml]><img width="26" height="26" style="width:.2708in;height:.2708in" src="cid:image002.png@01D7AE2A.63F6FF30" alt="signature_1687123261" v:shapes="Rechteck_x0020_1"><![endif]></span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:white"><b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#006ED2;mso-fareast-language:DE">commend.com</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top:7.5pt;background:white"><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE">LG Salzburg / FN 178618z</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;mso-fareast-language:DE"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>