<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 13-Feb-2020, at 7:00 PM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">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="">The xmlrpc module has its own callback, you should not use the
      one from xhttp module, see:</p><p class="">  - <a href="https://kamailio.org/docs/modules/5.3.x/modules/xmlrpc.html#xmlrpc.pevent_callback" class="">https://kamailio.org/docs/modules/5.3.x/modules/xmlrpc.html#xmlrpc.pevent_callback</a></p><p class="">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><div class=""><br class=""></div></div></div></blockquote><div><br class=""></div>I have removed use of xhttp. The xmlrpc is handling the event properly. Thanks for suggestion.</div><div>But, those errors are still coming. :(<br class=""><blockquote type="cite" class=""><div class=""><div class=""><p class="">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 class=""></p></div></div></blockquote><div>No, the module todos is not loaded. I’m not trying to fetch value of $ci in the event handling.</div><div><br class=""></div><div>Thank you,</div><div>Mitesh</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><p class="">
    </p><p class="">Cheers,<br class="">
      Daniel<br class="">
    </p>
    <div class="moz-cite-prefix">On 13.02.20 12:34, Miteshkumar Thakkar
      wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:2557CDAE-7AFE-498D-988E-F8C8674466EA@plivo.com" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      [...]<br class="">
      <div class="">
        <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 class="">This is the only code in function ksr_xhttp_event(e), which
          is executed when the event from RTPEngine is coming.</div>
        <div class=""><br class="">
        </div>
        -Mitesh<br class="">
      </div>
    </blockquote>
    <br class="">
    <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>
  </div>

</div></blockquote></div><br class=""></body></html>