July 2017
Intermediate to advanced
434 pages
12h 59m
English
The first application we will discuss is the voicemail application. This application is useful to add right after the bridge application as a second option, executed in cases where the call was not completed. We can do this with one of those special variables that we were discussing earlier. Let's look at a version of our last extension that also allows us to leave a voicemail:
<extension name="example 4">
<condition field="destination_number" expression="^2000$">
<action application="set"
data="hangup_after_bridge=true"/>
<action application="bridge" data="user/2000"/>
<action application="voicemail"
data="default ${domain} 2000"/>
</condition>
</extension>
Here, we see two uses of channel variables. First, we set hangup_after_bridge=true ...
Read now
Unlock full access