Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

ответил 2014-02-17 09:53:41 +0400

meral Gravatar meral flag of Ukraine

http://pro-sip.net/

MixMonitor имеет специальный параметр - скрипт вызываемый после окончания записи.

 -= Info about application 'MixMonitor' =- 

[Synopsis]
Record a call and mix the audio during the recording

[Description]
  MixMonitor(<file>.<ext>[,<options>[,<command>]]):
Records the audio on the current channel to the specified file.
If the filename is an absolute path, uses that path, otherwise
creates the file in the configured monitoring directory from
asterisk.conf.  Use of StopMixMonitor is required to guarantee
the audio file is available for processing during dialplan execution.

Valid options:
 a      - Append to the file instead of overwriting it.
 b      - Only save audio to the file while the channel is bridged.
          Note: Does not include conferences or sounds played to each bridged
                party.
          Note: If you utilize this option inside a Local channel, you must
                 make sure the Local channel is not optimized away. To do this,
                 be sure to call your Local channel with the '/n' option.
                 For example: Dial(Local/start@mycontext/n)
 v(<x>) - Adjust the heard volume by a factor of <x> (range -4 to 4)
 V(<x>) - Adjust the spoken volume by a factor of <x> (range -4 to 4)
 W(<x>) - Adjust the both heard and spoken volumes by a factor of <x>
         (range -4 to 4)

<command> will be executed when the recording is over
Any strings matching ^{X} will be unescaped to ${X}.
All variables will be evaluated at the time MixMonitor is called.
The variable MIXMONITOR_FILENAME will contain the filename used to record.

server2*CLI>

MixMonitor имеет специальный параметр - скрипт вызываемый после окончания записи.

 -= Info about application 'MixMonitor' =- 

[Synopsis]
Record a call and mix the audio during the recording

[Description]
  MixMonitor(<file>.<ext>[,<options>[,<command>]]):
Records the audio on the current channel to the specified file.
If the filename is an absolute path, uses that path, otherwise
creates the file in the configured monitoring directory from
asterisk.conf.  Use of StopMixMonitor is required to guarantee
the audio file is available for processing during dialplan execution.

Valid options:
 a      - Append to the file instead of overwriting it.
 b      - Only save audio to the file while the channel is bridged.
          Note: Does not include conferences or sounds played to each bridged
                party.
          Note: If you utilize this option inside a Local channel, you must
                 make sure the Local channel is not optimized away. To do this,
                 be sure to call your Local channel with the '/n' option.
                 For example: Dial(Local/start@mycontext/n)
 v(<x>) - Adjust the heard volume by a factor of <x> (range -4 to 4)
 V(<x>) - Adjust the spoken volume by a factor of <x> (range -4 to 4)
 W(<x>) - Adjust the both heard and spoken volumes by a factor of <x>
         (range -4 to 4)

<command> will be executed when the recording is over
Any strings matching ^{X} will be unescaped to ${X}.
All variables will be evaluated at the time MixMonitor is called.
The variable MIXMONITOR_FILENAME will contain the filename used to record.

server2*CLI>

вот тут например примеры как такой скрипт может выглядеть. в скрипт желательно сильно cpu-intensive задач не засовывать, лучше делать отметки и выполнять в фоне другим скриптом.

http://www.voip-info.org/wiki/view/Monitor+stereo-example

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.