Hello Darald, great thanks! that solved the problem. I have some more questions for which I've started a new thread. Would love your advice. best Rob On Tue, Aug 3, 2010 at 12:54 PM, Darald Trinka <dtrinka at gmail.com> wrote: > 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 > > > > _______________________________________________ > 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/20100805/28d6b147/attachment-0001.html>