<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</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 bgcolor="white" lang="IT" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Hello Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Using last commit xhttp_reply is found and kamailio.cfg is properly loaded.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Thank you and best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Dario</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#333333;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:IT">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:IT"> Daniel-Constantin Mierla [mailto:miconda@gmail.com]
<br>
<b>Sent:</b> marted́ 18 luglio 2017 16.47<br>
<b>To:</b> Dario Bozzali <Dario.Bozzali@ifmgroup.it><br>
<b>Cc:</b> Kamailio (SER) - Development Mailing List <sr-dev@lists.kamailio.org><br>
<b>Subject:</b> Re: [sr-dev] Issue in xhttp_mod<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<o:p></o:p></p>
<p>thanks for testing and feedback -- I just pushed another patch, hopefully nailing it down this time. Fetch again the master and let me know the results.<o:p></o:p></p>
<p>Cheers,<br>
Daniel<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 18.07.17 16:13, Dario Bozzali wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Hello Daniel,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">I updated local repository and I rebuilt all but I’m again facing error on xhttp_reply:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">DEBUG: <core> [core/sr_module.c:700]: find_mod_export_record(): find_export_record: <xhttp_reply> not found 0(18071)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">DEBUG: <core> [core/sr_module.c:693]: find_mod_export_record(): find_export_record: found <xhttp_reply> in module xhttp [/usr/local/sbin/kamailio/lib64/kamailio/modules/xhttp.so] 0(18071)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">ERROR: <core> [core/cfg.y:3286]: yyparse(): misused command xhttp_reply 0(18071)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">CRITICAL: <core> [core/cfg.y:3429]: yyerror_at(): parse error in config file /usr/local/sbin/kamailio/etc/kamailio/kamailio.cfg, line 1700, column 41: Command cannot be used in the block 0(18071)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Best regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Dario</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:IT">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:IT"> Daniel-Constantin Mierla [<a href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>]
<br>
<b>Sent:</b> marted́ 18 luglio 2017 15.06<br>
<b>To:</b> Kamailio (SER) - Development Mailing List <a href="mailto:sr-dev@lists.kamailio.org">
<sr-dev@lists.kamailio.org></a>; Dario Bozzali <a href="mailto:Dario.Bozzali@ifmgroup.it">
<Dario.Bozzali@ifmgroup.it></a><br>
<b>Subject:</b> Re: [sr-dev] Issue in xhttp_mod</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p><span lang="EN-US">Hello,</span><o:p></o:p></p>
<p><span lang="EN-US">I just pushed a different patch trying to fix the issue -- yours would be good only fir xhttp_reply() function. Can you fetch again the latest master branch and report if now works ok?</span><o:p></o:p></p>
<p><span lang="EN-US">Cheers,<br>
Daniel</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On 18.07.17 14:45, Dario Bozzali wrote:</span><o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoPlainText"><span lang="EN-US">Hello,</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">I’m quite new to Kamailio and I’m making some tests using devel release (git head).</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">I’m facing an issue in xhttp_mod module after I updated my repository to master head and in particular after commit
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas">dc0765c04c3cb5d8981551e3f28ee6871fc803ff (14/07/2017).</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">In src/core/route.h line 57</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">#define EVENT_ROUTE REQUEST_ROUTE</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">has been changed to</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">#define EVENT_ROUTE (1 << 9)</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">After this change, xhttp_reply is no more accepted as valid command in event_route[xhttp:request] route in my kamailio.cfg file.</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">I suppose that the issue is caused by REQUEST_ROUTE in src/modules/xhttp/xhttp_mod.c line 74. I think it should be EVENT_ROUTE</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">static cmd_export_t cmds[] = {</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> {"xhttp_reply", (cmd_function)w_xhttp_send_reply,</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> 4, fixup_xhttp_reply, 0, REQUEST_ROUTE}, ==========> should be (?) 4, fixup_xhttp_reply, 0, EVENT_ROUTE},</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> {"bind_xhttp", (cmd_function)bind_xhttp,</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> 0, 0, 0, ANY_ROUTE},</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> {0, 0, 0, 0, 0}</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">};</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">I changed REQUEST_ROUTE to EVENT_ROUTE and, after that, kamailio.cfg is loaded without error. I don’t know Kamailio code, so I don’t know if this change is enough.</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">Thank you and best regards,</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">Dario</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:IT"><br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre><span lang="EN-US">_______________________________________________</span><o:p></o:p></pre>
<pre><span lang="EN-US">Kamailio (SER) - Development Mailing List</span><o:p></o:p></pre>
<pre><a href="mailto:sr-dev@lists.kamailio.org"><span lang="EN-US">sr-dev@lists.kamailio.org</span></a><o:p></o:p></pre>
<pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev"><span lang="EN-US">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</span></a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:IT"><br>
<br>
<br>
</span><o:p></o:p></p>
<pre><span lang="EN-US">-- </span><o:p></o:p></pre>
<pre><span lang="EN-US">Daniel-Constantin Mierla</span><o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda"><span lang="EN-US">www.twitter.com/miconda</span></a><span lang="EN-US"> -- </span><a href="http://www.linkedin.com/in/miconda"><span lang="EN-US">www.linkedin.com/in/miconda</span></a><o:p></o:p></pre>
<pre><span lang="EN-US">Kamailio Advanced Training - </span><a href="http://www.asipto.com"><span lang="EN-US">www.asipto.com</span></a><o:p></o:p></pre>
<pre><span lang="EN-US">Kamailio World Conference - </span><a href="http://www.kamailioworld.com"><span lang="EN-US">www.kamailioworld.com</span></a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:IT"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training - <a href="http://www.asipto.com">www.asipto.com</a><o:p></o:p></pre>
<pre>Kamailio World Conference - <a href="http://www.kamailioworld.com">www.kamailioworld.com</a><o:p></o:p></pre>
</div>
</body>
</html>