How to record User Voice and listen for the DTMF simultaneously
Hi, I want to give users an option to record their voice by presssing some digit in the IVR menu through my python script. I use the code as follows: session.recordFile(filename, 120, 500, 3) However, this code will block for 2 minutes and then proceed. In case a user has little to say and after 1 minute wants to stop the recording, how I can do that. Is there any function similar to "session.playAndGetDigits" to also hear for DTMFs at the same time? -- Regards, Deepika https://deepikay.wixsite.com/deepika
Playandgetdigits() sent from mobile cell: +39 347 266 56 18 Giovanni Maruzzelli OpenTelecom.IT On Sep 17, 2017 11:28, "Deepika Yadav" <deepikay@iiitd.ac.in> wrote:
Hi,
I want to give users an option to record their voice by presssing some digit in the IVR menu through my python script. I use the code as follows:
session.recordFile(filename, 120, 500, 3)
However, this code will block for 2 minutes and then proceed. In case a user has little to say and after 1 minute wants to stop the recording, how I can do that. Is there any function similar to "session.playAndGetDigits" to also hear for DTMFs at the same time?
-- Regards, Deepika https://deepikay.wixsite.com/deepika
_________________________________________________________________________ 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
Playandgetdigits() - plays a file and gets digits at the same time. However I need to initiate recording of the user voice and get the digits for quitting On Mon, Sep 18, 2017 at 12:02 PM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Playandgetdigits()
sent from mobile cell: +39 347 266 56 18 Giovanni Maruzzelli OpenTelecom.IT
On Sep 17, 2017 11:28, "Deepika Yadav" <deepikay@iiitd.ac.in> wrote:
Hi,
I want to give users an option to record their voice by presssing some digit in the IVR menu through my python script. I use the code as follows:
session.recordFile(filename, 120, 500, 3)
However, this code will block for 2 minutes and then proceed. In case a user has little to say and after 1 minute wants to stop the recording, how I can do that. Is there any function similar to "session.playAndGetDigits" to also hear for DTMFs at the same time?
-- Regards, Deepika https://deepikay.wixsite.com/deepika
_________________________________________________________________________ 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
_________________________________________________________________________ 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
-- Regards, Deepika https://deepikay.wixsite.com/deepika
You may use the set-meta* apps. Check local extension in demo configuration sent from mobile cell: +39 347 266 56 18 Giovanni Maruzzelli OpenTelecom.IT On Sep 18, 2017 09:12, "Deepika Yadav" <deepikay@iiitd.ac.in> wrote:
Playandgetdigits() - plays a file and gets digits at the same time. However I need to initiate recording of the user voice and get the digits for quitting
On Mon, Sep 18, 2017 at 12:02 PM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Playandgetdigits()
sent from mobile cell: +39 347 266 56 18 Giovanni Maruzzelli OpenTelecom.IT
On Sep 17, 2017 11:28, "Deepika Yadav" <deepikay@iiitd.ac.in> wrote:
Hi,
I want to give users an option to record their voice by presssing some digit in the IVR menu through my python script. I use the code as follows:
session.recordFile(filename, 120, 500, 3)
However, this code will block for 2 minutes and then proceed. In case a user has little to say and after 1 minute wants to stop the recording, how I can do that. Is there any function similar to "session.playAndGetDigits" to also hear for DTMFs at the same time?
-- Regards, Deepika https://deepikay.wixsite.com/deepika
____________________________________________________________ _____________ 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
_________________________________________________________________________ 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
-- Regards, Deepika https://deepikay.wixsite.com/deepika
_________________________________________________________________________ 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
on ESL i do it like this for calls i bridge... im positive you can find your way to do it as well. "api uuid_setvar d8a8589d-f16a-4caa-b079-f45d73d838b3 bridge_pre_execute_aleg_app record_session" "api uuid_setvar d8a8589d-f16a-4caa-b079-f45d73d838b3 bridge_pre_execute_aleg_arg /home/nexios/recordings/2/queue_recordings/2017-06-12.10.02.13-385996863242.wav" "api uuid_setvar d8a8589d-f16a-4caa-b079-f45d73d838b3 bridge_pre_execute_aleg_data /home/nexios/recordings/2/queue_recordings/2017-06-12.10.02.13-385996863242.wav" "bgapi uuid_bridge d8a8589d-f16a-4caa-b079-f45d73d838b3 33d2d6f5-b88c-45c3-8d2a-187366b2bb0b" On 18 September 2017 at 10:08, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
You may use the set-meta* apps.
Check local extension in demo configuration
sent from mobile cell: +39 347 266 56 18 Giovanni Maruzzelli OpenTelecom.IT
On Sep 18, 2017 09:12, "Deepika Yadav" <deepikay@iiitd.ac.in> wrote:
Playandgetdigits() - plays a file and gets digits at the same time. However I need to initiate recording of the user voice and get the digits for quitting
On Mon, Sep 18, 2017 at 12:02 PM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Playandgetdigits()
sent from mobile cell: +39 347 266 56 18 Giovanni Maruzzelli OpenTelecom.IT
On Sep 17, 2017 11:28, "Deepika Yadav" <deepikay@iiitd.ac.in> wrote:
Hi,
I want to give users an option to record their voice by presssing some digit in the IVR menu through my python script. I use the code as follows:
session.recordFile(filename, 120, 500, 3)
However, this code will block for 2 minutes and then proceed. In case a user has little to say and after 1 minute wants to stop the recording, how I can do that. Is there any function similar to "session.playAndGetDigits" to also hear for DTMFs at the same time?
-- Regards, Deepika https://deepikay.wixsite.com/deepika
____________________________________________________________ _____________ 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/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ 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
-- Regards, Deepika https://deepikay.wixsite.com/deepika
_________________________________________________________________________ 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
_________________________________________________________________________ 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)
-
Deepika Yadav
-
Giovanni Maruzzelli
-
Tihomir Culjaga