1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Asterisk Project : Application_Directory</title>
<link rel="stylesheet" href="styles/site.css" type="text/css" />
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
<tr>
<td valign="top" class="pagebody">
<div class="pageheader">
<span class="pagetitle">
Asterisk Project : Application_Directory
</span>
</div>
<div class="pagesubheading">
This page last changed on Jul 13, 2011 by <font color="#0050B2">wikibot</font>.
</div>
<h1><a name="Application_Directory-Directory%28%29"></a>Directory()</h1>
<h3><a name="Application_Directory-Synopsis"></a>Synopsis</h3>
<p>Provide directory of voicemail extensions.</p>
<h3><a name="Application_Directory-Description"></a>Description</h3>
<p>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, <tt>voicemail.conf</tt>. </p>
<p>This application will immediately exit if one of the following DTMF digits are received and the extension to jump to exists:<br/>
<tt>0</tt> - Jump to the 'o' extension, if it exists. <tt>*</tt> - Jump to the 'a' extension, if it exists.</p>
<h3><a name="Application_Directory-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>Directory([vm-context[,dial-context[,options]]])</pre>
</div></div>
<h5><a name="Application_Directory-Arguments"></a>Arguments</h5>
<ul>
<li><tt>vm-context</tt> - This is the context within voicemail.conf to use for the Directory. If not specified and <tt>searchcontexts=no</tt> in <tt>voicemail.conf</tt>, then <tt>default</tt> will be assumed.</li>
<li><tt>dial-context</tt> - This is the dialplan context to use when looking for an extension that the user has selected, or when jumping to the <tt>o</tt> or <tt>a</tt> extension. If not specified, the current context will be used.</li>
<li><tt>options</tt> - Only one of the Only one of the <em>f</em>, <em>l</em>, or <em>b</em> options may be specified. <b>If more than one is specified</b>, then Directory will act as if <em>b</em> was specified. The number of characters for the user to type defaults to <tt>3</tt>.
<ul>
<li><tt>e</tt> - In addition to the name, also read the extension number to the caller before presenting dialing options.</li>
<li><tt>f</tt> - 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.
<ul>
<li><tt>n</tt></li>
</ul>
</li>
<li><tt>l</tt> - 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.
<ul>
<li><tt>n</tt></li>
</ul>
</li>
<li><tt>b</tt> - 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.
<ul>
<li><tt>n</tt></li>
</ul>
</li>
<li><tt>m</tt> - Instead of reading each name sequentially and asking for confirmation, create a menu of up to 8 names.</li>
<li><tt>n</tt> - Read digits even if the channel is not answered.</li>
<li><tt>p</tt> - 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.
<ul>
<li><tt>n</tt></li>
</ul>
</li>
</ul>
</li>
</ul>
<h3><a name="Application_Directory-SeeAlso"></a>See Also</h3>
<h3><a name="Application_Directory-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-1.8-r327950.</p>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="12" background="https://wiki.asterisk.org/wiki/images/border/border_bottom.gif"><img src="images/border/spacer.gif" width="1" height="1" border="0"/></td>
</tr>
<tr>
<td align="center"><font color="grey">Document generated by Confluence on Oct 04, 2011 12:42</font></td>
</tr>
</table>
</body>
</html>
|