Hi Sean,

On 01/28/2011 12:18 AM, Sean Salomon wrote:
Hello,


        I am using the LiveDVD version of OpenSIPS. I placed it on a
dedicated outside IP. I am getting an 407 Proxy Authentication Required
message when trying to place calls on some endpoints. Not all mind you.
I am able to configure xmeeting to pass the username and password for
the proxyand all works great, but not all endpoints have that ability.
Namely Bria. I was looking to have the proxy authentication disabled, or
Bria is able to authenticate when making calls..
just have it check to see if it is a local registered endpoint. Can
someone point me in the right direction. Below is what I have for local
callers.

    #---- authenticate caller if local ----#
         if (!is_method("REGISTER")&&  is_from_local()) {
                 if(!is_from_gw()){


                         if (!proxy_authorize("", "subscriber")) {
                                 proxy_challenge("", "0");
                                 exit;
                         }
                         if (!db_check_from()) {
                                 send_reply("403","Forbidden auth ID");
                                 exit;
                         }
                         consume_credentials();
                         # caller authenticated
                 }
         }
If you want to check to see if the use calling is registered, you have to do lookup on the from_uri: lookup("location","","$fu") and if it returns an error it means it is not registered.

Regards,

--
Anca Vamanu
www.voice-system.ro


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to