Mediaproxy Web monitoring interface and multi-relay scenario Configuration

Source: Internet
Author: User

In the production environment there is only one mediaproxy as a relay server in the case of rare, unless the user is very small, otherwise a single relay difficult to support a large number of relay services. Here we configure the single dispatcher multi-relay scenario, and configure the official web monitoring interface.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/EC/wKiom1WLo_eTUMrfAAIwAaaj6Q8921.jpg "title=" Mediaproxy-diagram.png "alt=" Wkiom1wlo_etumrfaaiwaaaj6q8921.jpg "/>

We now implement the red part of the figure, Mediaproxy has two components: dispatcher and relay. So we need to start 2 programs Media-dispatcher and Media-relay when we stand alone. Now you need to implement the following sections:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/E9/wKioL1WLquajCdoPAADDUeKpCTk543.jpg "title=" Mediaproxy. PNG "alt=" Wkiol1wlquajcdopaadduekpctk543.jpg "/>

For mediaproxy installation, see:

http://fengwan.blog.51cto.com/508652/1652807 (CentOS 5)

http://fengwan.blog.51cto.com/508652/1655392 (CentOS 6)


1. In accordance with the above method of installation we have installed the Mediaproxy, the following is the 192.168.1.245 mediaproxy configuration file/etc/mediaproxy/config.ini

[relay]dispatchers = 192.168.1.245passport = Nonerelay_ip = 192.168.1.245port_range = 50000:60000log_level = Debugon_ Hold_timeout = 1800[dispatcher]socket_path = Dispatcher.socklisten = 192.168.1.245listen_management = 192.168.1.245management_use_tls = Nopassport = Nonemanagement_passport = Nonelog_level = DEBUG[TLS][Database][Radius][ Opensips]socket_path =/var/run/opensips/socketmax_connections = 1000

Now start Media-dispatcher and Media-relay on the 192.168.1.245 server. This time Mediaproxy will be able to run normally, can also be forwarded normally.


2. Now we want to add 192.168.1.246 this relay server, but also according to the installation method installed, but the configuration file and startup is somewhat different.

[Relay]dispatchers = 192.168.1.245 #这里指向dispatcher服务器地址passport = nonerelay_ip = 192.168.1.246 #这里为本机的地址port_rang E = 50000:60000log_level = Debugon_hold_timeout = 1800

Execute the Media-relay on the 192.168.1.246.



Configure Mediaproxy's own web monitoring interface:

1. Installation of the basic httpd and PHP environment

Yum-y Install httpd php php-gd php-common php-mysql php-mbstring php-devel

2. Configure PHP (Mediaproxy requires PHP support parsing phtml and Short_open_tag = ON)

Echo ' AddType application/x-httpd-php. phtml ' >>/etc/httpd/conf/httpd.confsed-i ' S/short_open_tag = Off/short_ Open_tag = On/g '/etc/php.ini

3. Copy the official monitoring program to/var/www/html (the root directory of the website is/var/www/html)

Go to the Mediaproxy source directory, copy the Web directory to/var/www/html

CP-RF mediaproxy-2.4.4/web//var/www/html/

4. Configure configuration files and dispatcher for the monitoring program

Cd/var/www/html/web

CP Config/media_sessions.conf.sample config/media_sessions.conf
Sed-i ' s/undefined/192.168.1.245/g ' config/media_sessions.conf

5. Start the Web service

Service httpd Restart


6. You can view the following:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/EC/wKiom1WLsT_Aw-61AAH6KPzUqss231.jpg "title=" QQ picture 20150625154345.jpg "alt=" Wkiom1wlst_aw-61aah6kpzuqss231.jpg "/>



Summary: Mediaproxy extension can be said to be quite easy and convenient, can be flexible at any time to increase and reduce their own forwarding server, and do not need to do anything in dispatcher.



This article is from "Maple Night" blog, please be sure to keep this source http://fengwan.blog.51cto.com/508652/1665599

Mediaproxy Web monitoring interface and multi-relay scenario Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.