Why you don’t use just the source IP address of the request. For example:

 

      # INVITE - Authorization Section

      if (src_ip=="AAA.BBB.CCC.DDD") {

            xlog("L_INFO", "INVITE - Message received from authorized IP $si\n");

      } else {

            if (!proxy_authorize("yourdomain.com","subscriber")) {

                  proxy_challenge("yourdomain.com","0");

                  exit;

            } else if (!check_from()) {

                  sl_send_reply("403", "Use From=ID");

                  exit;

            };

            consume_credentials();

      };

 

 

 

-----Mensaje original-----
De: users-bounces@openser.org [mailto:users-bounces@openser.org] En nombre de Brian Fertig
Enviado el: 30 de Agosto de 2006 03:35 p.m.
Para: users@openser.org
Asunto: [Users] IP authentication

 

greetings,

 

 

                I have digest and basic auth setup…    I am trying to figure out how to setup IP auth.  I have

read a lot of documentation but I can’t seem to find anything to help me understand how to accomplish

this.  Can someone point me in a direction to some information on how to set this up?

 

 

 

Brian