Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Media server resources are managed using the control channel mechanism (RFC 6230 Media Control Channel Framework, RFC 6231 IVR Control Package, RFC 6505 Mixer Control Package).

The functionality performed on the media server

  1. After installation, the media server starts with the initial settings set at the installation stage.
  2. During launch, a process starts on the media server that determines the list of network interfaces available in the system. Based on this list, a list of UA is generated for registration on the SIP server.
  3. According to the well-known list of UAs, these UAs are registered on the SIP server. SIP REGISTER messages are sent for each UA over the service VLAN-X.
  4. Periodic monitoring of interfaces availability. When changing the list of available interfaces, a command is sent to register the UA for a new interface, or to cancel registration if the interface is disabled or disappeared. It is necessary to make attempts to re-register after a long interval for UAs whose registration has not been confirmed by the SIP server.
  5. On the service interface, the media server opens the listening port 5700, through which a request is received from ECSS-10 to determine the control channel (control_channel) of media management via the mediactrl protocol.

An algorithm for generating UA parameters for registration on ECSS-10

  1. A separate SIP UA is formed for each network interface.
  2. One of the network interfaces is marked as a service interface (at the configuration stage). SIP traffic is transmitted through it. The UA for this interface is the only one that has a bind of signaling and media done on the same network interface. The UAs of the other interfaces use the transport of the service interface for SIP, and the binding of the receiver/transmitter of the media traffic is carried out to the network interface announced by the SIP UA.
  3. Information about the announced network interface is transmitted to the REGISTER via the From field. Network interface parameters are passed through the following fields:
    1. P-Eltex-MSR-Iface-Name;
    2. P-Eltex-MSR-Iface-Addr;
    3. P-Eltex-MSR-Acc-Id;
    4. P-Eltex-MSR-CC-Addr (service only);
    5. P-Eltex-MSR-CC-Port (service only);
    6. P-Eltex-MSR-Name.
  4. Cc-status, Cc-id & Cc-address (Control channel status, Control channel id & Control channel address) are generated only for the service interface;
  5. URI UA is formed according to the following format: {interface-name};{msr-contact-id}@{MSR-name}, where:
    • interface-name — name of the announced interface;
    • msr-contact-id — dynamic contact ID on MSR;
    • MSR-name — name of the media server (hostname or name specified during the installation).
  6. IFace (the announced interface) has the form: interface-name(MEDIA-IP-Address), where:
    • interface-name — name of the announced interface;
    • MEDIA-IP-Address — IP address of the announced interface to which the media resource is linked.

ECSS-10 functionality

  1. To register media servers, a separate service registrar is allocated, which is located on the core of the system (Core). The registrar works in the service VLAN-X (separate port, dedicated interface).
  2. Signal traffic from media servers is processed by a SIP server, which is embedded to the core and processed in the service VLAN-X.
  3. Registrar functionality:
    1. receiving registration requests from media servers service subscribers;
    2. authentication of the UA that sent the registration request (by the local table of subscribers);
    3. authorization of the UA that sent the registration request (according to the local restrictions table);
    4. installation and support of the specified settings of the registration expiration period;
    5. informing the SIP server about the appearance of new registrations, about the cancellation of registration of the UA (at the initiative of the UA), about the refusal of registration renewal by the UA, about the cancellation of registration at the initiative of the SIP server (at the command of the management system);
    6. receiving correct registration requests (correct RURI and authentication). Traffic maintenance on a registered resource begins if it is fully configured and not administratively blocked;
    7. transmission of the notification to the control channel establishment subsystem (control_channel) after successful registration of a new media server (service UA — msr-root). The notification specifies the SIP URI of the service UA of the media server;
    8. transmission of the notification to the subsystem for establishing the control channel (control_channel) in case of service UA registration loss (msr-root) media server, or in case of forced refusal of registration.
  4. SIP server functionality:
    1. installing SIP sessions with the selected account;
    2. support for installed SIP sessions (reINVITE mechanism);
    3. notification of the SIP session collapse facts on the initiative of the MSR (or in case of loss of communication with the MSR).
  5. Control channel management functionality:
    1. installation and support of control channels one to each media server
    2. collapse of the control channel in case of refusal to register the media server;
    3. transmission of mediactrl messages to the needed control channel, which is selected by the channel ID (equal to the service SIP URI of the media server).

Configuring the media server

To configure the media server, follow the steps described in this section.

Installing the media server

The software media server is installed from the ECSS-10 repository, the ecss-media-server package.

...

During the installation, it will be prompted to configure the parameters for the formation of the configuration file. The settings can be refused — the default configuration will be formed. In the future, it can be changed, the description is given below.

Customizing the MSR configuration file 
Якорь
config_MSR
config_MSR

After media server installation, the XML configuration file is located under the path /etc/ecss/ecss-media-server/config.xml.

...

Без форматирования
sudo systemctl restart ecss-media-server.service

Starting the media server
Якорь
mediaserver_start
mediaserver_start

Starting media server as a service (by default)

To start, run:

Без форматирования
sudo systemctl start ecss-media-server.service

...

Без форматирования
sudo systemctl restart ecss-media-server.service

Configuring ECSS-10 to work with the media server

Checking the control connection

The verification is carried out by the CoCon command

...

Без форматирования
ecss_zmq_transport connection status:
┌─────────────┬───────────┬─────────┬────────┐
│Connection ID│   Node    │ Status  │IsActive│
├─────────────┼───────────┼─────────┼────────┤
│c5b9d8       │core1@ecss1│connected│true    │
│             │core1@ecss2│connected│true    │
│22abcd       │core1@ecss1│connected│true    │
│             │core1@ecss2│connected│true    │
└─────────────┴───────────┴─────────┴────────┘

Configuring Registrar server parameters

The Registrar server is designed for registering dynamic media server accounts. By default, the registrar listens to requests on all network interfaces (0.0.0.0). It is recommended to choose a specific one.

...

Без форматирования
admin@ds1@ecss1:/$ system/media/registrar/set private core1@ecss1 listen-ip 192.168.2.21
Private parameter listen-ip set to 192.168.2.21 at node core1@ecss1.

Adding media resources 
Якорь
mediaresource
mediaresource

Media resources are declared by the /system/media/resource/declare command. See description:

...