Hello,

I'm trying to restrict registrations based on the username/number but without authentication. I'm using "uri_db" module, the URI table and the check_to() function. But when a user tries to register Kamailio 3.1.5 says the following error:

0(11832) ERROR: uri_db [checks.c:71]: No authorized credentials found (error in scripts)
0(11832) ERROR: uri_db [checks.c:72]: Call {www,proxy}_authorize before calling check_* functions!

I've read README from uri_db and seems to be possible doing it the way I do. I have the following configuration:

modparam("usrloc|uri_db", "db_url", "text:///etc/kamailio/dbtext")
modparam("uri_db", "db_table", "uri")
modparam("uri_db", "use_uri_table", 1)

route{
        ...
        check_to()
        ...
}

am I doing right?

Thanks & BR,
Pedro
ADVERTENCIA


Este mensaje y/o sus anexos, pueden contener información personal y confidencial cuyo uso, reproducción o distribución no autorizados están legalmente prohibidos. Por lo tanto, si Vd. no fuera su destinatario y, erróneamente, lo hubiera recibido, le rogamos que informe al remitente y lo borre de inmediato.

En cumplimiento de la Ley Orgánica 15/1999, de Protección de Datos de Carácter Personal le informamos de que su dirección de correo electrónico, así como sus datos personales y de empresa pasarán a formar parte de nuestro fichero de Gestión, y serán tratados con la única finalidad de mantenimiento de la relación adquirida con usted. Los datos personales que existen en nuestro poder están protegidos por nuestra Política de Seguridad, y no serán compartidos con ninguna otra empresa. Usted puede ejercitar los derechos de acceso, rectificación, cancelación y oposición dirigiéndose por escrito a la dirección arriba indicada.

This e-mail and its attachments may include confidential personal information which may be protected by any legal rules and cannot be used, copied, distributed or disclosed to any person without authorisation. If you are not the intended recipient and have received this e-mail by mistake, please advise the sender and erase it.

In compliance with the Spanish Organic Act 15/1999 on Personal Data Protection, we hereby inform you that your email address, as well as your personal and business information, will be included in our Management files and used solely for purposes corresponding to our commercial relationship. All personal data in our possession is protected by our Data Safety Policy and thus shall not be released to any other third party whatsoever. You may exercise your right to access, rectify, cancel and contest by writing to the address provided above.