Brent Torrenga
2006-Jun-14 10:12 UTC
[Asterisk-Users] Directory - First Name/Last Name - How to use both? a@h?
I think A@Home allows a user to search a directory by either first OR last name, right? I don't know for sure since I don't run A@Home. I would like to offer that functionality in my system - and I'd have done it by now if there was a prompt where Allison asks "press 1 to search by first name, press 2 to search by last name". But I don't think that prompt exists. Can someone explain how (or just tell me that it does not exist) A@Home gives the search option? Sincerely, Brent A. Torrenga Torrenga Engineering, Inc. 907 Ridge Road Munster, Indiana 46321-1771 tel:+1 219 836 8918 x325 fax:+1 219 836 1138 email:brent.torrenga@torrenga.com web:www.torrenga.com
Darrick Hartman
2006-Jun-14 10:53 UTC
[Asterisk-Users] Directory - First Name/Last Name - How to use both? a@h?
Brent Torrenga wrote:> I would like to offer that functionality in my system - and I'd have done it > by now if there was a prompt where Allison asks "press 1 to search by first > name, press 2 to search by last name". But I don't think that prompt exists. > > Can someone explain how (or just tell me that it does not exist) A@Home > gives the search option? >I am not familiar with A@H, but this is how you do a dial-by-name directory: ;first name exten => 1,1,Directory(default,default,f) ;last name exten => 2,1,Directory(default,default) More details below: pbx*CLI> show application Directory pbx*CLI> -= Info about application 'Directory' =- [Synopsis] Provide directory of voicemail extensions [Description] Directory(vm-context[|dial-context[|options]]): 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. This applicaiton will immediate 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. Parameters: vm-context - This is the context within voicemail.conf to use for the Directory. dial-context - This is the dialplan context to use when looking for an extension that the user has selected, or when jumping to the 'o' or 'a' extension. Options: f - Allow the caller to enter the first name of a user in the directory instead of using the last name. -- Darrick Hartman DJH Solutions, LLC http://www.djhsolutions.com
Eric "ManxPower" Wieling
2006-Jun-14 11:30 UTC
[Asterisk-Users] Directory - First Name/Last Name - How to use both? a@h?
Brent Torrenga wrote:> I think A@Home allows a user to search a directory by either first OR last > name, right? I don't know for sure since I don't run A@Home. > > I would like to offer that functionality in my system - and I'd have done it > by now if there was a prompt where Allison asks "press 1 to search by first > name, press 2 to search by last name". But I don't think that prompt exists. > > Can someone explain how (or just tell me that it does not exist) A@Home > gives the search option?"show application directory" Pay special attention to the options. -- Now accepting new clients in Birmingham, Atlanta, Huntsville, Chattanooga, and Montgomery.
Brent Torrenga
2006-Jun-14 12:40 UTC
[Asterisk-Users] Re: Directory - First Name/Last Name - How to use both? a@h?
Matt, Ahh, they use an AGI script. That's what I was looking for. I think I'll go dig through the a@h packages now... Thanks!>We do both first and last name searching. >In A@H just select "first or last name". >In asterisk do: > > -- Executing AGI("Zap/2-1", "directory|general|ext-local|bo") in newstack> -- Launched AGI Script /var/lib/asterisk/agi-bin/directory > -- Playing 'dir-intro-fnln-oper' (language 'en') > > >On 6/14/06, Eric ManxPower Wieling <eric@fnords.org> wrote: >> Brent Torrenga wrote: >> > I think A@Home allows a user to search a directory by either first ORlast>> > name, right? I don't know for sure since I don't run A@Home. >> > >> > I would like to offer that functionality in my system - and I'd havedone it>> > by now if there was a prompt where Allison asks "press 1 to search byfirst>> > name, press 2 to search by last name". But I don't think that promptexists.>> > >> > Can someone explain how (or just tell me that it does not exist) A@Home >> > gives the search option? >> >> "show application directory" Pay special attention to the options. >> >> -- >> Now accepting new clients in Birmingham, Atlanta, Huntsville, >> Chattanooga, and Montgomery. >> _______________________________________________ >> --Bandwidth and Colocation provided by Easynews.com -- >> >> Asterisk-Users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >>Sincerely, Brent A. Torrenga Torrenga Engineering, Inc. 907 Ridge Road Munster, Indiana 46321-1771 tel:+1 219 836 8918 x325 fax:+1 219 836 1138 email:brent.torrenga@torrenga.com web:www.torrenga.com