execute_on_answerstring Execute an application (not an api) when the called party answers. To set an api, use api_on_answer.
execute_on_answerwill also allow for more control when dealing with no answer conditions in cases where you cannot ignore early media.
The command is executed only on channels that are not already answered. Just use
nolocal: prefix to make sure it is executed when b-leg answers.
In the second usage example below, we have originated an outbound call to a local extension, where we will wait 30 seconds while manually ignoring media. In this case we use
set and not
To wait 30 seconds for an answer while 'manually' ignoring early media: