Ok, the problem is the original feeradius package (squeeze) does not support Update radius messages (it gives Unsupported Acct-Status-Type = 15). <br>It&#39;s not related to kamailio.<br><br>.. however anybody knows how to patch it?<br>
<br><div class="gmail_quote">On Mon, Sep 26, 2011 at 1:19 PM, Mino Haluz <span dir="ltr">&lt;<a href="mailto:mino.haluz@gmail.com">mino.haluz@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;">
Sorry for misunderstanding, yes, the failed status is firing the insert_radacct_record but with different parameters. I must see why it is not written to db. <br><br>Thanks.<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Mon, Sep 26, 2011 at 1:05 PM, Mino Haluz <span dir="ltr">&lt;<a href="mailto:mino.haluz@gmail.com" target="_blank">mino.haluz@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">Ok, but when I use acc_rad_request only Failed status type is sent to 
Radius, which cannot be written to DB. There is no START , so the 
insert_radacct_record stored procedure is not executed before. The 
Failed status type fires up the update stored procedure on the existing 
record. But when there is no record in db, it cannot be updated.<div><div></div><div><br><br><div class="gmail_quote">On Mon, Sep 26, 2011 at 12:15 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@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,<div><div></div><div><br>
<br>
On 9/26/11 11:26 AM, Mino Haluz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I have this code:<br>
<br>
        if ( is_user_in(&quot;From&quot;, &quot;blocked&quot;) &amp;&amp; is_method(&quot;INVITE&quot;)) {<br>
                xlog(&quot;L_INFO&quot;, &quot;XLOG: [number_and_ruri_checks] NOTICE: Account ($fu) to ($ru) is blocked&quot;);<br>
                sl_send_reply(&quot;403&quot;, &quot; Account blocked &quot;);<br>
                exit;<br>
        }<br>
<br>
I would like to account also this answer to Radius, now I have it only in application xlog.<br>
</blockquote></div></div>
an easy way is to use acc_rad_request(&quot;403 Account blocked&quot;) right in the config file after you send the reply.<br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>