&quot;Steve Edwards&quot; &lt;<a href="../../../../index.php?menuaction=felamimail.uicompose.compose&amp;send_to=YXN0ZXJpc2sub3JnQHNlZHdhcmRzLmNvbQ=="><font color="blue">asterisk.org@sedwards.com</font></a>&gt; wrote:<br />
&gt; On Mon, 31 Jan 2011, Mike Diehl wrote:<br />
&gt; <br />
&gt;&gt; I've got an agi script that calls the directory function, which seems to <br />
&gt;&gt; work to a point.&nbsp; However, once the caller has selected an entry, I need <br />
&gt;&gt; my agi script to find out which extension was selected.&nbsp; I've RTFM'd and <br />
&gt;&gt; don't see that the extension is returned.&nbsp; Nor is a variable set, as far <br />
&gt;&gt; as I can see.<br />
&gt;&gt; <br />
&gt;&gt; Is there a way to get this information from the directory application?<br />
&gt; <br />
&gt; No channel variable is set, but it would be a simple modification to the <br />
&gt; source code to return the extension instead of dialing it.<br />
<br />
Is this a patch that anyone else would be interested in?  I could probably<br />
figure out how to accept a flag, say 'r', and return the extension.  I'm not<br />
an official asterisk developer, but I could/would sign a release.<br /><hr style="border:dotted 1px silver; width:90%; border:dotted 1px silver;"><br />
Take care and have fun,<br />
Mike Diehl.