Hi,

I am trying to use async module functions in Python KEMI on Debian 13 with kamailio version 5.8.8,

Here is an example,

KSR.async.task_group_route("replication_send", "rpl_send")

However, it throws following exception,

kamailio[2927480]: ERROR: app_python3 [python_support.c:167]: python_handle_exception(): mod_init: Unhandled exception in the Python code:
  File "/etc/kamailio/kemi.py", line 904
    KSR.async.task_group_route("replication_send", "rpl_send")
        ^^^^^
SyntaxError: invalid syntax

This function works in kamailio.cfg but not in KEMI, even though it is documented at,
https://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#ksrasynctask_group_route

Note: I tried to use other functions of same module and get similar error.

What is correct syntax to use this module's functions in KEMI Python? Please suggest.

Thank you.

--
Muhammad Shahzad Shafi
Tel: +49 176 99 83 10 85