<div dir="ltr"><div>I can share my solution, using app_python. I'm using this in production environment during 2 years. <br><br>loadmodule "app_python.so"<br>modparam("app_python", "script_name", "/opt/kamailio/python/sdp.py")<br>

modparam("app_python", "mod_init_function", "mod_init")<br>modparam("app_python", "child_init_method", "child_init")<br><br>and put in route():<br>python_exec("ParseSDP", $mb); <br>

<br></div><div>Here I shared sdp.py:<br><a href="http://paste.debian.net/99473/">http://paste.debian.net/99473/</a><br><br></div><div>Note, that it is just for reference only, you need to know what to remove/replace. That script is not exactly what are you're looking for!<br>

</div><div><br></div></div>