<!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>It seems ok with your syntax. Should you&nbsp;give 
more detail?</FONT></DIV>
<DIV>&nbsp;</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=wygmail@yeah.net 
  href="mailto:wygmail@yeah.net">'Younger Wang'</A> ; <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 11:46 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Serusers] ser.cfg for PSTN 
  GW</DIV>
  <DIV><BR></DIV>thank u for your kindly reply . the ser can be started. by I 
  alway got the<BR>400 "invilid ip addr"error.<BR><BR>i use the following to 
  provide the GW IP<BR>&nbsp;&nbsp;&nbsp; #forward 
  (192.168.15.41,5060);<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
  #rewritehostport("192.168.15.41:5060");<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
  t_relay_to( "192.168.15.41", "5060");<BR>each of which cannot work out .got 
  the same error.<BR><BR>can u give me other 
  suggestions.?<BR><BR><BR>-----Original Message-----<BR>From: Younger Wang 
  [mailto:wygmail@yeah.net]<BR>Sent: Friday, June 20, 2003 4:51 AM<BR>To: 
  jade(³ΒΡγ); serusers@lists.iptel.org<BR>Subject: Re: [Serusers] ser.cfg for PSTN 
  GW<BR><BR><BR>Please add a semicolon ';'&nbsp; after the last 
  '}'<BR><BR>Younger Wang<BR><BR>----- Original Message -----<BR>From: Jade Chen 
  Yan &lt;mailto:jade@tencent.com&gt;<BR>To: serusers@lists.iptel.org<BR>Sent: 
  Wednesday, June 18, 2003 10:41 PM<BR>Subject: [Serusers] ser.cfg for PSTN 
  GW<BR><BR>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><BR><BR><BR><BR>&nbsp; 
  _____<BR><BR><BR><BR><BR><BR><BR>_______________________________________________<BR>Serusers 
  mailing 
  list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<BR><BR><BR><BR></BLOCKQUOTE></BODY></HTML>