В этом разделе описываются команды для управления конфигурацией интерфейсов.

Для администратора системы команды выполняются в разделе /cluster/storage/<CLUSTER>/iface/.

<DOMAIN> - имя виртуальной АТС.
<CLUSTER> - имя кластера с ролью storage.

Описание параметров (свойств) SIP-интерфейса приведено в разделе Приложение Б. Набор параметров интерфейса SIP или во вкладке ниже.

 Нажмите здесь для раскрытия описания параметров SIP-интерфейса

Приложение Б. Набор параметров интерфейса SIP

Error: Page Not Found

Описание параметров (свойств) SIP-интерфейса приведено в разделе Приложении В. Набор параметров интерфейса MEGACO или во вкладке ниже.

 Нажмите здесь для раскрытия описания параметров интерфейса MEGACO

Приложение В. Набор параметров интерфейса MEGACO

Error: Page Not Found

info

Команда для вывода на экран информации о свойствах (свойстве) определенного интерфейса.

Путь команды:

/cluster/storage/<CLUSTER>/iface/info

Синтаксис:

info <DOMAIN> <OWNER> <GROUP> <IFACE RANGE> [<PROPERTY>]

Параметры:

<OWNER> - название владельца (символ "*" используется для указания всех владельцев);
<GROUP> - название группы (символ "*" используется для указания всех групп);
<IFACE RANGE> - название интерфейса;
<PROPERTY> - свойство (опциональный параметр, если параметр не задан, то будет отображена информация о всех свойствах данного интерфейса).

Примеры:

admin@mycelium1@ecss1:/$ cluster/storage/ds1/iface/info biysk.local sip1 loc.gr 240101@biysk.local 
┌──────────────────┬─┬──────────────────┬────────────────────────────────────────────────────────────────────────────────┐
│    Interface     │W│     Property     │                                     Value                                      │
├──────────────────┼─┼──────────────────┼────────────────────────────────────────────────────────────────────────────────┤
│240101@biysk.local│i│account           │{"...50-52-48-49-48-49","...101-120-116-95-49-48-49-95-83-83-87-45-51"}         │
│                  │i│adapter\version   │"3.14.0.152"                                                                    │
│                  │i│alias             │"alias-as-user"                                                                 │
│                  │i│aliases_list      │["240101"]                                                                      │
│                  │i│auth_qop          │true                                                                            │
│                  │i│declaration       │{"admin",{1544,889009,619218}}                                                  │
│                  │D│dtmf_source       │'rfc+info'                                                                      │
│                  │i│gate              │{gate_amqp,<<"acp.adapter.init.ex">>,<<"acp.sip.sip1.ipset1.init.rk">>}         │
│                  │i│group             │"loc.gr"                                                                        │
│                  │i│id                │<<"708c5e7b5dfb8675">>                                                          │
│                  │i│isActive          │true                                                                            │
│                  │i│login             │login_as_number                                                                 │
│                  │i│media-profile     │{media_profile,"biysk.local","default",                                         │
│                  │ │                  │    "Default media profile for current domain.",user,                           │
│                  │ │                  │    [{media_profile_codecs,'<other>',                                           │
│                  │ │                  │         [{media_profile_codec,<<"<other>">>,<<"*">>,true,[]}],                 │
│                  │ │                  │         [{[offroad],true}]},                                                   │
│                  │ │                  │     {media_profile_codecs,audio,                                               │
│                  │ │                  │         [{media_profile_codec,<<"G722">>,<<"*">>,true,[]},                     │
│                  │ │                  │          {media_profile_codec,<<"PCMA">>,<<"*">>,true,[]},                     │
│                  │ │                  │          {media_profile_codec,<<"PCMU">>,<<"*">>,true,[]},                     │
│                  │ │                  │          {media_profile_codec,<<"G729">>,<<"*">>,true,[]},                     │
│                  │ │                  │          {media_profile_codec,<<"telephone-event">>,<<"*">>,true,[]}],         │
│                  │ │                  │         [{[offroad],true}]}],                                                  │
│                  │ │                  │    []}                                                                         │
│                  │i│my_from           │none                                                                            │
│                  │i│owner             │"sip1"                                                                          │
│                  │i│password          │"xxxxxxxxxx"                                                                 │
│                  │i│profile           │undefined                                                                       │
│                  │i│routing.context   │ctx_from_local                                                                  │
│                  │i│sip_domain        │"biysk.local"                                                                   │
│                  │D│site              │<<"local">>                                                                     │
│                  │i│stat\cps_max\in   │0                                                                               │
│                  │i│stat\cps_max\out  │1                                                                               │
│                  │i│stat\cps_max\total│1                                                                               │
│                  │i│stat\in           │0                                                                               │
│                  │i│stat\out          │7                                                                               │
│                  │i│stat\rejected\in  │0                                                                               │
│                  │i│stat\rejected\out │0                                                                               │
│                  │i│subtype           │user                                                                            │
│                  │i│support-encoding  │utf8                                                                            │
│                  │D│terminal_type     │smart                                                                           │
│                  │i│type              │sip                                                                             │
│                  │i│user_agent        │"Yealink SIP-T28P 2.73.14.3"                                                    │
│                  │i│user_name         │"240101"                                                                        │
│                  │D│zone              │<<"default">>                                                                   │
└──────────────────┴─┴──────────────────┴────────────────────────────────────────────────────────────────────────────────┘

Legend:
W: Where property is set:
   D: This is default property
   G: This is global property
   g: This is group property
   O: This is owner property
   B: This is group+owner property
   i: This is interface property
   ?: Unknown property level
