[OpenSER-Users-ES] Problemas de Auithentication

David Villasmil david.villasmil.work at gmail.com
Mon Jan 14 18:56:07 CET 2008


Chicos,

     Como es normal, no quiero que nadie llame si estar registrado...
     tengo lo siguiente en mi conf:

    if (uri==myself) {
        if (method=="REGISTER") {

               if (!www_authorize("sip.midom.com", "subscriber")) {
                       www_challenge("sip.midom.com", "0");
                       exit;
               };

            if (isflagset(5)) {
                setbflag(6);
                # if you want OPTIONS natpings uncomment next
                # setflag(7);
            };
            save("location");
            exit;
        };

          if (method=="INVITE") {
               if (!proxy_authorize("sip.midom.com","subscriber"))
               {
                    proxy_challenge("sip.midom..com","0");
                    exit;
               }else{
                    if($si=="GW1"||$si=="GW2"){
                         xlog("L_NOTICE", "\n************** ALLOWING
INCOMING CALL AS IT COMES FROM $si ************\n");
                    }
               }

               if (uri=~"^sip:001"){
                    route(4);
               }
          .
          .
          .

pero ahora tengo problemas de DECLINED con muchos clientes cuando hacen
llamadas... qué hay de malo arriba??


Un saludo

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/sr-users-es/attachments/20080114/f2ccc3eb/attachment-0002.htm 


More information about the Users-es mailing list