Does anybody know what is this error about "is_user_in(): No authorized credentials found (error in scripts)"?
Thanks, Daniel
On Tue, Aug 29, 2006 at 02:32:10PM -0300, Daniel Mirrha Santos wrote:
Does anybody know what is this error about "is_user_in(): No authorized credentials found (error in scripts)"?
do u mean "is_user()" ?
anyway you don't have credentials in this SIP message. "is_user()" should be call after "proxy_authorize()" or "www_challenge()". Please check module "auth_db".
Thanks, Daniel
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Wbr,
Ok, I have some ifs separating the traffic by the called number, and I want to use the credentials for each called number (like mobile, long distance), like a public switch. if (uri=~"^sip:[0][1-9][0-9][7-9][0-9][0-9][0-9][0-9].*@.*") { if(!is_user_in("credentials", "vc23")) { sl_send_reply("403", "Sem direito para efetuar chamadas VC2 e VC3"); break; }; consume_credentials(); strip(1); prefix("55"); route(10); break; };
if (uri=~"^sip:[7-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].*@.*") { if(!is_user_in("credentials", "vc1")) { sl_send_reply("403", "Sem direito para efetuar chamadas VC1"); break; }; consume_credentials(); prefix("5511"); route(10); break; };
It stops working suddenly, and I don't know why.
-----Mensagem original----- De: Alexandr Dubovikov [mailto:shurik@start4.info] Enviada em: terça-feira, 29 de agosto de 2006 16:30 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: [Serusers] Error with credentials
On Tue, Aug 29, 2006 at 02:32:10PM -0300, Daniel Mirrha Santos wrote:
Does anybody know what is this error about "is_user_in(): No authorized credentials found (error in scripts)"?
do u mean "is_user()" ?
anyway you don't have credentials in this SIP message. "is_user()" should be call after "proxy_authorize()" or "www_challenge()". Please check module "auth_db".
Thanks, Daniel
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Wbr, -- Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info AD1-UANIC * ICQ: 122351182 * http://www.start4.info
On Tue, Aug 29, 2006 at 04:47:14PM -0300, Daniel Mirrha Santos wrote:
Seems you are in wrong mail list, because you use OpenSer :-) Our list is only for Iptel SER.
Ok, I have some ifs separating the traffic by the called number, and I want to use the credentials for each called number (like mobile, long distance), like a public switch.
As I told you in the last mail, you should to use "proxy_authorize" before your code:
if(!proxy_authorize("my_realm.com", "subscriber")) { proxy_challenge("my_realm.com", "0"); break; }
if (uri=~"^sip:[0][1-9][0-9][7-9][0-9][0-9][0-9][0-9].*@.*")
{ if(!is_user_in("credentials", "vc23")) { sl_send_reply("403", "Sem direito para efetuar chamadas VC2 e VC3"); break; }; consume_credentials(); strip(1); prefix("55"); route(10); break; };
if
(uri=~"^sip:[7-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].*@.*") { if(!is_user_in("credentials", "vc1")) { sl_send_reply("403", "Sem direito para efetuar chamadas VC1"); break; }; consume_credentials(); prefix("5511"); route(10); break; };
It stops working suddenly, and I don't know why.
-----Mensagem original----- De: Alexandr Dubovikov [mailto:shurik@start4.info] Enviada em: ter?a-feira, 29 de agosto de 2006 16:30 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: [Serusers] Error with credentials
On Tue, Aug 29, 2006 at 02:32:10PM -0300, Daniel Mirrha Santos wrote:
Does anybody know what is this error about "is_user_in(): No authorized credentials found (error in scripts)"?
do u mean "is_user()" ?
anyway you don't have credentials in this SIP message. "is_user()" should be call after "proxy_authorize()" or "www_challenge()". Please check module "auth_db".
Thanks, Daniel
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Wbr,
Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info AD1-UANIC * ICQ: 122351182 * http://www.start4.info
I used it before my code, and sometimes it works sometimes not. When it don't work the server sends me "407 Proxy Authentication Required". Any ideia?
-----Mensagem original----- De: 'Alexandr Dubovikov' [mailto:shurik@start4.info] Enviada em: quarta-feira, 30 de agosto de 2006 04:19 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: RES: [Serusers] Error with credentials
On Tue, Aug 29, 2006 at 04:47:14PM -0300, Daniel Mirrha Santos wrote:
Seems you are in wrong mail list, because you use OpenSer :-) Our list is only for Iptel SER.
Ok, I have some ifs separating the traffic by the called number, and I want to use the credentials for each called number (like mobile, long distance), like a public switch.
As I told you in the last mail, you should to use "proxy_authorize" before your code:
if(!proxy_authorize("my_realm.com", "subscriber")) { proxy_challenge("my_realm.com", "0"); break; }
if
(uri=~"^sip:[0][1-9][0-9][7-9][0-9][0-9][0-9][0-9].*@.*")
{ if(!is_user_in("credentials", "vc23")) { sl_send_reply("403", "Sem direito para efetuar chamadas VC2 e VC3"); break; }; consume_credentials(); strip(1); prefix("55"); route(10); break; };
if
(uri=~"^sip:[7-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].*@.*") { if(!is_user_in("credentials", "vc1")) { sl_send_reply("403", "Sem direito para efetuar chamadas VC1"); break; }; consume_credentials(); prefix("5511"); route(10); break; };
It stops working suddenly, and I don't know why.
-----Mensagem original----- De: Alexandr Dubovikov [mailto:shurik@start4.info] Enviada em: ter?a-feira, 29 de agosto de 2006 16:30 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: [Serusers] Error with credentials
On Tue, Aug 29, 2006 at 02:32:10PM -0300, Daniel Mirrha Santos wrote:
Does anybody know what is this error about "is_user_in(): No authorized credentials found (error in scripts)"?
do u mean "is_user()" ?
anyway you don't have credentials in this SIP message. "is_user()" should
be
call after "proxy_authorize()" or "www_challenge()". Please check module "auth_db".
Thanks, Daniel
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Wbr,
Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info AD1-UANIC * ICQ: 122351182 * http://www.start4.info
On Wed, Aug 30, 2006 at 08:31:32AM -0300, Daniel Mirrha Santos wrote:
I used it before my code, and sometimes it works sometimes not. When it don't work the server sends me "407 Proxy Authentication Required". Any ideia?
Is the password incorrect ? :-)
Wbr,
Yes :-) When I start the server the authentication and the rights work, but after some calls this error starts appear.
-----Mensagem original----- De: 'Alexandr Dubovikov' [mailto:shurik@start4.info] Enviada em: quarta-feira, 30 de agosto de 2006 09:26 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: RES: RES: [Serusers] Error with credentials
On Wed, Aug 30, 2006 at 08:31:32AM -0300, Daniel Mirrha Santos wrote:
I used it before my code, and sometimes it works sometimes not. When it don't work the server sends me "407 Proxy Authentication Required". Any ideia?
Is the password incorrect ? :-)
Wbr, -- Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info AD1-UANIC * ICQ: 122351182 * http://www.start4.info
On Wed, Aug 30, 2006 at 09:30:48AM -0300, Daniel Mirrha Santos wrote:
Yes :-) When I start the server the authentication and the rights work, but after some calls this error starts appear.
then, check your connection to mysql (or another database).
also can be, what realms are different.
-----Mensagem original----- De: 'Alexandr Dubovikov' [mailto:shurik@start4.info] Enviada em: quarta-feira, 30 de agosto de 2006 09:26 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: RES: RES: [Serusers] Error with credentials
On Wed, Aug 30, 2006 at 08:31:32AM -0300, Daniel Mirrha Santos wrote:
I used it before my code, and sometimes it works sometimes not. When it don't work the server sends me "407 Proxy Authentication Required". Any ideia?
Is the password incorrect ? :-)
Wbr,
Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info AD1-UANIC * ICQ: 122351182 * http://www.start4.info
I'm using postgres. The connection seems to be ok. I'll rewrite all my config, but I couldn't find documents about what I have to put on it, and the official pdf on iptel site isn't good. Do you know some place to get good docs?
-----Mensagem original----- De: 'Alexandr Dubovikov' [mailto:shurik@start4.info] Enviada em: quarta-feira, 30 de agosto de 2006 09:47 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: RES: RES: RES: [Serusers] Error with credentials
On Wed, Aug 30, 2006 at 09:30:48AM -0300, Daniel Mirrha Santos wrote:
Yes :-) When I start the server the authentication and the rights work, but after some calls this error starts appear.
then, check your connection to mysql (or another database).
also can be, what realms are different.
-----Mensagem original----- De: 'Alexandr Dubovikov' [mailto:shurik@start4.info] Enviada em: quarta-feira, 30 de agosto de 2006 09:26 Para: Daniel Mirrha Santos Cc: 'Ser' Assunto: Re: RES: RES: [Serusers] Error with credentials
On Wed, Aug 30, 2006 at 08:31:32AM -0300, Daniel Mirrha Santos wrote:
I used it before my code, and sometimes it works sometimes not. When it don't work the server sends me "407 Proxy Authentication Required". Any ideia?
Is the password incorrect ? :-)
Wbr,
Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info AD1-UANIC * ICQ: 122351182 * http://www.start4.info
-- Alexandr Dubovikov * baron@iRC RusNet * mailto:shurik@start4.info AD1-UANIC * ICQ: 122351182 * http://www.start4.info
On Wed, Aug 30, 2006 at 09:55:59AM -0300, Daniel Mirrha Santos wrote:
I'm using postgres. The connection seems to be ok. I'll rewrite all my config, but I couldn't find documents about what I have to put on it, and the official pdf on iptel site isn't good. Do you know some place to get good docs?
Wbr,