[SR-Users] simple proxy

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 23 08:43:34 CET 2011


Hello,

On 11/23/11 4:02 AM, Iurii Andamasov wrote:
> Hello list.
> First of all sorry for dump question, i'm pretty new to kamailio so i hope someone point me in right direction
>
> currently i have one sip device which can handle sip request only from one ip,
> my goal is to put kamailio in front of it so i can proxy requests from several ips
>
> i added this to conf
>
> route{
> if ( src_ip == 10.46.1.121 || src_ip == 10.46.1.122 ) {
> if(method == "INVITE") {
> $rd="10.46.29.10";
> t_relay();
> }
> }
>
> and calls seems connecting but signaling is completely broken
>
> i understand that i'm doing something wrong, but can't get what is wrong
can you explain what is broken and what you would expect to happen?

What I can tell is that you drop all the requests apart INVITEs coming 
from the two ip addresses which are the only ones forwarded.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list