[OpenSIPS-Users] Mediaproxy 2.4.2 & relay_ip Problem.
Jeff Pyle
jpyle at fidelityvoice.com
Mon Jun 21 14:14:43 CEST 2010
Alan,
I have a configuration similar to yours, except I use an eth1 instead of an lo1.
When setting $avp(s:media_relay) I use the eth0 addresses since these are the addresses the dispatcher knows, as these are the addresses in my case the relays use to connect to the dispatcher. Media still uses only eth1, since that's the IP in config.ini.
I think of it as eth0 being the management IP, and eth1 being the media IP. Everything on the box except media relay uses eth0. So far I haven't had any issues.
- Jeff
On Jun 20, 2010, at 2:41 PM, Alan Frisch wrote:
> I've been experimenting with Mediaproxy 2.4.2 on a couple servers and
> have hit some kind of snafu regarding the IPs that the relays take on
> a machine.
>
> Machine A
> eth0 - 209.x.x.100
> lo1: loopback IP 1 - 64.x.x.120 (MP Dispatcher)
>
> Machine B
> eth0 - 209.x.x.200
> lo1: loopback IP 1 - 64.x.x.220 (MP Relay)
>
> Scenario 1
> -------------
> Dispatcher reports relay coming in from Machine B's eth0
> (209.x.x.200), even though "relay_ip" in config.ini specifies
> 64.x.x.220:
> "debug: Connection from relay at 209.x.x.200"
>
> Now when I try and force the $avp(s:media_relay) in OpenSIPs to
> 64.x.x.220 on Machine B the dispatcher reports:
> "warning: user requested media_relay 64.x.x.220 is not available"
> "debug: Issuing "update" command to relay at 209.x.x.200"
>
> When I telnet into the management port and issue a "summary" command,
> the dispatcher reports back a single IP of 64.x.x.220:
> [{"status": "active", "uptime": 53, "stream_count": {}, "ip":
> "64.x.x.220", "session_count": 0, "version": "2.4.2", "bps_relayed":
> 0}]
>
> And interestingly enough when doing a Wireshark dump, the RTP media is
> coming from 64.x.x.220.
>
> It appears that MP is somehow mixing up the IPs of the relay. Now
> this would not be an issue with a single relay, but when you have
> multiple relays and want to load balance to a particular IP,
> MediaProxy is not finding the desired relay and it seems getting it to
> the machine you want is a roll of the dice.
>
> Hopefully this is something I am doing wrong... so any suggestions are welcome!
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list