I rewrote the entire script
if (uri=~"0*@DOM") {
if (!www_authorize("DOM", "subscriber")) { www_challenge("DOM", "0"); break; }; if (!is_user_in("credentials", "local")){ sl_send_reply("403", "No permission for local calls"); break; }; rewritehostport("IP:5090"); t_relay_to_udp("IP", "5090"); break; };
It works but I have this problem,
if I hangup within my ip client the pstn number is ringed until answer/timeout
without
f (!is_user_in("credentials", "local")){ sl_send_reply("403", "No permission for local calls"); break; };
all works fine.
Any Idea ?
Tnx