[Serusers] How to forward the call to PSTN GW

john john at signalphone.com
Wed Jun 16 17:18:44 CEST 2004


Hi Jiri,

I have a question.

I want to route all call start with 0026xxxxxxxxxxxxxxxxxxxx to the PSTN
gateway.

And I tried it with the command

if (uri=~"^sip:0026*@") {
   forward(IP,5060);
  break;
};

Is this correct?

Do I need to inculde this condition is the following condition statment:

if (method=="INVITE") {
   if (uri=~"^sip:0026*@" {
      forward(ip , 5060);
      break;
   };
};


Thanks for your help.

Regards

John





More information about the sr-users mailing list