Hello
This example play conf-pin.wav and wait DTMF.
<extension name="play_and_get_digits example"> <condition field="destination_number" expression="^(1888)$"> <action application="play_and_get_digits" data="2 5 3 7000 # $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav /invalid.wav foobar \d+"/> <action application="log" data="CRIT ${foobar}"/> </condition> </extension>
Is it possible to play WAV file in infinity loop and wait user DTMF?
And how can I check DTMF input after user entered DTMF?
In dialpeer, like.
If ${DTMF} = 1 then bridge to XXX
If ${DTMF} = 2 then play file and finish session
Thank you.
Dmitry
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org