[Serusers] Two PSTN gateway providers needs different prefix

samuel samu60 at gmail.com
Mon May 29 11:38:32 CEST 2006


Then just add the prefix funciton with the appropriate value just
before sending with t_relay:

/*


*/
     prefix("333");
     t_relay_to_udp("gw1.ip.address", "gw1-port") ;
/*

*/
     prefix("4444");
     t_relay_to_udp("GW2.ip.address", "GW2-port");

Hope it helps,

Samuel.

2006/5/27, Ryan Pagquil <rpagquil at philonline.com>:
> Hi Andrey,
>
>          I want SER the one to append the prefix on the Request URI.
> I think this fits when the user appends a prefix...
>          Any suggestion?
>
> Thanks,
> Ryan
>
> At 05:22 PM 5/26/2006, Andrey Kouprianov wrote:
> >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
>
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>



More information about the sr-users mailing list