How to exit from phone directory app?

Hello Folks,

I am using Asterisk 1.2. I created an IVR menu. One of the options takess me to the dial by name directory. I would like to give the caller an option to exit from dial by name directory and bring the caller back to IVR menu. Is there a way to do this? I believe it is only possible if the phone directory application has an exit option, it not, then of course it will not work.

Any insight will be highly appreciated.



[code] -= Info about application ‘Directory’ =-

Provide directory of voicemail extensions

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 application will immediately 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.

vm-context - This is the context within voicemail.conf to use for the
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.

f - Allow the caller to enter the first name of a user in the directory
instead of using the last name.


So from this I would say that the * or 0 option is what you want.


Hello Ian,

Thanks for the post. However, your suggestion is not exactly exiting from the phone, rather jumping to a number. Let me clarify what I am looking:

Phone rings:

  1. Call hears thank you for calling, press # for employee directory or dial extension, or 1 for support, 2 for sales.
  2. Caller presses # and get into phone directory.
  3. Caller realizes he made a mistake and wants to come back to the main prompt and press 1 for support.

I am not sure how to achieve step 3.




What I have posted will let you do what you want, you just need to know how to do it.

the a or o do NOT have to be a phone. they can be a Goto for example pointing back to the begining.

Try it you will see it works