[Serusers] More on pstn access using a GW

Alessio Focardi alessiof at interconnessioni.it
Tue Feb 10 17:56:39 CET 2004


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




More information about the sr-users mailing list