Most active talker in Conference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.
On Fri, Feb 22, 2013 at 04:53:15PM +0530, Manmeet Singh wrote:
> Hello All,
> 
> I need help to add feature where PJSip can communicate the most active 
> talker in the conference to the application. Is there any known way 
> (existing API or code) anyone can help me with?

You can periodicaly call pjmedia_conf_get_signal_level(), for example:

 pjmedia_conf_get_signal_level(call->conf,
call->conf_slot, &tx_level, &rx_level);

call->audio_level = ((rx_level * 2) + call->audio_level) / 3;

where:
call->conf - conference
call->conf_slot - conference member slot
call->audio_level - will hold average audio level for this call.

 
> If there is none, I am thinking of creating a conf registration function 
> which can register a callback and the callback would get all these 
> details when the conference is running. Please suggest if this is the 
> right way of achieving the Most Active Talker feature.
> 
> Regards
> Manmeet
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 

-- 
Best Regards, Yuri.
	Yuri Saltikov
	mailto: yuri at rus.net



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux