Skip to Content
Asterisk: The Future of Telephony, 2nd Edition
book

Asterisk: The Future of Telephony, 2nd Edition

by Jim Van Meggelen, Jared Smith, Leif Madsen
August 2007
Intermediate to advanced
608 pages
20h 33m
English
O'Reilly Media, Inc.
Content preview from Asterisk: The Future of Telephony, 2nd Edition

Name

MixMonitor() — Records a channel in the background, mixing both directions synchronously

Synopsis

MixMonitor(filename.ext,options,command)

Records the audio on the current channel to the specified file. If the filename is an absolute path, MixMonitor() uses that path; otherwise it creates the file in the configured monitoring directory from asterisk.conf.

If command is specified, it will be run when recording ends, either by hangup or by calling StopMixMonitor().

The options parameter can contain zero or more of the following options:

a

Append to the file, instead of overwriting it.

b

Only save audio when the channel is bridged.

Note

This does not include conferences or sounds played to each bridged party.

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 both the heard and the spoken volumes by a factor of x (range -4 to 4).

; Record channel
exten => 123,1,MixMonitor(/var/lib/asterisk/sounds/123.wav)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Asterisk: The Future of Telephony

Asterisk: The Future of Telephony

Jim Van Meggelen, Jared Smith, Leif Madsen
Switching to VoIP

Switching to VoIP

Theodore Wallingford

Publisher Resources

ISBN: 9780596510480Errata Page