<b>Hi,<br>Someone can help me please??</b><br><br><div class="gmail_quote"><br><br><br>Hi,<br>I&#39;m trying to limit a calls of an user by using the script above <br><br>route[39]<br>{<br>        if(!isflagset(31))<br>        {<br>
                if( avp_db_load(&quot;$fu/username&quot;,&quot;a&quot;) &amp;&amp;  avp_check(&quot;$avp(channels)&quot;, &quot;ge/0&quot;))<br>
                {<br>                        # get current calls for user<br>                        get_profile_size(&quot;caller&quot;,&quot;$fu&quot;,&quot;$var(calls)&quot;);<br><br>                        # check within limit<br>

                        if($avp(channels) &gt; $var(calls))<br>                        {<br>                                xlog(&quot;L_INFO&quot;, &quot;Call control: user &#39;$fU&#39; currently has &#39;$var(calls)&#39; of &#39;$avp(channels)&#39; active calls before this one\n&quot;);<br>

                                $var(setprofile) = 1;<br>                         }<br>                        else<br>                        {<br>                                xlog(&quot;L_INFO&quot;, &quot;Call control: user channel limit exceeded [$var(calls)/$avp(channels)]\n&quot;);<br>

                                send_reply(&quot;487&quot;, &quot;Request Terminated: Channel limit exceeded\n&quot;);<br>                                exit;<br>                        }<br>                }<br>                else<br>

                {<br>                        $var(setprofile) = 0;<br>                }<br>                if($var(setprofile) &gt; 0)<br>                {<br>                        xlog(&quot;L_INFO&quot;, &quot;Call control, setprofile: $var(setprofile)\n&quot;);<br>

                        create_dialog();<br>                        set_dlg_profile(&quot;caller&quot;,&quot;$fu&quot;);<br><br>                }<br>                setflag(31);<br>        }<br>}<br>But if i limit the max calls at 1 i can make more than one calls.<br>

<br>can you help me please ??<span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><font color="#663300"><font face="comic sans ms,sans-serif"><br><span style>Best Regards.</span><br></font></font><br><br>

</font></span></div><br><br clear="all"><br>-- <br><font color="#663300"><font face="comic sans ms,sans-serif"><br><span style="color:rgb(0,0,0)">Best Regards.</span><br></font></font><br><br>