Directory( )


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 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 (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 unless the user hangs up.

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

See Also

voicemail.conf



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net