[Serusers] Two PSTN gateway providers needs different prefix

samuel samu60 at gmail.com
Fri May 26 11:27:16 CEST 2006


Take a look at pdt module....it might suit your needs.

Samuel.

2006/5/26, Andrey Kouprianov <andrey.kouprianov at gmail.com>:
> how about this... dont use # key. just append 3333 or 4444 to the number, i.e.
>
> GW1 --->     3333<phone number>
> GW2 --->     4444<phone number>
>
>
> if(uri=~"^sip:3333.*") {
>       strip(4);                #if you need to get rid of first 4
> digits (i.e. "3333")
>       t_relay_to_udp("gw1.ip.address", "gw1-port") ;
> }
> else if(uri=~"^sip:4444.*") {
>       strip(4);                 #if you need to get rid of first 4
> digits (i.e. "4444")
>       t_relay_to_udp("GW2.ip.address", "GW2-port");
> };
>
>
> Hope that works out for you.
>
>
> On 5/26/06, Ryan Pagquil <rpagquil at philonline.com> wrote:
> > Hi,
> >         Anyone has any idea on how to do this?
> >
> > Please help....
> >
> > Thanks,
> > Ryan
> >
> >
> >
> > At 11:15 AM 5/25/2006, Ryan Pagquil wrote:
> > >Hi SER users,
> > >
> > >         I have a problem. We have two PSTN gateway providers and
> > > both of them needs different prefixes when sending request to their gateway.
> > >
> > >         For example:
> > >                 GW1 --->     3333#<phone number>
> > >                 GW2 --->     4444#<phone number>
> > >
> > >Now I'll be using these two provider with LCR, but I don't know how
> > >will I accomplish their requirements on their prefixes. Could you
> > >give me any idea about this scenario? Also how can I make LCR to
> > >failover with these gateways?
> > >
> > >Please help....
> > >
> > >Thanks in advance,
> > >Ryan Pagquil
> > >
> > >
> > >
> > >_______________________________________________
> > >Serusers mailing list
> > >Serusers at lists.iptel.org
> > >http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
> > _______________________________________________
> > Serusers mailing list
> > Serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>



More information about the sr-users mailing list