Note: * char in W column means "Can't read iface resource info". Error reason in value column in this case

[exec at: 31.03.2019 10:47:59, exec time: 83ms, nodes: ds1@ecss1]


admin@[mycelium1@ecss1]:/$ cluster/storage/ds1/iface/info biysk.local sip1 loc.gr 24046{2-9}@biysk.local user_agent
┌──────────────────┬─┬──────────┬─────────────────────────────────────────────────────┐
│    Interface     │W│ Property │                        Value                        │
├──────────────────┼─┼──────────┼─────────────────────────────────────────────────────┤
│240469@biysk.local│i│user_agent│"Brcm-Callctrl/v1.10.3 M5T SIP Stack/4.1.2.2"        │
│240467@biysk.local│i│user_agent│"VP-12P/1.4.0.93 SN/VI4B000942 sofia-sip/1.12.10"    │
│240466@biysk.local│i│user_agent│"VP-12/1.2.1.454 SN/VI51000844 sofia-sip/1.12.10"    │
│240464@biysk.local│i│user_agent│"TAU-2M.IP/2.0.0.229 SN/VI39005419 sofia-sip/1.12.10"│
│240462@biysk.local│i│user_agent│"Brcm-Callctrl/v1.10.3 M5T SIP Stack/4.1.2.2"        │
└──────────────────┴─┴──────────┴─────────────────────────────────────────────────────┘

Legend:
W: Where property is set:
   D: This is default property
   G: This is global property
   g: This is group property
   O: This is owner property
   B: This is group+owner property
   i: This is interface property
   ?: Unknown property level
Note: * char in W column means "Can't read iface resource info". Error reason in value column in this case

[exec at: 05.02.2019 15:36:26, exec time: 75ms, nodes: ds1@ecss1]

group-info

Команда для просмотра информации о групповых свойствах интерфейсов.

Путь команды:

/cluster/storage/<CLUSTER>/iface/group-info

Синтаксис:

group-info <DOMAIN>[-o <OWNER>] [-g <GROUP>]

Параметры:

-о - флаг, который указывает на свойства уровня владельца интерфейса;
-g - флаг, который указывает на свойства глобального уровня;
<OWNER> - имя профиля владельца;
<GROUP> - имя профиля группы.

Пример:

admin@[mycelium1@ecss1]:/$ cluster/storage/ds1/iface/group-info biysk.local -g ssw.gr -o sip1 
Domain biysk.local onwer sip1 group ssw.gr iface resoureces properties:
┌─┬────────┬───────────────────────────────────────────────────────────────────────┐
│W│Property│                                 Value                                 │
├─┼────────┼───────────────────────────────────────────────────────────────────────┤
│g│domain  │"biysk.local"                                                          │
│g│gate    │{gate_amqp,<<"acp.adapter.init.ex">>,<<"acp.sip.sip1.ipset1.init.rk">>}│
│g│owner   │"sip1"                                                                 │
└─┴────────┴───────────────────────────────────────────────────────────────────────┘

Legend:
W: Where property is set:
   G: This is global property
   g: This is group property
   O: This is owner group property
   B: This is group+owner property
   ?: Unknown property level
Note: * char in W column means "Can't read iface resource info". Error reason in value column in this case

[exec at: 05.02.2019 15:39:23, exec time: 191ms, nodes: ds1@ecss1

list

Команда для просмотра списка интерфейсов ECSS-10 для определенного профиля группы, владельца.

Путь команды:

/cluster/storage/<CLUSTER>/iface/list

Синтаксис:

list <DOMAIN> [<OWNER> [<GROUP>]] [<PROPERTY> <OPERATOR> <VALUE>]]

Параметры:

  • <OWNER> - название владельца (символ "*" используется для указания всех владельцев);
  • <GROUP> - название группы (символ "*" используется для указания всех групп).
  • <PROPERTY> - свойство интерфейса, возможные значения приведены в таблице 1.;
  • <OPERATOR> - оператор сравнения : '==' | '<>' | '>' | '<' | '>=' | '=<' | '~'; 
    • '==' - равно;
    • '<>' - не равно;
    • '>'  - больше;
    • '>=' - больше или равно;
    • '<'  - меньше;
    • '=<' - меньше или равно;
    • '~'  - содержит.
  • <VALUE>  - значение свойства.

Пример:

admin@[mycelium1@ecss1]:/$ cluster/storage/ds1/iface/list biysk.local sip1 loc.gr terminal_type ~ basic
┌──────┬────────────────────────┬────────────────────────────────┬────────────────┬────────────────┬──────┐
│ Type │         Iface          │              Name              │     Owner      │     Group      │Active│
├──────┼────────────────────────┼────────────────────────────────┼────────────────┼────────────────┼──────┤
│sip   │708c5c2121a4c0a3        │240474@biysk.local              │sip1            │loc.gr          │true  │
│sip   │708c5bf76388b92e        │240464@biysk.local              │sip1            │loc.gr          │true  │
│sip   │708c5beda8cd39d0        │240462@biysk.local              │sip1            │loc.gr          │true  │
│sip   │708c5bbb3f198bc9        │240001@biysk.local              │sip1            │loc.gr          │false │
└──────┴────────────────────────┴────────────────────────────────┴────────────────┴────────────────┴──────┘
Ifaces for domain: "biysk.local"
Ifaces in table: 4

[exec at: 05.02.2019 15:12:35, exec time: 91ms, nodes: ds1@ecss1]