Asterisk cmd Monitor

MixMonitor

 

This application is similar to the Monitor application

* it's designed to record 1 audio mix them natively as the call is in progress
   to avoid the need to spawn external processes which lead to harmful cpu usage spikes.

* a cli interface makes it possible to start and stop the monitoring at will from a manager session

* 如果沒有指定 full path, Default 錄音保存在 "/var/spool/asterisk/monitor"

Usage

MixMonitor(<file>.<ext>[|<options>[|<command>]])

options

b - Only save audio to the file while the channel is bridged.

Setting

[record-all]
; start record
exten => _5XX,n,MixMonitor(${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}.wav, b)

; call to EXTEN
exten => _5XX,n,Dial(SIP/${EXTEN},30)

; end
; no effect if the channel is not currently being monitored
exten => _5XX,n,StopMixMonitor()
exten => _5XX,n,Hangup()

 


Congestion

Indicate congestion and wait for hangup

Example

exten => s,1,Answer ; can't Playtones unless we answer first
exten => s,n,Playtones(congestion) ; send the audio sequence that humans understand means "congestion"
exten => s,n,Congestion(10) ; signal the other end of congestion. Wait for hangup.
exten => s,n,HangUp

 


Monitor

Record a telephone conversation to a sound file

Monitor(ext,basename)

Default: /var/spool/asterisk/monitor
Default: wav

* input and output voice packets are saved to separate sound files.

 


 

Creative Commons license icon Creative Commons license icon