Hi samuel,
If I use this, will it append the prefix on start of the
RURI? For example:
RURI = sip:1234567@domain.com it will become:
RURI = sip:44441234567@domain.com
Is it correct?
Thanks,
Ryan
At 05:38 PM 5/29/2006, samuel wrote:
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(a)philonline.com>om>:
>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(a)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(a)lists.iptel.org
> >> >http://lists.iptel.org/mailman/listinfo/serusers
> >>
> >>
> >>_______________________________________________
> >>Serusers mailing list
> >>Serusers(a)lists.iptel.org
> >>http://lists.iptel.org/mailman/listinfo/serusers
> >_______________________________________________
> >Serusers mailing list
> >Serusers(a)lists.iptel.org
> >http://lists.iptel.org/mailman/listinfo/serusers
>
>
>_______________________________________________
>Serusers mailing list
>Serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers