hi,
trying kamailio 5.7.3 with KEMI pythons3s
sample from https://github.com/kamailio/kamailio/blob/master/misc/examples/kemi/kamailio...
trying simple register with sipsak
sipsak -U --sip-uri "sip:cervajs@kamailio.example.com" -u cervajs -a top_secret
4(28805) ERROR: PY8 {REGISTER}: app_python3s [apy3s_kemi.c:141]: apy3s_exec_func(): error exception occurred 4(28805) ERROR: PY8 {REGISTER}: app_python3s [apy3s_exception.c:167]: apy3s_handle_exception(): apy3s_exec_func: ksr_request_route((null)): Unhandled exception in the Python code: Traceback (most recent call last): File "/etc/kamailio/kamailio.py", line 31, in ksr_request_route if ksr_route_natdetect()==-255 : File "/etc/kamailio/kamailio.py", line 238, in ksr_route_natdetect if KSR.nathelper.nat_uac_test(19)>0 : AttributeError: module 'KSR' has no attribute 'nathelper'
i see nat_uac_test in doc
https://kamailio.org/docs/tutorials/5.7.x/kamailio-kemi-framework/modules/#k...
any tips/ideas?
happy christmas
Marek
it was my mistake
there must be
#!define WITH_NAT in downloaded https://github.com/kamailio/kamailio/blob/master/misc/examples/kemi/kamailio...
Marek
Dne 2023-12-22 v 11:36 marek napsal(a):
hi,
trying kamailio 5.7.3 with KEMI pythons3s
sample from https://github.com/kamailio/kamailio/blob/master/misc/examples/kemi/kamailio...
trying simple register with sipsak
sipsak -U --sip-uri "sip:cervajs@kamailio.example.com" -u cervajs -a top_secret
4(28805) ERROR: PY8 {REGISTER}: app_python3s [apy3s_kemi.c:141]: apy3s_exec_func(): error exception occurred 4(28805) ERROR: PY8 {REGISTER}: app_python3s [apy3s_exception.c:167]: apy3s_handle_exception(): apy3s_exec_func: ksr_request_route((null)): Unhandled exception in the Python code: Traceback (most recent call last): File "/etc/kamailio/kamailio.py", line 31, in ksr_request_route if ksr_route_natdetect()==-255 : File "/etc/kamailio/kamailio.py", line 238, in ksr_route_natdetect if KSR.nathelper.nat_uac_test(19)>0 : AttributeError: module 'KSR' has no attribute 'nathelper'
i see nat_uac_test in doc
https://kamailio.org/docs/tutorials/5.7.x/kamailio-kemi-framework/modules/#k...
any tips/ideas?
happy christmas
Marek