<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>The xmlrpc module has its own callback, you should not use the
one from xhttp module, see:</p>
<p> - <a
href="https://kamailio.org/docs/modules/5.3.x/modules/xmlrpc.html#xmlrpc.pevent_callback">https://kamailio.org/docs/modules/5.3.x/modules/xmlrpc.html#xmlrpc.pevent_callback</a></p>
<p>Try with this one and see if the logs are still there. You may
need to set some other modparams for xmlrpc module if you want to
still use xhttp, so you split the handling based on URL.</p>
<p>On the other hand, I am not sure what causes those error
messages, even when attempting to use xhttp callback, one seems to
be trying to get value of $ci. Do you have topos module loaded?
Any other event route callbacks that you have?<br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 13.02.20 12:34, Miteshkumar Thakkar
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2557CDAE-7AFE-498D-988E-F8C8674466EA@plivo.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
[...]<br class="">
<div>
<blockquote type="cite" class="">
<div class="">
<div class="">
<blockquote type="cite"
cite="mid:A08BC224-B561-47EB-8443-9D025BC4E6FE@plivo.com"
class="">
<div class="">
<blockquote type="cite" class="">
<div class="">
<div class="">
<blockquote type="cite"
cite="mid:C77EACD9-1E5D-4C5B-BF1E-85720C584C81@plivo.com"
class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On 22-Jan-2020, at 1:57 PM,
Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com"
class="" moz-do-not-send="true">miconda@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta http-equiv="Content-Type"
content="text/html;
charset=windows-1252" class="">
<div class="">
<p class="">Have you run rtpengine in
debug mode to see if it gives some
hints why is retrying the same
command?</p>
<p class="">Is it happening for every
call and coming over the same
connection?<br class="">
</p>
<p class="">I do not know if this is
by design, but if there is something
to be tune, I think the best place
is inside RTPEngine, geting the
response that dialog is not found
seems the right one from my point of
view, given that the rpc command can
be used by other apps.</p>
</div>
</div>
</blockquote>
<div class="">Agree. I have posted the same
to RTPEngine. They have taken care and
created a patch for that. Thank you very
much for help.</div>
</div>
</blockquote>
<p class="">OK, good to know.</p>
<p class=""><br class="">
</p>
<blockquote type="cite"
cite="mid:C77EACD9-1E5D-4C5B-BF1E-85720C584C81@plivo.com"
class="">
<div class="">
<div class=""><br class="">
</div>
<div class="">A small concern:</div>
<div class="">When Kamailio receives an
event <span style="white-space: pre-wrap;" class="">dlg.terminate_dlg from RTPEngine, I am calling KSR.xmlrpc.dispatch_rpc() to process the event. Functionality is working fine. It is ending the dialog but with that it is generating below errors.</span></div>
<div class=""><span style="white-space: pre-wrap;" class="">
</span></div>
<div class="">
<p data-pm-slice="1 1 []"
style="caret-color: rgb(0, 0, 0);"
class="">27(179) ERROR: pv
[pv_core.c:704]: pv_get_callid(): cannot
parse Call-Id header<br class="">
27(179) ERROR: dialog
[dlg_handlers.c:679]: pre_match_parse():
bad request or missing CALLID/TO hdr :-/</p>
</div>
<div class="">Should I worry about it?</div>
</div>
</blockquote>
<p class="">Do you access $ci and use other
dialog module functions when processing the
xmlrpc command (inside the xmlrpc event route
callback function)?</p>
</div>
</div>
</blockquote>
<div class="">Not really. Here is what I am doing:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal;
line-height: normal;" class=""> <span
style="color: rgb(0, 0, 109);" class=""><b
class="">local </b></span><span style="color:
rgb(18, 137, 135);" class="">rpc_method </span>=
<i class="">KSR.pv.get</i>(<span style="color:
rgb(15, 112, 3);" class=""><b class="">"$rm"</b></span>)
<span style="color: rgb(0, 0, 109);" class=""><b
class="">or </b></span><span style="color:
rgb(15, 112, 3);" class=""><b class="">""</b></span></div>
<div style="margin: 0px; font-stretch: normal;
line-height: normal; color: rgb(18, 137, 135);"
class=""><span style="color: #0f7003" class=""><b
class=""> </b></span><span style="color:
#00006d" class=""><b class="">if </b></span>rpc_method
<span style="" class="">== </span><span
style="color: #0f7003" class=""><b class="">"POST"
</b></span><span style="color: #00006d" class=""><b
class="">or </b></span>rpc_method <span
style="" class="">== </span><span style="color:
#0f7003" class=""><b class="">"GET" </b></span><span
style="color: #00006d" class=""><b class="">then</b></span></div>
<div style="margin: 0px; font-stretch: normal;
line-height: normal; color: rgb(0, 0, 109);"
class=""><b class=""> if not </b><span
style="" class="">(</span><span style="color:
#6b0003" class="">KSR</span><span style=""
class="">.</span><span style="color: #928e21"
class="">xmlrpc</span><span style="" class="">.</span><span
style="color: #928e21" class="">dispatch_rpc</span><span
style="" class="">()) </span><b class="">then</b></div>
<div style="margin: 0px; font-stretch: normal;
line-height: normal; color: rgb(0, 0, 109);"
class=""><b class=""> </b><span
style="" class=""><b class=""><i class="">logger</i></b>.</span><span
style="color: #928e21" class="">log</span><span
style="" class="">(</span><span style="color:
#0f7003" class=""><b class="">"err"</b></span><span
style="" class="">, </span><span style="color:
#0f7003" class=""><b class="">"error"</b></span><span
style="" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal;
line-height: normal;" class=""> <span
style="color: #00006d" class=""><b class="">end</b></span></div>
<div style="margin: 0px; font-stretch: normal;
line-height: normal; color: rgb(0, 0, 109);"
class=""><b class=""> end</b></div>
</div>
<div class=""><br class="">
</div>
</div>
</blockquote>
<p class="">Where is this piece of code executed?</p>
</div>
</div>
</blockquote>
<div>This is the only code in function ksr_xhttp_event(e), which
is executed when the event from RTPEngine is coming.</div>
<div><br class="">
</div>
-Mitesh<br class="">
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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 - March 9-11, 2020, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>