[Freeswitch-users] troubles with regex in mod_ivr?
Борисов, Дмитрий
bordmi at rarus.ru
Wed Nov 12 08:36:03 MSK 2014
>From the FreeSWITCH Wiki (
https://wiki.freeswitch.org/wiki/IVR_Menu#How_to_route_the_call_if_no_DTMF_is_pressed
):
How to route the call if no DTMF is pressed
First, define the IVR main menu like this:
<menu name="ivr-test"
greet-long="/usr/local/freeswitch/sounds/greetings.wav"
timeout="10000"
inter-digit-timeout="2000"
max-failures="1"
max-timeouts="2"
digit-len="1">
<entry action="menu-exec-app" digits="1" param="bridge
sofia/internal/1001%10.10.10.10"/>
<entry action="menu-exec-app" digits="2" param="bridge
sofia/internal/1002%10.10.10.10"/>
<entry action="menu-exec-app" digits="3" param="bridge
sofia/internal/1003%10.10.10.10"/>
</menu>
and then in your dialplan, you need:
<extension name="from_carrier_to_ivr-test">
<condition field="destination_number" expression="^15559876543$">
<action application="set" data="hangup_after_bridge=true"/>
<action application="ivr" data="ivr-test"/>
<action application="bridge" data="sofia/internal/1000%10.10.10.10"/>
</condition>
</extension>
With this config, if the IVR manages to bridge the call, it will hang up
when the bridge ends.
But if no DTMF is sent, twice in a row (max-timeouts control that),
FreeSWITCH will exit the IVR menu and process the next dialplan line, which
bridges to 1000.
2014-11-12 2:13 GMT+03:00 Michael Collins <msc at freeswitch.org>:
> Test to confirm but if no digits are dialed and the IVR times out then it
> should move on in the dialplan. You can have the 'exit' action just be the
> next thing in the dp.
> -MC
>
> On Mon, Nov 10, 2014 at 7:50 AM, Денис <denis at ringme.ru> wrote:
>
>> We need action on timeout, made digits = "/^$/" - nothing.
>> How to do it correctly?
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
С уважением,
Борисов Дмитрий
ответственный за разработку VoIP решения
системный администратор отдела облачных технологий
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141112/c78bb8c6/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list