[OpenSER-Users] forward one user to a spezific ip

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jul 25 09:07:00 CEST 2007


Hi Andy,

NicklasZ wrote:
> Hi
>
> what do i have to do to forward only 1 user to a spezific IP address 
> on INVITE?
>
> if(method=="INVITE")
> {
>    if (uri=~"^sip:\200" || src_ip == xxx.xxx.xxx.xxx) {
>              ???????
>            it should be forwarded on fixed ip yyy.yyy.yyy.yyy:5060
               t_relay("udp:yyy.yyy.yyy.yyy:5060");
               #or for stateless
               #forward("udp:yyy.yyy.yyy.yyy:5060");
>    }
> };
>
> i think its very easy but i'm a greenhorn ;)
>
> Thanks
> Andy
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>





More information about the Users mailing list