[Serusers] Strange error when using group module
Klaus Darilion
klaus.mailinglists at pernau.at
Wed Mar 3 18:50:33 CET 2004
If you want to authorize INVITEs before sending them to the gateway, you
should also challenge the INVITEs. And you should use proxy_challenge
for INVITEs and www_challenge for REGISTERs.
you can try this:
if (method=="INVITE") {
if (!proxy_authorize("sip.netsquare.co.uk","subscriber")) {
proxy_challenge("sip.netsquare.co.uk", "0");
break;
};
if (!is_user_in("credentials","int")) {
sl_send_reply("403", " no permission for external calls");
break;
};
...here forward to gateway
};
btw: please always CC: to the mailing list.
regards,
klaus
Mike Fallows wrote:
> There is a proxy_athorize in the register statement as below.
>
>
>
> if (method=="REGISTER") {
>
> # Uncomment this if you want to use digest authentication
> if (!proxy_authorize("sip.netsquare.co.uk",
> "subscriber"
> ))
> {
> proxy_challenge("sip.netsquare.co.uk", "0");
> break;
> };
>
> save("location");
> break;
> };
>
> -----Original Message-----
> From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
> Sent: 03 March 2004 09:34
> To: Mike Fallows
> Cc: serusers at lists.iptel.org
> Subject: Re: [Serusers] Strange error when using group module
>
>
> There are no credetials (username/password) in the incoming request.
> Have you requested credentials with proxy_authorize(...) ?
>
> klaus
>
> Mike Fallows wrote:
>
>>Anyone help me with this one.
>>
>>I am trying to group users so that some are allowed place SIP->SIP calls
>
> via
>
>>the proxy, and others are also allowed to access the PSTN.
>>
>>An extract of the ser.cfg is below:
>>
>>if (!is_user_in("credentials","int")) {
>> sl_send_reply("403", " no permission for external calls");
>> break;
>> }
>>
>>When this is called, I receive this in /var/log/messages:
>>
>>Mar 2 22:04:41 ns-nby-ser1 /usr/local/sbin/ser[6988]: is_user_in(): No
>>authorized credentials found (error in scripts)
>>
>>And the user fails to connect.
>>
>>Any ideas would be greatly appreciated.
>>
>>Mike
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers at lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>
>
>
>
More information about the sr-users
mailing list