Hi,

Two notes:

1) you cannot user b2b and forward function in the same time ; b2b is doing its own "forwarding"....

2) if you do forward, you should take care about Record-Routing and Loose-Routing mechanisms (simply doing forward for all requests - initial or sequential - does not do the job) - check the "SIP Routing" webinar:
    http://www.opensips.org/Documentation/Webinars#toc12
Also, check the mhomed param:
http://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc69

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.08.2014 08:15, Eugene Prokopiev wrote:
Hi,

My network scheme looks like:

10.10.2.2 ---> (10.10.2.1|10.10.1.1) ---> 10.10.1.2

I have two separate networks (10.10.1.0/24 and 10.10.2.0/24) without
routing between them. I have opensips-1.11.2 installed and with
interfaces in each network. I need to forward all requests from
10.10.2.2 to 10.10.1.2 and foward responses back.

My initial config was:

mhomed=yes
auto_aliases=no
disable_tcp=yes

mpath="/usr/lib64/opensips/modules/"

loadmodule "mi_fifo.so"
loadmodule "sl.so"

modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")

route {
   forward("10.10.1.2:5060");
}

All requests was forwarded fine, but I see unchanged ip address from
network 10.10.2.0/24 in all requests headers forwarded to 10.10.1.2. I
need to see ip address only from network 10.10.1.0/24 in this
requests.

So, I tried to use b2b_init_request:

mhomed=yes
auto_aliases=no
disable_tcp=yes

mpath="/usr/lib64/opensips/modules/"

loadmodule "mi_fifo.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "b2b_entities.so"
loadmodule "b2b_logic.so"

modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")

modparam("b2b_logic", "db_mode", 0)
modparam("b2b_entities", "db_mode", 0)

route {
   b2b_init_request("top hiding");
   forward("10.10.1.2:5060");
}

There are no significant improvements with this configuration. I see
my original INVITE and many additional INVITE requests with UserAgent
: OpenSIPS, forwarded to 10.10.1.2, but headers contains ip addresses
from network 10.10.2.0/24.

What is wrong in my configuration? How to make the real topology hiding?



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to