PJSIP 1.6 on iphone OS - speaker phone API not working?

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

 



This works for us in both iOS 4 and 3.x...

DV_RESULT_CODE PJFacade::SetLoudspeaker(bool on)
{
	pjmedia_aud_dev_route route;
	pj_status_t status;

	if (on)
	{
		route = PJMEDIA_AUD_DEV_ROUTE_LOUDSPEAKER;
	}
	else
	{
		route = PJMEDIA_AUD_DEV_ROUTE_EARPIECE;
	}


	status = pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE,
            &route, PJ_TRUE);

	return DV_RESULT_OK;
}


On Aug 3, 2010, at 12:28 PM, Rob Wilkes wrote:

> Hi, we are currently using pjsip 1.6 with g711 on an iphone (os 3.x). Everything is working, but when we call the apis to route media to speaker phone, they are ignored. Can anyone confirm if this works and if so, how to switch media to speaker phone?
> 
> thanks
> 
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100803/ed1adaf3/attachment-0001.html>


[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