<div dir="ltr"><div>Hello,</div><div><br></div><div>quite strange, I looked a bit over the code and I couldn't spot anything wrong. Can you print the value of the pseudo-variable $rm from python (get it via KSR.pv.get(...)) and see what it reports?</div><div><br></div><div>Cheers,<br></div><div>Daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2019 at 9:16 AM Alexandru Covalschi <<a href="mailto:568691@gmail.com">568691@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">It's in route_reqinit, I only to couple of checks before calling it<div><div><div><br></div><div>    def ksr_request_route(self, msg):</div><div>        received_port = KSR.pv.get("$Rp");</div><div>        proto = KSR.pv.get("$proto");</div><div>        if ((received_port == MY_WS_PORT) or (received_port == MY_WSS_PORT) and</div><div>            (proto != "ws") and (proto != "wss")):</div><div>            KSR.xlog.xwarn("SIP request received on " + received_port + "\n");</div><div>            KSR.sl.send_reply(403, "Forbidden");</div><div>            exit();</div><div><br></div><div>        if not KSR.is_method_in("IABCRO"):</div><div>            KSR.sl.sl_send_reply(405, "Method not allowed");</div><div>            exit();</div><div><br></div><div>        if KSR.is_INVITE():</div><div>            KSR.rr.record_route();</div><div>            KSR.dialog.dlg_manage();</div><div><br></div><div>        self.ksr_route_reqinit(msg);</div></div><div><br class="gmail-m_-5289018258591091700webkit-block-placeholder"></div><div>
<div dir="auto" style="text-align:start;text-indent:0px"><div style="text-align:start;text-indent:0px"><div>    def ksr_route_reqinit(self, msg):</div><div>        KSR.xlog.xinfo("IN ksr_route_reqinit\n");</div><div>        if KSR.maxfwd.process_maxfwd(10) < 0:</div><div>            KSR.sl.sl_send_reply(483, "Too many hops");</div><div>            exit();</div><div><br></div><div>        if KSR.is_OPTIONS() and KSR.is_myself_ruri():</div><div>            KSR.x.modf("options_reply");</div><div>            exit();</div><div><br></div><div>        if KSR.sanity.sanity_check(1511, 7) < 0:</div><div>            KSR.xlog.xinfo("Malformed SIP message from " + str(KSR.pv.get("$si")) + ":" + str(KSR.pv.get("$sp")) + "\n");</div><div>            exit();</div><div><br></div><div>        return 1;</div>________________________________</div><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">Regards,</div><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">Alexandru Covalschi</div><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">VoIP Engineer and System Administrator<br>tel: +37367367850</div></div>
</div>
<div><br><blockquote type="cite"><div>15 июля 2019 г., в 9:20, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> написал(а):</div><br class="gmail-m_-5289018258591091700Apple-interchange-newline"><div><div dir="ltr"><div>Hello,</div><div>do you have that piece of code in the request route function (or a function executed from there)?</div><div><br></div><div>Any other functions from KSR executed before, or it is just at the top?</div><div><br></div><div>Cheers,<br></div><div>Daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2019 at 12:31 AM Alexandru Covalschi <<a href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello list,<div><br></div><div><div>        if KSR.is_OPTIONS() and KSR.is_myself_ruri():</div><div>            KSR.x.modf("options_reply");</div><div>            exit();</div><div><br></div><div>with a valid URI (no username) gives the subj output (opt_reply(): called for non-OPTIONS request)</div><div>How could that be? </div><div>Python KEMI, 5.2.3, docker.</div><div>
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="gmail-m_-5289018258591091700gmail-m_780895430918320128Apple-interchange-newline">________________________________</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Regards,</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Alexandru Covalschi</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">VoIP Engineer and System Administrator<br>tel: +37367367850</div></div>
</div>

<br></div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-5289018258591091700gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div></div>
_______________________________________________<br>Kamailio (SER) - Users Mailing List<br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div></div>