Перейти к содержанию

PJSIP — Автогенерация эндпоинтов

Файл: /etc/asterisk/pjsip_generated.conf

Автогенерируется из БД.

Контекстов/секций: 507

Список контекстов: - [666002] - [666002] - [666002] - [666003] - [666003] - [666003] - [666001] - [666001] - [666001] - [666004] - [666004] - [666004] - [666005] - [666005] - [666005] - [996020] - [996020] - [996020] - [996025] - [996025] - ... ещё 487 контекстов

Пример конфигурации:

[666002]
type=endpoint
callerid="Бухгалтерия" <002>
context=666-context
disallow=all
allow=alaw,ulaw
auth=666002
aors=666002
transport=transport-udp
direct_media=no
force_rport=yes
rewrite_contact=yes
rtp_symmetric=yes
language=ru
dtmf_mode=auto
[666002]
type=auth
auth_type=userpass
username=666002
password=JJrp1Q8Lgu43QTpj2hJt
[666002]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=15
remove_unavailable=yes
[666003]
type=endpoint
callerid="Толкачев Владимир" <003>
context=666-context
...