Skip to Content
Asterisk: The Future of Telephony
book

Asterisk: The Future of Telephony

by Jim Van Meggelen, Jared Smith, Leif Madsen
September 2005
Intermediate to advanced
408 pages
16h 20m
English
O'Reilly Media, Inc.
Content preview from Asterisk: The Future of Telephony

Name

Directory() — Provides a dialable directory of extensions

Synopsis

    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 argument 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. Currently, the only option that can be specified in the options argument is f, which causes the directory to match based on the first name in voicemail.conf instead of the last 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.

Returns 0 unless the user hangs up.

               exten => *,1,Directory(default,incoming)
    exten => #,1,Directory(default,incoming,f)

See Also

voicemail.conf

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, 2nd Edition

Asterisk: The Future of Telephony, 2nd Edition

Jim Van Meggelen, Jared Smith, Leif Madsen
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 0596009623Supplemental ContentCatalog PageErrata