Please add a semicolon ';' after the last '}'
Younger Wang ----- Original Message ----- From: Jade Chen Yan To: serusers@lists.iptel.org Sent: Wednesday, June 18, 2003 10:41 PM Subject: [Serusers] ser.cfg for PSTN GW
hi, all,
whenever I add the following lines in the ser.cfg, the ser cannot start up. : #for PSTN gateway if (uri=~"^sip:[0-9]*") { forward (192.168.15.41,5060); # 192.168.15.41 is my CISCO SIP2PSTN GW. #rewritehostport("192.168.15.41","5060") break; }
I just add in the default ser.cfg. when I comment these lines. the ser can be started. if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication # if (!www_authorize("iptel.org", "subscriber")) { # www_challenge("iptel.org", "0"); # break; # };
save("location"); break; };
#for PSTN gateway #if (uri=~"sip:8010") { # forward (192.168.15.41,5060); # #rewritehostport("192.168.15.41","5060") # break; #}
# native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
can anyone tell me what 's wrong with these line.
Best Regards, Jade
------------------------------------------------------------------------------
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers