Directory([vm-context,dial-context,options])
Full arguments reference
vm-context- This is the context within voicemail.conf to use for the Directory. If not specified andsearchcontexts=noinvoicemail.conf, thendefaultwill be assumed.dial-context- This is the dialplan context to use when looking for an extension that the user has selected, or when jumping to theooraextension. If not specified, the current context will be used.optionse- In addition to the name, also read the extension number to the caller before presenting dialing options.f- Allow the caller to enter the first name of a user in the directory instead of using the last name. If specified, the optional number argument will be used for the number of characters the user should enter.nrequired
l- Allow the caller to enter the last name of a user in the directory. This is the default. If specified, the optional number argument will be used for the number of characters the user should enter.nrequired
b- Allow the caller to enter either the first or the last name of a user in the directory. If specified, the optional number argument will be used for the number of characters the user should enter.nrequired
a- Allow the caller to additionally enter an alias for a user in the directory. This option must be specified in addition to thef,l, orboption.m- Instead of reading each name sequentially and asking for confirmation, create a menu of up to 8 names.n- Read digits even if the channel is not answered.p- Pause for n milliseconds after the digits are typed. This is helpful for people with cellphones, who are not holding the receiver to their ear while entering DTMF.nrequired
c- Load the specified config file instead of voicemail.conffilenamerequired
s- Skip calling the extension, instead set it in the DIRECTORY_EXTEN channel variable.d- Enable ADSI support for screen phone searching and retrieval of directory results. Additionally, the channel must be ADSI-enabled and you must have an ADSI-compatible (Type III) CPE for this to work.
This application will present the calling channel with a directory of extensions from which they can search by name. The list of names and corresponding extensions is retrieved from the voicemail configuration file, voicemail.conf, or from the specified filename.
This application will immediately exit if one of the following DTMF digits are received and the extension to jump to exists:
0 - Jump to the 'o' extension, if it exists.
* - Jump to the 'a' extension, if it exists.
This application will set the following channel variables before completion:
- DIRECTORY_RESULT - Reason Directory application exited.
OPERATOR- User requested operatorASSISTANT- User requested assistantTIMEOUT- User allowed DTMF wait duration to pass without sending DTMFHANGUP- The channel hung up before the application finishedSELECTED- User selected a user to call from the directoryUSEREXIT- User exited with '#' during selectionFAILED- The application failed
- DIRECTORY_EXTEN - If the skip calling option is set this will be set to the selected extension provided one is selected.
vm-context- This is the context within voicemail.conf to use for the Directory. If not specified andsearchcontexts=noinvoicemail.conf, thendefaultwill be assumed.dial-context- This is the dialplan context to use when looking for an extension that the user has selected, or when jumping to theooraextension. If not specified, the current context will be used.optionse- In addition to the name, also read the extension number to the caller before presenting dialing options.f- Allow the caller to enter the first name of a user in the directory instead of using the last name. If specified, the optional number argument will be used for the number of characters the user should enter.nrequired
l- Allow the caller to enter the last name of a user in the directory. This is the default. If specified, the optional number argument will be used for the number of characters the user should enter.nrequired
b- Allow the caller to enter either the first or the last name of a user in the directory. If specified, the optional number argument will be used for the number of characters the user should enter.nrequired
a- Allow the caller to additionally enter an alias for a user in the directory. This option must be specified in addition to thef,l, orboption.m- Instead of reading each name sequentially and asking for confirmation, create a menu of up to 8 names.n- Read digits even if the channel is not answered.p- Pause for n milliseconds after the digits are typed. This is helpful for people with cellphones, who are not holding the receiver to their ear while entering DTMF.nrequired
c- Load the specified config file instead of voicemail.conffilenamerequired
s- Skip calling the extension, instead set it in the DIRECTORY_EXTEN channel variable.d- Enable ADSI support for screen phone searching and retrieval of directory results. Additionally, the channel must be ADSI-enabled and you must have an ADSI-compatible (Type III) CPE for this to work.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.