<div dir="auto"><div>Hi Marrold, </div><div dir="auto"><br></div><div dir="auto">not tested but could it be that you check an string with an int? </div><div dir="auto"><br></div><div dir="auto">Kind regards </div><div dir="auto">Karsten Horsmann <br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Marrold <<a href="mailto:kamailio@marrold.co.uk">kamailio@marrold.co.uk</a>> schrieb am Di., 8. März 2022, 23:46:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>I'm using Kamailio 5.5.3 with a KEMI / Python based configuration on Debian 11.<br><br></div>In my reply route I am trying to convert a 183 to a 180 with: <span style="font-family:monospace">KSR.textopsx.change_reply_status(180, "Ringing")</span><br><br></div>I've noticed with TOPOS enabled, it doesn't work and I still see a 183 go out. But with it disabled, it works as expected and it's converted to a 180. I get the same behaviour with / without <span style="font-family:monospace">msg_apply_changes()</span><br><br></div>Config looks like this:<br><span style="font-family:monospace"><br>    def ksr_onreply_manage(self, msg):<br><br>        KSR.info(f"ksr_onreply_manage\r\n")<br><br>        scode = KSR.pv.get("$rs")<br><br>        if KSR.permissions.allow_source_address_group()<0:<br>            if scode == 183:<br>               KSR.info(f"ksr_onreply_manage: Converting 183 to 180\r\n")<br>               KSR.textopsx.change_reply_status(180, "Ringing")<br>               KSR.textopsx.msg_apply_changes()<br><br>        if scode>100 and scode<299 :<br>            self.ksr_route_natmanage(msg)<br><br></span><div><span style="font-family:monospace">        return 1</span></div><div><span style="font-family:monospace"><br></span></div><div><font size="2"><span style="font-family:arial,sans-serif">The debug log doesn't reveal anything too obvious, I can share if its of any use.</span></font><font size="2"><span style="font-family:arial,sans-serif"><br><br></span></font></div><div><font size="2"><span style="font-family:arial,sans-serif">Does anyone have any suggestions?<br><br></span></font></div><div><font size="2"><span style="font-family:arial,sans-serif">Thanks</span></font></div><div><span style="font-family:monospace"><font size="2"><span style="font-family:arial,sans-serif">Matthew</span></font><br></span></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div></div>