This post is at: ForumFeatures Wanted
6 posts / 0 new
Last post
George
George's picture
Joined: 2007/10/31
Points: 0

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
fefo's picture
Joined: 2008/06/02
Points: 0

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
George's picture
Joined: 2007/10/31
Points: 0

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
eeman's picture
Joined: 2007/11/06
Points: 290

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
dCAP
Thirdlane/Asterisk Support available
esmith.bgnv@gmail.com

IVSCOMM
IVSCOMM's picture
Joined: 2008/03/18
Points: 0

I always thought Dial by first name only or dial by last name only was ridiculous. Some people know first names and some people know last names. Can't you just set it up to search both first and last names and give the appropriate response using one script for both instead of having to choose first or last?

Shawn Wright
IVSComm

eeman
eeman's picture
Joined: 2007/11/06
Points: 290

its not a script. Directory() is imbedded into the voicemail application. You'll have to make the request to digium.

Erik Smith
dCAP
Thirdlane/Asterisk Support available
esmith.bgnv@gmail.com