<!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 ';' &nbsp;after the last 
'}'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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&nbsp; the 
  ser.cfg, the ser cannot start up.<BR>:<BR>#for PSTN gateway<BR>&nbsp; if 
  (uri=~"^sip:[0-9]*") {<BR>&nbsp;&nbsp;&nbsp;&nbsp; forward 
  (192.168.15.41,5060);&nbsp;&nbsp; # 192.168.15.41 is my CISCO 
  SIP2PSTN<BR>GW.<BR>&nbsp;&nbsp;&nbsp; 
  #rewritehostport("192.168.15.41","5060")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  break;<BR>&nbsp; }<BR><BR>I just add in the&nbsp; default ser.cfg.<BR>when I 
  comment these lines. the ser can be started.<BR>&nbsp;if (uri==myself) 
  {<BR><BR>&nbsp; if (method=="REGISTER") {<BR><BR># Uncomment this if you want 
  to use digest authentication<BR>#&nbsp;&nbsp; if (!www_authorize("iptel.org", 
  "subscriber")) {<BR>#&nbsp;&nbsp;&nbsp; www_challenge("iptel.org", 
  "0");<BR>#&nbsp;&nbsp;&nbsp; break;<BR>#&nbsp;&nbsp; };<BR><BR>&nbsp;&nbsp; 
  save("location");<BR>&nbsp;&nbsp; break;<BR>&nbsp; };<BR><BR>&nbsp; #for PSTN 
  gateway<BR>&nbsp; #if (uri=~"sip:8010") {<BR>&nbsp; #&nbsp;&nbsp; forward 
  (192.168.15.41,5060);<BR>&nbsp; #&nbsp;&nbsp; 
  #rewritehostport("192.168.15.41","5060")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  #&nbsp;&nbsp; break;<BR>&nbsp; #}<BR><BR>&nbsp; # native SIP destinations are 
  handled using our USRLOC DB<BR>&nbsp; if (!lookup("location")) 
  {<BR>&nbsp;&nbsp; sl_send_reply("404", "Not Found");<BR>&nbsp;&nbsp; 
  break;<BR>&nbsp; };<BR>&nbsp;};<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>