[Serusers] ser.cfg for PSTN GW

Younger Wang wygmail at yeah.net
Fri Jun 20 00:00:17 CEST 2003


It seems ok with your syntax. Should you give more detail?

  ----- Original Message ----- 
  From: Jade Chen Yan 
  To: 'Younger Wang' ; serusers at lists.iptel.org 
  Sent: Wednesday, June 18, 2003 11:46 PM
  Subject: RE: [Serusers] ser.cfg for PSTN GW


  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 at yeah.net]
  Sent: Friday, June 20, 2003 4:51 AM
  To: jade(陈雁); serusers at 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 at tencent.com>
  To: serusers at 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 at lists.iptel.org
  http://lists.iptel.org/mailman/listinfo/serusers



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030619/830395d4/attachment.htm>


More information about the sr-users mailing list