Newbie Asterisk user here, just going through the initial setup and configuration instructions as detailed in the Asterisk - The Future Of Telephony (TFOT) book.
On page 85 is an example of how to set up an incoming dialplan, as follows:
[incoming]
exten => s,1,Answer( )
exten => s,2,Background(enter-ext-of-person)
exten => 1,1,Playback(digits/1)
exten => 1,2,Goto(incoming,s,1)
exten => 2,1,Playback(digits/2)
exten => 2,2,Goto(incoming,s,1)
exten => i,1,Playback(pbx-invalid)
exten => i,2,Goto(incoming,s,1)
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup( )
It is supposed to answer the phone, play the message “Please dial the extension of the person you are trying to reach”, and then presumably wait (until timeout) for the caller to dial something.
What it does is answer the phone, play the message, and then immediately hang up.
I checked and re-checked to make sure I had the syntax right, and even cut-and-pasted the dialplan directly from the TFOT book into my extensions.conf file, with no luck… it still just plays the message and then immediately hangs up.
What am I missing?