[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 (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/213b5898/attachment.htm>


More information about the sr-users mailing list