Hello,

msg_apply_changes() is explicitly exported to kemi only in v5.1 (master branch now), it was not done in time for 5.0 release.

For 5.0, you can use KSR.x.modf("msg_apply_changes").

Cheers,
Daniel

On 22.09.17 16:45, Muhammad Zaka wrote:

Hi

 

We are experiencing issue with python script KSR. textopsx.msg_apply_changes using branch 5.0.2: -

 

Example Code:

KSR.textopsx.msg_apply_changes()

 

Error:

Sep 22 15:25:19 sbc99-kam-dev /usr/sbin/kamailio[23141]: PYT {INVITE}: ERROR: app_python [python_support.c:142]: python_handle_exception(): python_exec2: Unhandled exception in the Python code:#012Traceback (most recent call last):#012  File "/etc/kamailio/kamailio-kemi-python.py", line 64, in ksr_request_route#012    if self.ksr_route_reqinit(msg)==-255 :#012  File "/etc/kamailio/kamailio-kemi-python.py", line 173, in ksr_route_reqinit#012    KSR.textopsx.msg_apply_changes()#012AttributeError: 'module' object has no attribute 'textopsx'

 

 

Is anybody have any idea how to workaround and apply message changes in python?

 

Many Thanks

 

Regards

 

Muhammad Zaka

 



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com