[OpenSIPS-Users] mediaproxy relay on none default route interface failed
Dan Pascu
dan at ag-projects.com
Thu Sep 10 16:02:21 CEST 2009
On 10 Sep 2009, at 15:47, Raúl Alexis Betancor Santana wrote:
> On Thursday 10 September 2009 11:56:00 Ghaith ALKAYYEM wrote:
>> Hello,
>>
>> I think it's not possible to use two separate relays on the same
>> server,
>> I tried that a lot then I switched to RTPproxy.
>
> That's not true, you could run as many Realys as you want on the
> same server,
> only have to patch mediaproxy-relay to be able to call it with a
> diferent .cfg as the default one, have diferent listen ports and no
> more.
You don't need to patch anything. Just unpack mediaproxy in as many
different directories as you need, run ./build_inplace and modify each
config.ini in those directories as needed. Then run mediaproxy from
those directories and each of them will use the local config.ini from
its own directory.
Alternatively, if you want to use a system wide installation, you can
copy the binaries from /usr/bin to a number of different directories
and add a config.ini in each directory. Then run those binaries from
those directories instead of /usr/bin/ and each binary will use the
config.ini file in its own directory to overwrite settings from the
global /etc/mediaproxy/config.ini.
Mediaproxy uses 2 configuration files. The global one resides in /etc/
mediaproxy/config.ini. On top of that if a config.ini is present in
the same directory as the binary (media-relay & media-dispatcher) that
one will be used to overwrite the settings from the global one having
priority over it.
--
Dan
More information about the Users
mailing list