Dialplan Recipes
From FreeSWITCH Wiki
Contents |
Mod_Limit Examples
Paging
Conferencing and Intercom
Configuring a dialplan to call multiple phones, have them auto-answer and be added to a conference. The conference is ended when the initiator hangs up.
FollowMe/Hunt
Multiple offsite phones
Forked dial example
Forked dial is when you want to attempt to ring 2 destinations at the same time. Freeswitch will attempt to call both bridge options simultaneously. The first bridge leg that replies with a 183 (session progress) message will win the call, and the other bridge leg is dropped. This only will work with late_negotiation enabled.
an example is:
<extension name="dialoutpstn">
<condition field="destination_number" expression="^((00).*)$">
<action application="bridge" data="sofia/gateway/gatewayA/$1@1.2.3.4,sofia/gateway/gatewayB/$1@4.5.6.7"/>
</condition>
</extension>
Forked dial with differing timeouts for progress and attempt
It is also possible to have various legs of the bridge contain different timeouts. For instance, if you're attempting to bridge to an extension that has VoiceMail on it, or perhaps a cell phone which will fail over to voice mail within a short period of time. The bridge application may be called with the following options for data:
<action application="bridge" data="[leg_progress_timeout=5,leg_timeout=10]sofia/gateway/gatewayA/$1@1.2.3.4,[leg_progress_timeout=8,leg_timeout=30]sofia/gateway/gatewayB/$1@4.5.6.7"/>
