Hello,
there is not such KSR.py file at this moment, but maybe you can start
from the script made for Lua:
-
https://github.com/kamailio/kamailio/blob/master/misc/tools/kemi/lua/kemiks…
and adapt it for Python. The one above generates something similar for
Lua. You can play with it in the kamailio source directory by running:
python3 misc/tools/kemi/lua/kemiksrlib.py .
then see the output file KSR.lua
We would happily accept a contribution for KEMI python in the git repo.
Cheers,
Daniel
On 12.05.22 23:12, Olivier Roy wrote:
Hello,
I am writing some Kamailio scripts using app_python3.
I understand that the KSR module is automatically generated by
Kamailio. So when I
import KSR from KSR
I don’t get any syntax from my IDE since it doesn’t know where KSR is.
My question: is there a way to generate a KSR.py file that can be used
for autocompletion and syntax highlighting?
Thanks.
*Olivier*
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users(a)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
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
*
https://www.asipto.com/sw/kamailio-advanced-training-online/