ВидеоКонф(ВКС)  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Вопрос по записи приветствия с телефона Record

Проблемы и их решения Asterisk как такового

Модераторы: april22, Zavr2008

Вопрос по записи приветствия с телефона Record

Сообщение vk.help » 02 окт 2021, 19:16

Всем здравствуйте. Есть необходимость использовать команду Record
Перепробовал разные варианты и примеры с разных источников выдает:
pbx.c:2927 pbx_extension_helper: No application 'Record' for extension
Создал бэкап рабочего Sip и Extensions оставил только самый простой пример для проверки
Sip.conf
[general]
context=default
language=ru
allowguest=no
allowoverlap=no
udpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
tcpenable=no
tcpbindaddr=0.0.0.0
limitonpeers=yes

[home](!)
type=friend
context=default
secret=1234
nat=no
host=dynamic
nat=no
qualify=yes
canreinvite=no
callgroup=1
pickupgroup=1
call-limit=1
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=g723
allow=g722

[100](home)
callerid=REC

Extensions.conf
[general]
static=yes
writeprotect=no
[globals]
[default]

exten => 100,1,Record(test.gsm,15,15)
exten => 100,n,Playback(${RECORDED_FILE})

Версия Asterisk 17.9.4 Как заставить Record работать?
Спасибо!
vk.help
 
Сообщений: 1
Зарегистрирован: 02 окт 2021, 19:01

Re: Вопрос по записи приветствия с телефона Record

Сообщение Garnish » 04 окт 2021, 09:23

В консоли написать "module load app_record.so"
Garnish
 
Сообщений: 43
Зарегистрирован: 09 мар 2016, 12:07

Re: Вопрос по записи приветствия с телефона Record

Сообщение ded » 04 окт 2021, 19:17

Вам нужно не Record а Monitor
*CLI> core show application Monitor

-= Info about application 'Monitor' =-

[Synopsis]
Monitor a channel.

[Description]
Used to start monitoring a channel. The channel's input and output voice
packets are logged to files until the channel hangs up or monitoring is stopped
by the StopMonitor application.
By default, files are stored to "/var/spool/asterisk/monitor/". Returns '-1' if
monitor files can't be opened or if the channel is already monitored, otherwise
'0'.

[Syntax]
Monitor([file_format[:urlbase]][,fname_base[,options]])

[Arguments]
file_format
optional, if not set, defaults to 'wav'
fname_base
if set, changes the filename used to the one specified.
options
m: when the recording ends mix the two leg files into one and delete the
two leg files. If the variable ${MONITOR_EXEC} is set, the application
referenced in it will be executed instead of soxmix/sox and the raw leg
files will NOT be deleted automatically. soxmix/sox or ${MONITOR_EXEC} is
handed 3 arguments, the two leg files and a target mixed file name which is
the same as the leg file names only without the in/out designator.
If ${MONITOR_EXEC_ARGS} is set, the contents will be passed on as
additional arguments to ${MONITOR_EXEC}. Both ${MONITOR_EXEC} and the Mix
flag can be set from the administrator interface.

b: Don't begin recording unless a call is bridged to another channel.

B([interval]): Play a periodic beep while this call is being recorded.
interval - Interval, in seconds. Default is 15.

i: Skip recording of input stream (disables 'm' option).

o: Skip recording of output stream (disables 'm' option).
ded
 
Сообщений: 15821
Зарегистрирован: 26 авг 2010, 19:00


Вернуться в Конфигурация и настройка Asterisk

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 28

© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH