Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Improve ivr routing for phone dialins.
Browse files Browse the repository at this point in the history
  • Loading branch information
liske committed May 8, 2020
1 parent 3dba6fe commit f3a805b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion _posts/2019-02-14-customize.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,28 @@ To create the dialplan, use the XML below and save it to `/opt/freeswitch/conf/d
<condition field="destination_number" expression="^EXTERNALDID">
<action application="answer"/>
<action application="sleep" data="500"/>
<action application="play_and_get_digits" data="5 5 3 7000 # conference/conf-pin.wav ivr/ivr-that_was_an_invalid_entry.wav pin \d+"/>
<action application="playback" data="ibh/conf-getpin.wav"/>
<action application="play_and_get_digits" data="5 5 3 7000 # silence ibh/conf-invalid.wav pin \d+ 7000 EXTERNALDID"/>
<action application="transfer" data="SEND_TO_CONFERENCE XML public"/>
</condition>
</extension>
<extension name="check_if_conference_active">
<condition field="${conference ${pin} list}" expression="/sofia/g" />
<condition field="destination_number" expression="^SEND_TO_CONFERENCE$">
<action application="playback" data="ibh/conf-placeintoconf.wav"/>
<action application="playback" data="tone_stream://%(200,0,500,600,700)" />
<action application="set" data="bbb_authorized=true"/>
<action application="transfer" data="${pin} XML default"/>
</condition>
</extension>
<extension name="check_if_no_conference">
<condition field="${conference ${pin} list}" expression="/ not found/g" />
<condition field="destination_number" expression="^SEND_TO_CONFERENCE$">
<action application="playback" data="ibh/conf-invalidpin.wav"/>
<action application="unset" data="pin"/>
<action application="transfer" data="EXTERNALDID"/>
</condition>
</extension>
```

Change ownership of this file to `freeswitch:daemon`
Expand Down

0 comments on commit f3a805b

Please sign in to comment.