<br>Hi Bogdan, <br><br>Authen tication is done<br><br><b># ----- auth_db params -----<br>/* uncomment the following lines if you want to enable the DB based<br>   authentication */<br>modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>modparam(&quot;auth_db&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>modparam(&quot;auth_db&quot;, &quot;load_credentials&quot;, &quot;&quot;)<br>
</b><br><br><b>if (is_from_local()){
<br>        # From an internal domain -&gt; check the credentials and the FROM
<br>    if (method==&quot;MESSAGE&quot;) {<br>                log(1,&quot;\n--------------------------------------&gt; ROUTE 3 MESSAGE Looop-----------------------\n&quot;);<br>                                route(17);<br>
        };<br>       if(!allow_trusted()){
<br>            if (!proxy_authorize(&quot;&quot;,&quot;subscriber&quot;)) {
<br>                proxy_challenge(&quot;&quot;,&quot;0&quot;);
<br>                exit;
<br>            } else if(!check_from()) {
<br>          sl_send_reply(&quot;403&quot;, &quot;Forbidden, use From=ID&quot;);
<br>          exit;
<br>        }; 
<br>        };
<br>        if (client_nat_test(&quot;3&quot;)) {
<br>            append_hf(&quot;P-hint: setflag7|forcerport|fix_contact\r\n&quot;);
<br>            setbflag(7);
<br>            force_rport();
<br>            fix_contact();
<br>        };
<br>        #unconditional call forward
<br>        if(avp_db_load(&quot;$ru/username&quot;,&quot;$avp(s:callfwd)&quot;)) {
<br>            avp_pushto(&quot;$ru&quot;, &quot;$avp(s:callfwd)&quot;);
<br>            route(1);
<br>            exit;
<br>        }<br>    <br></b>       <b>consume_credentials();</b><br><br>  <b> if (uri=~&quot;^sip:00[0-9]{6,20}@&quot;) {
<br>        if (is_user_in(&quot;Credentials&quot;,&quot;local&quot;)) {
<br>            route(6);<br>            log(1,&quot;\n*********************** I AM GOING TO ENTER ROUTE 4&quot;);
<br>        route(4);
<br>            exit;
<br>        } else {
<br>            sl_send_reply(&quot;403&quot;, &quot;No permissions for local calls&quot;);
<br>            exit;
<br>        };
<br>    };</b><br><br><br>Can you tell me where i may be going wrong<br><br><br>This is the piece of script<br><div class="gmail_quote">On Fri, Aug 21, 2009 at 5:58 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HI Ashwini,<br>
<br>
If you wan to used the Credentials, then you need to be sure you did<br>
authentication before (in script).<br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div class="h5"><br>
ASHWINI NAIDU wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt;      I have installed opensips-1.5. I have applied the required patch<br>
&gt; for group. When i use<br>
&gt;<br>
&gt;            * is_user_in(&quot;Credentials&quot;, &quot;local&quot;) { *<br>
&gt;<br>
&gt;   I get the following error<br>
&gt;<br>
&gt;  *ERROR:auth:consume_credentials: no authorized credentials found<br>
&gt; (error in scripts)<br>
&gt; Aug 21 17:09:30 debian /sbin/opensips[18916]:<br>
&gt; ERROR:group:get_username_domain: no authorized credentials found<br>
&gt; (error in scripts)<br>
&gt; Aug 21 17:09:30 debian /sbin/opensips[18916]: ERROR:group:is_user_in:<br>
&gt; failed to get username@domain*<br>
&gt;<br>
&gt; Can anyone say what may be the problem.<br>
&gt; --<br>
&gt; Thanking You,<br>
&gt; Ashwini BR Naidu<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>