[Serusers] about URI request

liu york york at goldentek.biz
Wed Apr 9 05:53:21 CEST 2008


hi 

i want to distribute tow alieas users use different pstn gw with same area code.
i add below in my cfg.but it doesnt work.any advice for me ? many many thx.

      if (uri=~"^sip:0060.*@(my\.test\.com)"){
                strip(2);
                prefix("21");
                rewritehostport("1.2.3.4:5060");        # This is where PSTN Gateway installed
                route(1);
                return;
                 };
      if (uri=~"^sip:0060.*@(your\.test\.com)"){
                strip(2);
                prefix("22");
                rewritehostport("5.6.7.8:5060");        # This is where PSTN Gateway installed
                route(1);
                return;
                 };






More information about the sr-users mailing list