<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Please add a semicolon ';' after the last
'}'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Younger Wang</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jade@tencent.com href="mailto:jade@tencent.com">Jade Chen Yan</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=serusers@lists.iptel.org
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 18, 2003 10:41
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Serusers] ser.cfg for PSTN
GW</DIV>
<DIV><BR></DIV>hi, all,<BR><BR>whenever I add the following lines in the
ser.cfg, the ser cannot start up.<BR>:<BR>#for PSTN gateway<BR> if
(uri=~"^sip:[0-9]*") {<BR> forward
(192.168.15.41,5060); # 192.168.15.41 is my CISCO
SIP2PSTN<BR>GW.<BR>
#rewritehostport("192.168.15.41","5060")<BR>
break;<BR> }<BR><BR>I just add in the default ser.cfg.<BR>when I
comment these lines. the ser can be started.<BR> if (uri==myself)
{<BR><BR> if (method=="REGISTER") {<BR><BR># Uncomment this if you want
to use digest authentication<BR># if (!www_authorize("iptel.org",
"subscriber")) {<BR># www_challenge("iptel.org",
"0");<BR># break;<BR># };<BR><BR>
save("location");<BR> break;<BR> };<BR><BR> #for PSTN
gateway<BR> #if (uri=~"sip:8010") {<BR> # forward
(192.168.15.41,5060);<BR> #
#rewritehostport("192.168.15.41","5060")<BR>
# break;<BR> #}<BR><BR> # native SIP destinations are
handled using our USRLOC DB<BR> if (!lookup("location"))
{<BR> sl_send_reply("404", "Not Found");<BR>
break;<BR> };<BR> };<BR><BR>can anyone tell me what 's wrong with
these line.<BR><BR><BR>Best Regards,<BR>Jade<BR><BR><BR>
<P>
<HR>
<P></P><BR><BR>_______________________________________________<BR>Serusers
mailing
list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers</BLOCKQUOTE></BODY></HTML>