<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("auth_db", "calculate_ha1", yes)<br>
modparam("auth_db", "password_column", "password")<br>modparam("auth_db", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("auth_db", "load_credentials", "")<br>
</b><br><br><b>if (is_from_local()){
<br> # From an internal domain -> check the credentials and the FROM
<br> if (method=="MESSAGE") {<br> log(1,"\n--------------------------------------> ROUTE 3 MESSAGE Looop-----------------------\n");<br> route(17);<br>
};<br> if(!allow_trusted()){
<br> if (!proxy_authorize("","subscriber")) {
<br> proxy_challenge("","0");
<br> exit;
<br> } else if(!check_from()) {
<br> sl_send_reply("403", "Forbidden, use From=ID");
<br> exit;
<br> };
<br> };
<br> if (client_nat_test("3")) {
<br> append_hf("P-hint: setflag7|forcerport|fix_contact\r\n");
<br> setbflag(7);
<br> force_rport();
<br> fix_contact();
<br> };
<br> #unconditional call forward
<br> if(avp_db_load("$ru/username","$avp(s:callfwd)")) {
<br> avp_pushto("$ru", "$avp(s:callfwd)");
<br> route(1);
<br> exit;
<br> }<br> <br></b> <b>consume_credentials();</b><br><br> <b> if (uri=~"^sip:00[0-9]{6,20}@") {
<br> if (is_user_in("Credentials","local")) {
<br> route(6);<br> log(1,"\n*********************** I AM GOING TO ENTER ROUTE 4");
<br> route(4);
<br> exit;
<br> } else {
<br> sl_send_reply("403", "No permissions for local calls");
<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"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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>
> Hi all,<br>
><br>
> I have installed opensips-1.5. I have applied the required patch<br>
> for group. When i use<br>
><br>
> * is_user_in("Credentials", "local") { *<br>
><br>
> I get the following error<br>
><br>
> *ERROR:auth:consume_credentials: no authorized credentials found<br>
> (error in scripts)<br>
> Aug 21 17:09:30 debian /sbin/opensips[18916]:<br>
> ERROR:group:get_username_domain: no authorized credentials found<br>
> (error in scripts)<br>
> Aug 21 17:09:30 debian /sbin/opensips[18916]: ERROR:group:is_user_in:<br>
> failed to get username@domain*<br>
><br>
> Can anyone say what may be the problem.<br>
> --<br>
> Thanking You,<br>
> Ashwini BR Naidu<br>
</div></div>> ------------------------------------------------------------------------<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>
><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>