dial by first or last name
George

Tue, 07/22/2008 - 21:02 | dial by first or last name

We have had requests for the ability to dial by first name rather then last name.. I was reading in the Asterisk manual and ran across this code..
exten => 8,1,Directory(default,incoming,f)
exten => 9,1,Directory(default,incoming)
If callers press 8, they’ll get a directory by first name. If they dial 9, they’ll get the directory by last name.
I looked in the scripts but have no clue where this can be changed.. anyone know if this can be done or does Alex have to do it..?
Thanks
George

fefo

Wed, 07/23/2008 - 08:45 | Re: Dial by name is performed by

Dial by name is performed by a script called 'tl-directory'.
To make it dial by first name, add ' | f ' before the last ')' of the second line.

Then the following...

exten => s,1,Wait(1)
exten => s,2,Directory(default${TL_DASH}${tenant}|local-extensions${TL_DASH}${tenant})
exten => s,3,Wait(1)
exten => s,4,Hangup
exten => h,1,Hangup

...would be changed to

exten => s,1,Wait(1)
exten => s,2,Directory(default${TL_DASH}${tenant}|local-extensions${TL_DASH}${tenant}|f)
exten => s,3,Wait(1)
exten => s,4,Hangup
exten => h,1,Hangup

Alex, is this right?

George

Thu, 07/24/2008 - 07:19 | Dial by name is performed by

Hello fefo,

I must have been blind, Thanks I found it created a feature code and it works great..

any chance you know how to add it to the list with the current Comany Directory..?

Thanks again
George

eeman

Mon, 07/28/2008 - 00:56 | it would be cool if the IVR

it would be cool if the IVR options for Directory had a 'Directory(firstname)' and 'Directory(lastname)' the way they did with voicemail and voicemail(silent). I kinda wish the Directory application would let you match by both first and last name at the same time.

Erik Smith
CTO
BluegrassNet Voice
dCAP