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