Great, that was exactly what I was looking for.

 

I was using uuid_record, not the ‘record’ app. I replaced it with ‘execute record params’ and now I receive a RECORD_STOP event. I think I can move forward with this small change.

 

Thanks a lot Michael!

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Thursday, January 05, 2012 3:05 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] help with wait_for_silence

 

What are you using to do the recording of the audio? The record app has built-in silence detection. If you are using record_session then I can see your dilemma. It's almost as if you'd need "execute_on_silence" as opposed to wait_for_silence.


Anyone out there have any suggestions for Hector on how to do this?

 

-MC

On Thu, Jan 5, 2012 at 11:31 AM, Hector Geraldino <Hector.Geraldino@ip-soft.net> wrote:

Hi,

 

I’m trying to use the wait_for_silence application to stop recording audio from a channel, and I need to use it not from a FS dialplan but from an ESL application.

 

So far I can execute the wait_for_silence application using ‘execute wait_for_silence arguments’ with no issues. I can even see the result of the execution of this command on the fs_cli console:

 

2012-01-05 19:04:40.266001 [DEBUG] switch_ivr.c:576 sofia/internal/5512@192.168.8.11 Command Execute wait_for_silence(200 15 15 5000)

EXECUTE sofia/internal/5512@192.168.8.11 wait_for_silence(200 15 15 5000)

 

The problem is that I don’t know if this is working or not, as it is not raising any event that can be received by the application. I don’t see any event related to this application (or to detect silence using any other mechanism) on the wiki Events List page [http://wiki.freeswitch.org/wiki/Event_list], so I’m not sure it is usable in an socket outbound mode.

 

Resuming: is it possible to detect the silence on a channel and then perform an action in an ESL application, using wait_for_silence app or any other mechanism?

 

Thanks,

Hector


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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