@@ -187,17 +187,28 @@ To create the dialplan, use the XML below and save it to `/opt/freeswitch/conf/d
187
187
<condition field =" destination_number" expression =" ^EXTERNALDID" >
188
188
<action application =" answer" />
189
189
<action application =" sleep" data =" 500" />
190
- <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+" />
190
+ <action application =" playback" data =" ibh/conf-getpin.wav" />
191
+ <action application =" play_and_get_digits" data =" 5 5 3 7000 # silence ibh/conf-invalid.wav pin \d+ 7000 EXTERNALDID" />
191
192
<action application =" transfer" data =" SEND_TO_CONFERENCE XML public" />
192
193
</condition >
193
194
</extension >
194
195
<extension name =" check_if_conference_active" >
195
196
<condition field =" ${conference ${pin} list}" expression =" /sofia/g" />
196
197
<condition field =" destination_number" expression =" ^SEND_TO_CONFERENCE$" >
198
+ <action application =" playback" data =" ibh/conf-placeintoconf.wav" />
199
+ <action application =" playback" data =" tone_stream://%(200,0,500,600,700)" />
197
200
<action application =" set" data =" bbb_authorized=true" />
198
201
<action application =" transfer" data =" ${pin} XML default" />
199
202
</condition >
200
203
</extension >
204
+ <extension name =" check_if_no_conference" >
205
+ <condition field =" ${conference ${pin} list}" expression =" / not found/g" />
206
+ <condition field =" destination_number" expression =" ^SEND_TO_CONFERENCE$" >
207
+ <action application =" playback" data =" ibh/conf-invalidpin.wav" />
208
+ <action application =" unset" data =" pin" />
209
+ <action application =" transfer" data =" EXTERNALDID" />
210
+ </condition >
211
+ </extension >
201
212
```
202
213
203
214
Change ownership of this file to ` freeswitch:daemon `
0 commit comments