"Steve Edwards" <<a href="../../../../index.php?menuaction=felamimail.uicompose.compose&send_to=YXN0ZXJpc2sub3JnQHNlZHdhcmRzLmNvbQ=="><font color="blue">asterisk.org@sedwards.com</font></a>> wrote:<br />
> On Mon, 31 Jan 2011, Mike Diehl wrote:<br />
> <br />
>> I've got an agi script that calls the directory function, which seems to <br />
>> work to a point. However, once the caller has selected an entry, I need <br />
>> my agi script to find out which extension was selected. I've RTFM'd and <br />
>> don't see that the extension is returned. Nor is a variable set, as far <br />
>> as I can see.<br />
>> <br />
>> Is there a way to get this information from the directory application?<br />
> <br />
> No channel variable is set, but it would be a simple modification to the <br />
> 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.