[Serusers] ser.cfg for PSTN GW

Younger Wang wygmail at yeah.net
Thu Jun 19 22:50:54 CEST 2003

Please add a semicolon ';'  after the last '}'

Younger Wang
  ----- Original Message ----- 
  From: Jade Chen Yan 
  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 (,5060);   # is my CISCO SIP2PSTN

  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;
  #   };


    #for PSTN gateway
    #if (uri=~"sip:8010") {
    #   forward (,5060);
    #   #rewritehostport("","5060")
        #   break;

    # native SIP destinations are handled using our USRLOC DB
    if (!lookup("location")) {
     sl_send_reply("404", "Not Found");

  can anyone tell me what 's wrong with these line.

  Best Regards,


  Serusers mailing list
  serusers at lists.iptel.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030619/213b5898/attachment.htm>

More information about the sr-users mailing list