thank u for your kindly reply . the ser can be started. by I alway got the
400 "invilid ip addr"error.
i use the following to provide the GW IP
#forward (192.168.15.41,5060);
#rewritehostport("192.168.15.41:5060");
t_relay_to( "192.168.15.41", "5060");
each of which cannot work out .got the same error.
can u give me other suggestions.?
-----Original Message-----
From: Younger Wang [mailto:wygmail@yeah.net]
Sent: Friday, June 20, 2003 4:51 AM
To: jade(³ÂÑã); serusers(a)lists.iptel.org
Subject: Re: [Serusers] ser.cfg for PSTN GW
Please add a semicolon ';' after the last '}'
Younger Wang
----- Original Message -----
From: Jade Chen Yan <mailto:jade@tencent.com>
To: serusers(a)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(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
begin 666 ATT00022.htm
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,"!4
M<F%N<VET:6]N86PO+T5.(CX-"CQ(5$U,/CQ(14%$/@T*/$U%5$$@2%144"U%
M455)5CTB0V]N=&5N="U4>7!E(B!#3TY414Y4/2)T97AT+VAT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