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
begin 666 ATT00017.htm
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#,N,B\O
M14XB/@T*/$A434P^#0H\2$5!1#X-"CQ-151!($A45% M15%5258](D-O;G1E
M;G0M5'EP92(@0T].5$5.5#TB=&5X="]H=&UL.R!C:&%R<V5T/6=B,C,Q,B(^
M#0H\345402!.04U%/2)'96YE<F%T;W(B($-/3E1%3E0](DU3($5X8VAA;F=E
M(%-E<G9E<B!V97)S:6]N(#8N,"XV,C0Y+C$B/@T*/%1)5$Q%/G-E<BYC9F<@
M(&9O<B!04U1.($=7/"]4251,13X-"CPO2$5!1#X-"CQ"3T19/@T*/"$M+2!#
M;VYV97)T960@9G)O;2!T97AT+W!L86EN(&9O<FUA=" M+3X-"@T*/% ^/$9/
M3E0@4TE:13TR/FAI+"!A;&PL/"]&3TY4/@T*/"]0/@T*#0H\4#X\1D].5"!3
M25I%/3(^=VAE;F5V97(@22!A9&0@=&AE(&9O;&QO=VEN9R!L:6YE<R!I;B9N
M8G-P.R!T:&4@<V5R+F-F9RP@=&AE('-E<B!C86YN;W0@<W1A<G0@=7 N(#H\
M+T9/3E0^#0H-"CQ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