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
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
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
bordmi i use playAndGetDigits from lua as an IVR and i can capture digits while the files are playing. If you're having trouble collecting the digits make sure you're receiving info or rfc2833 DTMF if its inband, make sure to do start_dtmf first. On Mon, Feb 23, 2015 at 2:13 PM, Борисов, Дмитрий / Dmitriy Borisov < bordmi@rarus.ru> wrote:
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
_________________________________________________________________________ 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
participants (3)
-
Bote Man
-
Chris Tunbridge
-
Борисов, Дмитрий / Dmitriy Borisov