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

6.1.2.7. Answer (dialplan application)

1. Answer - this application allows you to answer the channel if there is a call

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

 


Syntax:

Answer() ; there are no arguments for this application


Returns 0 unless it tries to answer the channel and fails.

 


Purpose and usage

The purpose and the usage of this application is only one. To answer the channel if a call is placed on it.

We will give you a short example.

 


Prerequisites

To use this application you need a working Asterisk PBX with registered users in iax.conf, sip.conf or mgcp.conf(It depends on which protocol you would like to use) and made extensions.

To see how the application works we recommend to use our IAX softphone Idefisk. You can download it from here. Please also read our tutorial to learn how to configure it to work with Asterisk PBX.

 


Asterisk PBX configurations

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

We need three registered users in iax.conf file. This is because we are going to use the IAX2 protocol. If you want to use other protocol such as SIP or MGCP, you have to do the configurations below respectively in sip.conf or mgcp.conf.



So, we have registered the users anatoliy, user1 and user2.

Type=friend means that this user can make and receive calls. Host=dynamic means that the IP is not static but dynamic through a DHCP server. Allow=all means that the line which this user will use, could support all audio codecs. Context=test - this shows that this user is working with the extensions in this context of the configuration file extensions.conf.



If somebody dials 111 the first thing to be executed is exactly the Answer application. Then we have the application Wait which will cause the program to wait for 5 seconds and then to go to the next extension according to the priority. This extension is the one with the SendText application. A message will appear on the screen. In our case it is: This is a test for Answer application.

Now, if somebody dials 112 again the first executed application will be Answer. Then the caller will hear a playtone for busy condition. We achieve this with two extensions. The first one contains the Playtones application and the second one the Busy application. It is very important to use the two applications together. If you use only one of them the result won’t be the desired one.

NOTE: When you are going to use the Playtones application, you always have to use the Answer application before that. Otherwise you won’t be able to hang up the line and you will be constrained to restart you phone.

There are applications which have a built-in Answer.

Such application is Playback. By default it answers the line (unless it is not set a specific option not to do so).

An alternative of Playback is the Background applications. It also answers the line by default.

The difference between Playback and Background is that if you are going to use the first one, you have to wait till the end of the audio message and then you can choose another option. If you are going to use the second one then it’s not necessary to wait till the end of the audio message and you can choose the desired option while listening to the message. The other difference is that Playback has a specific option which could turn off the built-in Answer and then you have to use the Answer application to answer the call. On the other hand Background does not have such an option and it always answers the call by default

Dial is another application which has a built-in answer and it does not require Answer application to answer the call. But there is a parameter to disable this auto answering behaviour

 


2. Screenshots of what you can see on your Idefisk and on the CLI of the Asterisk PBX


1) Screenshot for line 111



2) Screenshots for line 112

 


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

 


4. Uploaded files

extensions.conf
iax.conf

 

 
User Comments
SiamXXXOnline (admin at siamxxxonline dot com)
08 September 2022 13:57:19
https://siamxxxonline.com
amoxicilina 500 mg dosage (delorasspring at ssl dot tls dot cloudns dot asia)
04 July 2020 18:25:02
amoxicilina 500 mg dosage https://amoxycillin1st.com/
Jesus (aue0m6mo at gmail dot com)
20 December 2015 21:36:42
This flowed rahetr smoothly at the beginning and the top and bottom was filling in nicely.I stalled for awhile but then had an "A-ha!" moment about row 5 and was able to finish from there. I thought I had multiple solutions initially, then I thought I had no solutions. Finally I realized I missed marking a "pearl" and that cleared it up. http://iawgxzmx.com [url=http://cjunjwdnj.com]cjunjwdnj[/url] [link=http://hupfddzke.com]hupfddzke[/link]
sandeep (kulkarni dot sundip at gmail dot com)
17 October 2006 11:49:22
I need to know abt auto answer using iax............
 
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://donde-ver-ant-man-y-la-avispa-qu...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-scream-6-tyt.statuspag...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-guardianes-de-la-noche...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-demon-slayer-villa-de-...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://www.reddit.com/r/BenavidezvPlant...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™