<div dir="ltr">Thanks Konstantin, much appreciated. I am using 3.x... I&#39;ll jump up to 4 and wait your feedback.<div class="gmail_extra"><br><br><div class="gmail_quote">On 15 February 2013 17:39, Konstantin M. <span dir="ltr">&lt;<a href="mailto:evilzluk@gmail.com" target="_blank">evilzluk@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br><br>Ok, bug is confirmed.<br>I will fix it a soon.<br><br>Can I ask you - are you using now v4 or still using 3.x ?<br>
<br> <br><br><div class="gmail_quote">2013/2/15 V Tone <span dir="ltr">&lt;<a href="mailto:vtone001@gmail.com" target="_blank">vtone001@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px">



<br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;m having problems getting started with the app_python module. I&#39;m getting the following in the logs:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> 5(8890) : &lt;core&gt; [action.c:785]: BUG: do_action: bad set*() type 14</div><div> 5(8890) ERROR: &lt;core&gt; [action.c:1568]: run action error at: :0</div>




<div> 5(8890) ERROR: app_python [python_msgobj.c:115]: Error in do_action</div><div> 5(8890) ERROR: app_python [python_support.c:38]: python_exec2: Unhandled exception in the Python code:</div><div> 5(8890) ERROR: app_python [python_support.c:78]: <span style="white-space:pre-wrap">        </span>RuntimeError: Error in do_action</div>




<div><br></div><div>My Python module is very basic:</div><div><br></div><div><div>class Router(object):</div><div>        def child_init(self, child_id):</div><div>                return 0</div><div><br></div><div>        def route(self, msg):</div>




<div>                msg.rewrite_ruri(&#39;<a href="http://sip:1000@1.2.3.4:5060/" target="_blank">sip:1000@1.2.3.4:5060</a>&#39;)</div><div>                return 0</div><div><br></div><div>def mod_init():</div><div>        instance = Router()</div>




<div>        return instance</div><div><br></div><div>I&#39;ve tested this in Kamailio 3.2 and 3.3. Can someone point me to what I&#39;m doing wrong?</div><div><br></div><div>Many thanks in advance,</div><div><br></div><div>




vtone</div></div></div></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div>