[Freeswitch-users] Receive Event for Silence Timeout in Conference Session

Deepika Yadav deepikay at iiitd.ac.in
Thu Jan 21 09:46:40 MSK 2016


I tried to receive the events in my java program  in this way :

Code Snippet

ESLconnection con = new ESLconnection("127.0.0.1","8021","ClueCon");
event = con.recvEvent();
String eventHeader = event.getHeader("Event-Name",-1);

while (con.connected() == 1) {
    if(eventHeader.equalsIgnoreCase("stop-talking")){
        System.out.println("some stopped
speaking"+(System.currentTimeMillis() % 1000));
  }
  if(eventHeader.equalsIgnoreCase("start-talking")){
System.out.println("some started speaking at"+ (System.currentTimeMillis()
% 1000));
    }
 .....
}


I don not receive events when conference members speak although, I receive
other events (DTMF, conference_add_member) correctly

Please let know the correct way

On Mon, Jan 18, 2016 at 8:43 AM, Deepika Yadav <deepikay at iiitd.ac.in> wrote:

> Thanks Nathan & Bote,
>
> I am surely gonna try this approach.
>
> On Sun, Jan 17, 2016 at 10:34 PM, Nathan Neulinger <nneul at mst.edu> wrote:
>
>> Woops. Yeah, good point on the stop vs. start...
>>
>> -- Nathan
>>
>> On 01/17/2016 10:13 AM, Bote Man wrote:
>> > I was going to suggest the same approach, but measure the time since the
>> > last 'stop-talking' event since that indicates that silence has begun.
>> >
>> > The script should make sure that it has no 'start-talking' events
>> without a
>> > matching 'stop-talking' event to ensure that everybody is silent before
>> > starting the timer.
>> >
>> > Bote
>> >
>> >
>> >> -----Original Message-----
>> >> From: Nathan Neulinger
>> >> Sent: Sunday, 17 January, 2016 10:00
>> >> Subject: Re: [Freeswitch-users] Receive Event for Silence Timeout in
>> > Conference Session
>> >>
>> >> Might not be the best way to do it - but you could potentially look for
>> > the
>> >> inverse.
>> >>
>> >> Set up an event listener for all conference events - watch for
>> > 'start-talking'
>> >> and 'stop-talking', and just keep track
>> >> of how long it has been since the last 'start-talking' event.
>> >>
>> >> -- Nathan
>> >>
>> >> On 01/17/2016 01:21 AM, Deepika Yadav wrote:
>> >>> Hi,
>> >>>
>> >>> I am using event socket layer to receive events happenening in the
>> >> conference session from the Freeswitch in my java
>> >>> program. My program is interested in knowing when there is silence in
>> > the
>> >> conference for a particular period of time.
>> >>>
>> >>> How can I set a condition for silence detection in the conference
>> > dialplan
>> >> and receive its value through a channel
>> >>> variable in my program.
>> >>>
>> >>> Regards,
>> >>> Deepika
>> >>>
>> >>>
>> >>>
>> >>
>> >> --
>> >> ------------------------------------------------------------
>> >> Nathan Neulinger                       nneul at mst.edu
>> >> Missouri S&T Information Technology    (573) 612-1412
>> >> System Administrator - Architect
>> >>
>> >
>> >
>> >
>> _________________________________________________________________________
>> > Professional FreeSWITCH Consulting Services:
>> > consulting at 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 at lists.freeswitch.org
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:
>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>> > http://www.freeswitch.org
>> >
>>
>> --
>> ------------------------------------------------------------
>> Nathan Neulinger                       nneul at mst.edu
>> Missouri S&T Information Technology    (573) 612-1412
>> System Administrator - Architect
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160121/347d03f4/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list