• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
Back to Tutorials

6.1.2.27. Echo (dialplan application)

1. Echo is a dialplan application which returns the outgoing audio from a channel back to the channel.

NOTE: This application is valid for Asterisk version 1.0.9 and above.

 

Syntax:
Echo() : no parameters required.

The application returns 0 if the user exits with the '#' key, or -1 if the user hangs up.

 

Purpose and usage
This dial plan application is mostly used for test purposes. The outgoing audio stream is send back to the channel. So you hear what you say.

 

Prerequisites
First of all you need to install Asterisk PBX. Afterwards you need to configure at least one user in iax.conf, sip.conf or mgcp.conf – the protocol you are going to use depends on you or of the phone you are using. After this you need to write some extensions in extensions.conf.

In this tutorial I will use Idefisk softphone that is an IAX client. You can download it by clicking here. Tutorial showing how it works and configuration support can be found here.


 

Asterisk PBX configurations

NOTE: This is just an example of what you can use this application for. Of course you can use it and for other purposes.

When you have installed and working Asterisk PBX you will need some user to test this application. If you do not have any registered in iax.conf you may add the following one. If you are not going to user Idefisk Softphone and iax.conf you have to register the user in the same way in sip.conf, h323.conf or mgcp.conf – depending on the protocol you are using.

Echo1.png

Above I registered a user [ivan] with the properties:
type=friend (type might be user – just can call, peer – just can be called and friend – can call and can be called)

username=ivan – this is the user which must authenticate when connecting to the Asterisk PBX server

context=test is the context from extensions.conf which the user can access (including any other context which is/are included in this one)

secret=ivan is the password with which the user must authenticate when connecting to the Asterisk server

host=dynamic means that the host for this user is dynamic and he/she can connect to Asterisk PBX from different computers (host may be defined with static ip address)

Allow=all means that all audio codecs are allowed (You can allow certain codecs as well as disallow others)

We now have a user that can use the context test from extensions.conf. So now we need some dial plan application in [test] in extensions.conf.

Echo2.png

Here is the application in extensions.conf.
exten => 111,1,Answer()
the call is answered

exten => 111,2,Playback(welcome)
welcome message is played on playback

exten => 111,3,Playback(demo-echotest)
plays information for the echo test that will start after this. The sound files are stored in /var/lib/asterisk/sounds/ by default

exten => 111,4,Echo()
do the echo test

exten => 111,5,Playback(demo-echodone)
plays information that the echo test is done

exten => 111,6,Playback(vm-goodbye)
goodbye message is played

exten => 111,7,Hangup()
Hangup() closes the line

 

2.The application in CLI


Echo3.png
Echo4.png

 


3. Additional information

For more information about extensions.conf you can check here.
For more information about iax.conf you can check here.

This application is tested with our IAX softphone Idefisk. You can download it from here. For more information about this softphone please read our tutorial.

If you would like to test this application with the SIP channel you can read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX

 

 
User Comments
Lhycy (q9d63ys1e at hotmail dot com)
20 December 2015 21:35:10
the 14th, they kept saying the email was wrong and the acutal date was mid November.So to sum this up, I have not gotten my phone yet, people who did not reserve one have, and now I am being told AT&T is going to steal 320 out of my checking account when they ship the phone that I do not want. Willing to bet they will charge a restocking fee too that will not fly. http://qkdome.com [url=http://lbmvlkdch.com]lbmvlkdch[/url] [link=http://qlvgkx.com]qlvgkx[/link]
Guan (eoxzaocs at hotmail dot com)
18 December 2015 07:55:39
I have been so beiredlwed in the past but now it all makes sense!
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • Sending Fax from Zoiper to Zoiper using T.38
    added 08/Dec/2008 18:16
  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53

Latest Comments:

  • https://git-ce.rwth-aachen.de/mbd/kiste_...
    tutorial: Basic Information
  • https://git-ce.rwth-aachen.de/mbd/kiste_...
    tutorial: Basic Information
  • https://www.thebeachlittlehampton.co.uk/...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://www.viessmann-community.com/t5/R...
    tutorial: Asterisk Installation
  • https://d2l.msu.edu/d2l/eP/presentations...
    tutorial: Asterisk Realtime configuration
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™