It is possible that play_and_get_digits will do what you wish.

 

https://freeswitch.org/confluence/display/FREESWITCH/play+and+get+digits

 

Bote

 

 

From: Dmitriy Borisov
Sent: Thursday, 19 February, 2015 10:50
Subject: [Freeswitch-users] How to play file into session not endlessly?

 

I have next task: play sound file list to session only once. Callee must to control session by DTMF. Session must to hangup when sound file list are played if no keys a pressed by callee.

 

Session is created and controlled by Lua.

 

How?

 

--

with best regards,

Dmitriy Borisov