Hi Karsten,

That was originally an issue, and when I spotted it I thought I'd solved
the problem but apparently not. In this instance KSR.pv.get("$rs") returns
an int.

I see the log line, and even the message being updated in the debug logs,
but then topos does it's thing and the change is overwritten.

Thanks
Matthew


On Wed, Mar 9, 2022 at 12:11 AM Karsten Horsmann <khorsm...@gmail.com>
wrote:

> Hi Marrold,
>
> not tested but could it be that you check an string with an int?
>
> Kind regards
> Karsten Horsmann
>
> Marrold <kamai...@marrold.co.uk> schrieb am Di., 8. März 2022, 23:46:
>
>> Hi,
>>
>> I'm using Kamailio 5.5.3 with a KEMI / Python based configuration on
>> Debian 11.
>>
>> In my reply route I am trying to convert a 183 to a 180 with: 
>> KSR.textopsx.change_reply_status(180,
>> "Ringing")
>>
>> 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 msg_apply_changes()
>>
>> Config looks like this:
>>
>>     def ksr_onreply_manage(self, msg):
>>
>>         KSR.info(f"ksr_onreply_manage\r\n")
>>
>>         scode = KSR.pv.get("$rs")
>>
>>         if KSR.permissions.allow_source_address_group()<0:
>>             if scode == 183:
>>                KSR.info(f"ksr_onreply_manage: Converting 183 to 180\r\n")
>>                KSR.textopsx.change_reply_status(180, "Ringing")
>>                KSR.textopsx.msg_apply_changes()
>>
>>         if scode>100 and scode<299 :
>>             self.ksr_route_natmanage(msg)
>>
>>         return 1
>>
>> The debug log doesn't reveal anything too obvious, I can share if its of
>> any use.
>>
>> Does anyone have any suggestions?
>>
>> Thanks
>> Matthew
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>>   * sr-users@lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>> Edit mailing list options or unsubscribe:
>>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to