<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I absolutely forgot about the
possibility of embedding scripting languages to configuration.<br>
Lua did the trick.<br>
<br>
Thanks for the right direction and example.<br>
<br>
</div>
<blockquote
cite="mid:CAEYtTzf0C9J6GJKhN+kRML1oh9Nfe=X_pc_Usg5EcAYTr-0mzg@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</body>
</html>