Hi Bogdan,<br><br>    Thank You for reply. It was network mapping issue and not opensips issue. I solved it.<br><br><br><br><div class="gmail_quote">On Mon, Aug 24, 2009 at 4:09 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>
As your script shows, you do either IP auth (allow trusted) or digest<br>
auth , but &quot;credentials&quot; are present only after digest auth.<br>
<br>
So, if it is a trusted peer, there will be no digest auth, no<br>
credentials and is_user_in() will fail.<br>
<br>
My advice is to replace is_user_in(&quot;credentials&quot;); with<br>
is_user_in(&quot;from&quot;);   - anyhow you required both FROM USERNAME and AUTH<br>
USERNAME to be the same when doing check_from().<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
ASHWINI NAIDU wrote:<br>
&gt;<br>
</div><div><div></div><div class="h5">&gt; Hi Bogdan,<br>
&gt;<br>
&gt; Authen tication is done<br>
&gt;<br>
&gt; *# ----- auth_db params -----<br>
&gt; /* uncomment the following lines if you want to enable the DB based<br>
&gt;    authentication */<br>
&gt; modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
&gt; modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>
&gt; modparam(&quot;auth_db&quot;, &quot;db_url&quot;,<br>
&gt; &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>
&gt; modparam(&quot;auth_db&quot;, &quot;load_credentials&quot;, &quot;&quot;)<br>
&gt; *<br>
&gt;<br>
&gt; *if (is_from_local()){<br>
&gt;         # From an internal domain -&gt; check the credentials and the FROM<br>
&gt;     if (method==&quot;MESSAGE&quot;) {<br>
&gt;                 log(1,&quot;\n--------------------------------------&gt; ROUTE<br>
&gt; 3 MESSAGE Looop-----------------------\n&quot;);<br>
&gt;                                 route(17);<br>
&gt;         };<br>
&gt;        if(!allow_trusted()){<br>
&gt;             if (!proxy_authorize(&quot;&quot;,&quot;subscriber&quot;)) {<br>
&gt;                 proxy_challenge(&quot;&quot;,&quot;0&quot;);<br>
&gt;                 exit;<br>
&gt;             } else if(!check_from()) {<br>
&gt;           sl_send_reply(&quot;403&quot;, &quot;Forbidden, use From=ID&quot;);<br>
&gt;           exit;<br>
&gt;         };<br>
&gt;         };<br>
&gt;         if (client_nat_test(&quot;3&quot;)) {<br>
&gt;             append_hf(&quot;P-hint: setflag7|forcerport|fix_contact\r\n&quot;);<br>
&gt;             setbflag(7);<br>
&gt;             force_rport();<br>
&gt;             fix_contact();<br>
&gt;         };<br>
&gt;         #unconditional call forward<br>
&gt;         if(avp_db_load(&quot;$ru/username&quot;,&quot;$avp(s:callfwd)&quot;)) {<br>
&gt;             avp_pushto(&quot;$ru&quot;, &quot;$avp(s:callfwd)&quot;);<br>
&gt;             route(1);<br>
&gt;             exit;<br>
&gt;         }<br>
&gt;<br>
&gt; *       *consume_credentials();*<br>
&gt;<br>
&gt;   * if (uri=~&quot;^sip:00[0-9]{6,20}@&quot;) {<br>
&gt;         if (is_user_in(&quot;Credentials&quot;,&quot;local&quot;)) {<br>
&gt;             route(6);<br>
&gt;             log(1,&quot;\n*********************** I AM GOING TO ENTER ROUTE<br>
&gt; 4&quot;);<br>
&gt;         route(4);<br>
&gt;             exit;<br>
&gt;         } else {<br>
&gt;             sl_send_reply(&quot;403&quot;, &quot;No permissions for local calls&quot;);<br>
&gt;             exit;<br>
&gt;         };<br>
&gt;     };*<br>
&gt;<br>
&gt;<br>
&gt; Can you tell me where i may be going wrong<br>
&gt;<br>
&gt;<br>
&gt; This is the piece of script<br>
&gt; On Fri, Aug 21, 2009 at 5:58 PM, Bogdan-Andrei Iancu<br>
</div></div><div><div></div><div class="h5">&gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     HI Ashwini,<br>
&gt;<br>
&gt;     If you wan to used the Credentials, then you need to be sure you did<br>
&gt;     authentication before (in script).<br>
&gt;<br>
&gt;     Regards,<br>
&gt;     Bogdan<br>
&gt;<br>
&gt;     ASHWINI NAIDU wrote:<br>
&gt;     &gt; Hi all,<br>
&gt;     &gt;<br>
&gt;     &gt;      I have installed opensips-1.5. I have applied the required<br>
&gt;     patch<br>
&gt;     &gt; for group. When i use<br>
&gt;     &gt;<br>
&gt;     &gt;            * is_user_in(&quot;Credentials&quot;, &quot;local&quot;) { *<br>
&gt;     &gt;<br>
&gt;     &gt;   I get the following error<br>
&gt;     &gt;<br>
&gt;     &gt;  *ERROR:auth:consume_credentials: no authorized credentials found<br>
&gt;     &gt; (error in scripts)<br>
&gt;     &gt; Aug 21 17:09:30 debian /sbin/opensips[18916]:<br>
&gt;     &gt; ERROR:group:get_username_domain: no authorized credentials found<br>
&gt;     &gt; (error in scripts)<br>
&gt;     &gt; Aug 21 17:09:30 debian /sbin/opensips[18916]:<br>
&gt;     ERROR:group:is_user_in:<br>
&gt;     &gt; failed to get username@domain*<br>
&gt;     &gt;<br>
&gt;     &gt; Can anyone say what may be the problem.<br>
&gt;     &gt; --<br>
&gt;     &gt; Thanking You,<br>
&gt;     &gt; Ashwini BR Naidu<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Users mailing list<br>
</div></div>&gt;     &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
<div class="im">&gt;     &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;     &gt;<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Users mailing list<br>
</div>&gt;     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
<div><div></div><div class="h5">&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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Thanking You,<br>
&gt; Ashwini BR Naidu<br>
&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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>