This probably means you need to to a www_challenge() www_authorize()...
if(!proxy_authorize("DOMAINNAME", "subscriber"))
{
proxy_challenge("DOMAINNAME", "0");
break;
};
You can replace proxy_ with www_, however, I think the
proxy_ is more correct? I've actually run across UAs that
won't respond to www_...
The is_user_in() call looks in the credentials for the user_id,
and that user_id is used for a lookup in the grp table for a grp
with a value of 'local', ie:
select * from grp where user_id = 'user_id' and grp = 'local';
The reason credentials are used is because the from can be trivially
forged.
---greg
Alessio Focardi wrote:
I'm getting mad, this script always gives "No
permission for local
calls" even if caller has "local" permission, I checked also in database.
I'm missing something ?
if (uri=~"0*@DOMAINNAME") {
if (!is_user_in("credentials", "local")){
sl_send_reply("403", "No permission for local
calls");
break;
} else {
rewritehostport("SERVERIP:5090");
t_relay_to_udp("SERVERIP", "5090");
break;
};
};
ser log:
is_user_in(): No authorized credentials found (error in scripts)
Tnx for any help !
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers