No-no-no, session:playAndGetDigits don`t work with DTMF in the time of playing.

session:setInputCallback + session:streamFile solves my problem. A little bad thing: I couldn`t send a parameters to callback, but this is not very bad for me.

2015-02-20 1:29 GMT+03:00 Bote Man <bote_radio@botecomm.com>:

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


_________________________________________________________________________
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



--
with best regards,
Dmitriy Borisov