[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    [SR-Users] Re: kemi python3s - module 'KSR' has no attribute 'nathelper' (SOLVED)
From:       marek via sr-users <sr-users () lists ! kamailio ! org>
Date:       2023-12-22 10:50:06
Message-ID: 83ad6336-74eb-4c5d-892a-787f8f5b0093 () gmail ! com
[Download RAW message or body]

it was my mistake

there must be

#!define WITH_NAT in downloaded 
https://github.com/kamailio/kamailio/blob/master/misc/examples/kemi/kamailio-basic-kemi.cfg


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-basic-kemi-python3s.py
>
> 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/#ksrnathelpernat_uac_test 
>
>
>
> any tips/ideas?
>
>
> happy christmas
>
> Marek
>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic