Misc. Dialplan Tools answer

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Answers an incoming call or session. This sets up duplex audio between the calling A leg and the FreeSwitch server. It is not about other endpoints.

The server might need to 'answer' a call to play an audio file or to receive DTMF from the call.

Once answered, calls can still be bridged to other extensions.

Usage

answer

Example

<action application="answer"/>

Answer a call to detect FAX tones

We need to answer the call to let FreeSwitch receive the audio to start detecting FAX tones. Because a bridge after an answer is actually a transfer, the Ringback sent to the caller is now defined by transfer_ringback

 <extension name="group_dial_sales">
    <condition field="destination_number" expression="^sales$">	
       <action application="answer"/>
	<action application="set" data="transfer_ringback=${us-ring}"/>
        <action application="spandsp_start_fax_detect" data="transfer 'FAX XML default' 6"/>
        <action application="bridge" data="${group_call(sales@${domain_name})}"/>
    </condition>
 </extension>

See Also