[OpenSIPS-Users] Openser running between 2 networks

Hung Nguyen hungbk546 at gmail.com
Wed Sep 24 03:50:26 CEST 2008


Hi Bruno Machodo

1. With openser, you must add line mhomed = 1 to openser.cfg ==> it
will run on bridge mode
2. With rtpproxy you must add flag "EI" ==> for calls from public
network to private network and "IE" with calls from private network to
public network.
force_rtp_proxy("EI");

nguyen,

On 9/24/08, Bruno Machado <bsmufu at yahoo.com.br> wrote:
> Hi fellows.
>
> I've been looking for a solution to solve this problem. The Openser is
> running
> over 2 IPs: private and public. I also have 2 ATAs: one of them has a
> private IP
> and the second has a public. When the session is established, ATA A will
> send
> RTP to the Openser private interface and ATA B will send to its public IP.
> RTPProxy will
> route the "private RTP packets" to "public network" and vice-versa
>
> private                                       public
> ATA A                Openser                ATA B
> ------- INVITE -------> private IP
>                      public IP  ------- INVITE ----->
>
>
> I've implemented a script but it doesn't work like the way described above.
> When Openser receives the INVITE through its private IP, it forwards the
> message to ATA B using the its private IP.
> I saw that RTPProxy has a bridge mode and the Nathelper's function has
> some parameters to handle with it. The SDP's 'c header' is changed properly
> when
> I use them, but the source IP (when Openser sends it to the public ATA)
> remains private (I'm not thinking that 'force_rtp_proxy' will set the
> network layer). In one hand, I already
> have the SDP set properly; but the source address still belonging to the
> private
> network. So, I just have 50% done. I tried to add an argument in "t_relay",
> like "udp:XXX.YYY.WWW.ZZZ:5060", without success.
> I don't know if what I want is possible: this behavior belongs to a "IP
> router", interconnecting 2 different networks. I didn't find anything
> similar to this (maybe I didn't search enough (and I believe that it is the
> only clever thing here until now...)).
> So... Am I getting crazy or it is clearly possible? (perhaps both..)
>
> Regards
> Bruno Machado
>
>
>
>       Novos endereços, o Yahoo! que você conhece. Crie um email novo com a
> sua cara @ymail.com ou @rocketmail.com.
> http://br.new.mail.yahoo.com/addresses



More information about the Users mailing list