<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="">It's in route_reqinit, I only to couple of checks before calling it<div class=""><div class=""><div class=""><br class=""></div><div class="">    def ksr_request_route(self, msg):</div><div class="">        received_port = KSR.pv.get("$Rp");</div><div class="">        proto = KSR.pv.get("$proto");</div><div class="">        if ((received_port == MY_WS_PORT) or (received_port == MY_WSS_PORT) and</div><div class="">            (proto != "ws") and (proto != "wss")):</div><div class="">            KSR.xlog.xwarn("SIP request received on " + received_port + "\n");</div><div class="">            KSR.sl.send_reply(403, "Forbidden");</div><div class="">            exit();</div><div class=""><br class=""></div><div class="">        if not KSR.is_method_in("IABCRO"):</div><div class="">            KSR.sl.sl_send_reply(405, "Method not allowed");</div><div class="">            exit();</div><div class=""><br class=""></div><div class="">        if KSR.is_INVITE():</div><div class="">            KSR.rr.record_route();</div><div class="">            KSR.dialog.dlg_manage();</div><div class=""><br class=""></div><div class="">        self.ksr_route_reqinit(msg);</div></div><div class=""><br class="webkit-block-placeholder"></div><div class="">
<div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><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 class=""></div><div>        if KSR.is_OPTIONS() and KSR.is_myself_ruri():</div><div>            KSR.x.modf("options_reply");</div><div>            exit();</div><div><br class=""></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 class=""></div><div>        return 1;</div>________________________________</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px; 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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px; 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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px; 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 class="">tel: +37367367850</div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">15 июля 2019 г., в 9:20, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">miconda@gmail.com</a>> написал(а):</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hello,</div><div class="">do you have that piece of code in the request route function (or a function executed from there)?</div><div class=""><br class=""></div><div class="">Any other functions from KSR executed before, or it is just at the top?</div><div class=""><br class=""></div><div class="">Cheers,<br class=""></div><div class="">Daniel<br class=""></div></div><br class=""><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" class="">568691@gmail.com</a>> wrote:<br class=""></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;" class="">Hello list,<div class=""><br class=""></div><div class=""><div class="">        if KSR.is_OPTIONS() and KSR.is_myself_ruri():</div><div class="">            KSR.x.modf("options_reply");</div><div class="">            exit();</div><div class=""><br class=""></div><div class="">with a valid URI (no username) gives the subj output (opt_reply(): called for non-OPTIONS request)</div><div class="">How could that be? </div><div class="">Python KEMI, 5.2.3, docker.</div><div class="">
<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;" class=""><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;" class=""><br class="gmail-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;" class="">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;" class="">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;" class="">VoIP Engineer and System Administrator<br class="">tel: +37367367850</div></div>
</div>

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