[Serusers] Multiple SIP - PSTN Gateways

Jiri Kuthan jiri at iptel.org
Thu Sep 25 23:05:59 CEST 2003


roughly like this:

if (uri=~"sip:972") {
  sethostport("dfw.nationalgateways.com");
} else if (uri=~"sip:911") {
  sethostport("emrgency.ngw.com");
} else {
  sethostport("defaultgw.com");
};
t_relay();

That's it. No guarantee for positioning of semicolons and other
:$)"./... symbols.

-jiri

At 02:43 PM 9/25/2003, Wasik, Paul wrote:
>Hi all,
>
>Has anyone built a ser.cfg that can conditionally forward SIP calls to
>different SIP - PSTN gateways based on the outgoing calls area or exchange
>code. I'm sure it can be done but I'm not that good with syntax of the
>ser.cfg file. I know how to route to single SIP GW based on the dialed
>string but how do I make SER use multiple SIP gateways? Can anyone provide
>an example of this? 
>
>Thanks,
>
>Paul
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers

--
Jiri Kuthan            http://iptel.org/~jiri/ 




More information about the sr-users mailing list