It is better to use proxy_authorize(...) and proxy_challenge(...) instead of www_* to authenticate/authorize the INVITEs.
Oops !
this is working now
if (uri=~"0*@privatel.it"){
if (!www_authorize("privatel.it", "subscriber")) { www_challenge("privatel.it", "0"); sl_send_reply("403", "No permission for local calls"); break; };
if (method=="INVITE" & !is_user_in("credentials", "local")){ sl_send_reply("403", "No permission for local calls"); break; }; rewritehostport("194.177.127.226:5090"); t_relay_to_udp("194.177.127.226", "5090"); break;
};
shall I just substitute www with proxy ?
tnx !