Open your extensions.conf using a text redactor.
At the bottom of the file (on new line) add new context by typing `[echotest]` (without the quotes).
Add the following extension:
exten => echo,1,Answer()
; Answer the line
exten => echo,n,Set(TIMEOUT(absolute)=120)
; Sets maximum length of the call to two minutes (if someone forgets to hang up)
exten => echo,n,Playback(file1)
; Playbacks file named `f1`. The user will hear the contents of `f1`
; In our tutorial `f1` is the first announcement that we have recorded.
exten => echo,n,Echo()
; starting Echo() application which will create the echo effect
exten => echo,n,Playback(f2)
; Playbacks file named `f2`. The user will hear the contents of `f2`
; In our tutorial `f2` is the first announcement that we have recorded.
exten => echo,n,System(/bin/notify_us ${CUR})
; Notification script which will notify us that curtain user is experiencing problems.
exten => echo,n,HangUp()
; Hangs up the call.


`cat /route/to/somewhere/file >> /etc/asterisk/extensions.conf`where `/route/to/somewhere/file` is the path and the file in which you have written the thing.
Context: echotest # Asterisk will execute extension in this string Extension: echo # Name of the extension Priority: 1 # At which priority Asterisk will begin the execution Callerid: Automated Test System <> # Setting the CallerID to the specified string.If you copy/paste the protoype file, notice that you have to remove the comments marked with #. Asterisk will not escape those comments, and their might lead to unexpected results. The file should look like this one:

| Add Comment |
Latest Headlines:
Latest Tutorials:
Latest Comments: