Page 417 - Asterisk™: The Future of Telephony
P. 417
will write the recorded files. If not specified, it defaults to the dictate subdirectory of
the Asterisk spool directory (as defined in asterisk.conf).
If the filename parameter is specified, it will be used when the file is written. If not
specified, Asterisk will prompt the caller for a numeric filename for the file.
Asterisk writes the files in raw, headerless, signed-linear format. If you’d
like to convert the file to another format, you can use an outside utility
such as sox, or use the file convert command from the Asterisk com-
mand-line interface.
The Dictate() application has two main modes: recording mode and playback mode.
The caller can press the 1 key to switch between these modes. In both modes, the 0 key
can be used to get help. The * key is used to pause or unpause the recording or playback.
The # key allows the caller to choose a new filename.
In recording mode, the 8 key can be used to erase the entire recording and start over.
In playback mode, the 7 key rewinds the recording a few frames, and the 8 key forwards
the recording a few frames. The 2 key is used to toggle the playback speed (either 1x,
2x, 3x, or 4x).
; begin dictating, and save the files in the /tmp/dictate directory
exten => 123,1,Dictate(/tmp/dictate)
See Also
Playback(), Background(), ControlPlayback(),
Directory() Provides a dialable directory of extensions
Directory(vm-context[,dial-context[,options]])
Presents users with a directory of extensions from which they may select by name. The
list of names and extensions is discovered from voicemail.conf. The vm-context argu-
ment is required; it specifies the context of voicemail.conf to use.
The dial-context argument is the context to use for dialing the users, and it defaults
to vm-context if unspecified. If the options argument is set to f, Asterisk will find a
directory match based on the first name in voicemail.conf instead of the last name. If
the e option is specified, Asterisk will read the extension of the directory match as well
as the person’s name.
If the user enters 0 (zero) and there exists an extension o (the lowercase letter o) in the
current context, the call control will go to that extension. Entering * will exit similarly,
but to the a extension, much like Voicemail()’s behavior.
Directory() | 389