<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</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.<br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 18.07.17 16:13, Dario Bozzali wrote:<br>
</div>
<blockquote type="cite"
cite="mid:VI1PR0102MB26719D6698CAB4CB4C00DF25E2A10@VI1PR0102MB2671.eurprd01.prod.exchangelabs.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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;}
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;}
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.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle23
{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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">Hello
Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">I
updated local repository and I rebuilt all but I’m again
facing error on xhttp_reply:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">DEBUG:
<core> [core/sr_module.c:700]:
find_mod_export_record(): find_export_record:
<xhttp_reply> not found 0(18071)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">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)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">ERROR:
<core> [core/cfg.y:3286]: yyparse(): misused command
xhttp_reply 0(18071)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">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)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">Best
regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">Dario<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><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
style="color:windowtext;mso-fareast-language:IT"
lang="EN-US">From:</span></b><span
style="color:windowtext;mso-fareast-language:IT"
lang="EN-US"> Daniel-Constantin Mierla
[<a class="moz-txt-link-freetext" 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 class="moz-txt-link-rfc2396E" href="mailto:sr-dev@lists.kamailio.org"><sr-dev@lists.kamailio.org></a>; Dario Bozzali
<a class="moz-txt-link-rfc2396E" href="mailto:Dario.Bozzali@ifmgroup.it"><Dario.Bozzali@ifmgroup.it></a><br>
<b>Subject:</b> Re: [sr-dev] Issue in xhttp_mod<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p><span lang="EN-US">Hello,<o:p></o:p></span></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?<o:p></o:p></span></p>
<p><span lang="EN-US">Cheers,<br>
Daniel<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On 18.07.17 14:45,
Dario Bozzali wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoPlainText"><span lang="EN-US">Hello,<o:p></o:p></span></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).<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <o:p></o:p></span></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 style="font-size:9.0pt;font-family:Consolas"
lang="EN-US">dc0765c04c3cb5d8981551e3f28ee6871fc803ff
(14/07/2017).</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">In src/core/route.h
line 57<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#define
EVENT_ROUTE REQUEST_ROUTE<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">has been changed to<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">#define
EVENT_ROUTE (1 << 9)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <o:p></o:p></span></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.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <o:p></o:p></span></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<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">static cmd_export_t
cmds[] = {<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">
{"xhttp_reply", (cmd_function)w_xhttp_send_reply,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">
4, fixup_xhttp_reply, 0, REQUEST_ROUTE},
==========> should be (?) 4, fixup_xhttp_reply, 0,
EVENT_ROUTE},<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">
{"bind_xhttp", (cmd_function)bind_xhttp,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">
0, 0, 0, ANY_ROUTE},<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> {0,
0, 0, 0, 0}<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">};<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <o:p></o:p></span></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.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Thank you and best
regards,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Dario<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoPlainText"><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"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:IT"
lang="EN-US"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre><span lang="EN-US">_______________________________________________<o:p></o:p></span></pre>
<pre><span lang="EN-US">Kamailio (SER) - Development Mailing List<o:p></o:p></span></pre>
<pre><a href="mailto:sr-dev@lists.kamailio.org" moz-do-not-send="true"><span lang="EN-US">sr-dev@lists.kamailio.org</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" moz-do-not-send="true"><span lang="EN-US">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</span></a><span lang="EN-US"><o:p></o:p></span></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:IT"
lang="EN-US"><br>
<br>
<o:p></o:p></span></p>
<pre><span lang="EN-US">-- <o:p></o:p></span></pre>
<pre><span lang="EN-US">Daniel-Constantin Mierla<o:p></o:p></span></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true"><span lang="EN-US">www.twitter.com/miconda</span></a><span lang="EN-US"> -- </span><a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true"><span lang="EN-US">www.linkedin.com/in/miconda</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<pre><span lang="EN-US">Kamailio Advanced Training - </span><a href="http://www.asipto.com" moz-do-not-send="true"><span lang="EN-US">www.asipto.com</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<pre><span lang="EN-US">Kamailio World Conference - </span><a href="http://www.kamailioworld.com" moz-do-not-send="true"><span lang="EN-US">www.kamailioworld.com</span></a><span lang="EN-US"><o:p></o:p></span></pre>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>