[Asterisk-Users] Press 9 to dial by name

Daniel Poulsen dpoulsen at gmail.com
Tue Sep 14 18:25:43 MST 2004


Hi all.  I am new to the list and new to asterisk.  I have asterisk
installed and  running.  I am using it as a voicemail server only. 
What I would like to do is send users to a general mailbox that will
be addressed as <companyname>@asterisk and give them the option to
wait for the tone and leave a message, or press 9 to dial by name.

My questions are:

1.  What is the best way to do this?

Right now I have incoming SIP calls going to a context called
[From_SER].  My config looks like this:

[From_SER]
include => MailBox
include => ACMEInc

exten => 1,1,Goto(${EXTEN},s,1)


[MailBox]
exten => _XXXX,1,Wait(2)
exten => _XXXX,2,Voicemail(u${EXTEN})


[ACMEInc]
exten => s,1,Answer
exten => s,2,DigitTimeout,5
exten => s,3,ResponseTimeout,10
exten => s,4,Voicemail(${EXTEN})

exten => 9,1,Directory(${EXTEN})

It seems to me like this should work, but I never reach the ACMEInc
voice mailbox.  If I address a mailbox number like <sip:1234 at asterisk>
it takes me right in based on the _XXXX dial pllan so I know I have a
working system.


2.  Once I am in the ACMEInc mailbox, if I dial 9 to reach the
directory, it doesn't do the transfer.  How can I set some kind of
global paramater that says if I dial 9, go to Directory(${EXTEN}) ?

Your input is greatly appreciated.

Thank you.

Dan Poulsen



More information about the asterisk-users mailing list