<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello<br>
<br>
This example play conf-pin.wav and wait DTMF.<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre style="font-family: monospace, Courier; padding: 1em; border: 1px dashed rgb(47, 111, 171); color: rgb(0, 0, 0); line-height: 1.3em; font-size: 12.8000001907349px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(249, 249, 249);"><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></pre>
<br>
Is it possible to play WAV file in infinity loop and wait user DTMF?<br>
<br>
And how can I check DTMF input after user entered DTMF?<br>
<br>
In dialpeer, like.<br>
If ${DTMF} = 1 then bridge to XXX<br>
If ${DTMF} = 2 then play file and finish session<br>
<br>
<br>
<br>
Thank you.<br>
Dmitry<br>
<br>
</body>
</html>