symbian_ua_gui how to route calls to loudspeaker from earphone and change volume

SK
Shrouk Khan
Sun, Jul 18, 2010 9:27 AM

hi,
i have been trying out the symbian_ua_gui with nokia APS / VAS and g729 .
All seems to go fine. But i am having problem with low voice . So was
wondering if there is a way to do it ?

  • for the loudspeaker , i found in
    http://trac.pjsip.org/repos/wiki/FAQ#sym-audio-routing :"Application may
    change the routing by calling pjmedia_snd_aps_activate_loudspeaker()"
    but i can not find where this pjmedia_snd_aps_activate_loudspeaker is? am i
    missing something?

  • how do i change volume of the application while already in a call ?

--
Regards

Shrouk Khan (Khan)
System Administrator / Telecommunication System Developer
Office:  +354 4400807 (Reykjavik)
+44  2031370800 (London)
Mobile:  +66  875049439 (Bangkok)

Web: www.softverk.is

Reykjavik, Iceland  //  London, UK  //  Bangkok, Thailand

hi, i have been trying out the symbian_ua_gui with nokia APS / VAS and g729 . All seems to go fine. But i am having problem with low voice . So was wondering if there is a way to do it ? - for the loudspeaker , i found in http://trac.pjsip.org/repos/wiki/FAQ#sym-audio-routing :"Application may change the routing by calling pjmedia_snd_aps_activate_loudspeaker()" but i can not find where this pjmedia_snd_aps_activate_loudspeaker is? am i missing something? - how do i change volume of the application while already in a call ? -- Regards Shrouk Khan (Khan) System Administrator / Telecommunication System Developer Office: +354 4400807 (Reykjavik) +44 2031370800 (London) Mobile: +66 875049439 (Bangkok) Web: www.softverk.is Reykjavik, Iceland // London, UK // Bangkok, Thailand
S
Sri@MSN
Mon, Jul 19, 2010 5:23 AM

Hello Khan,

I suggest you to take a look in PjSIP Symbian console based application.

You will find these code pieces under Symbian_ua -> ua.cpp.

/*To Increase / Decrease volumes - START */
unsigned vol;
pj_status_t status;

status = pjsua_snd_get_setting(
PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, &vol);
if (status == PJ_SUCCESS) {
if (kc == EKeyUpArrow)
vol = PJ_MIN(100, vol+10);
else
vol = (vol>=10 ? vol-10 : 0);

status = pjsua_snd_set_setting(
PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING,
&vol, PJ_TRUE);
}
else{
// Handle failure
}
/*To Increase / Decrease volumes - END */

/*To Toggle b'en Loudspeaker / Earpiece - START */
pjmedia_aud_dev_route route;
pj_status_t status;

status = pjsua_snd_get_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE,
&route);

if (status == PJ_SUCCESS) {
if (route == PJMEDIA_AUD_DEV_ROUTE_LOUDSPEAKER)
route = PJMEDIA_AUD_DEV_ROUTE_EARPIECE;
else
route = PJMEDIA_AUD_DEV_ROUTE_LOUDSPEAKER;

status = pjsua_snd_set_setting(
PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE,
&route, PJ_TRUE);
}
else{
// Handle failure
}
/*To Toggle b'en Loudspeaker / Earpiece - END */

Thanks,
Srivatsan

On 18-Jul-2010, at 2:57 PM, Shrouk Khan wrote:

hi,
i have been trying out the symbian_ua_gui with nokia APS / VAS and g729 . All seems to go fine. But i am having problem with low voice . So was wondering if there is a way to do it ?

  • for the loudspeaker , i found in http://trac.pjsip.org/repos/wiki/FAQ#sym-audio-routing :"Application may change the routing by calling pjmedia_snd_aps_activate_loudspeaker()"
    but i can not find where this pjmedia_snd_aps_activate_loudspeaker is? am i missing something?

  • how do i change volume of the application while already in a call ?

--
Regards

Shrouk Khan (Khan)
System Administrator / Telecommunication System Developer
Office:  +354 4400807 (Reykjavik)
+44  2031370800 (London)
Mobile:  +66  875049439 (Bangkok)

Web: www.softverk.is

Reykjavik, Iceland  //  London, UK  //  Bangkok, Thailand


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hello Khan, I suggest you to take a look in PjSIP Symbian console based application. You will find these code pieces under Symbian_ua -> ua.cpp. /*To Increase / Decrease volumes - START */ unsigned vol; pj_status_t status; status = pjsua_snd_get_setting( PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, &vol); if (status == PJ_SUCCESS) { if (kc == EKeyUpArrow) vol = PJ_MIN(100, vol+10); else vol = (vol>=10 ? vol-10 : 0); status = pjsua_snd_set_setting( PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, &vol, PJ_TRUE); } else{ // Handle failure } /*To Increase / Decrease volumes - END */ /*To Toggle b'en Loudspeaker / Earpiece - START */ pjmedia_aud_dev_route route; pj_status_t status; status = pjsua_snd_get_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE, &route); if (status == PJ_SUCCESS) { if (route == PJMEDIA_AUD_DEV_ROUTE_LOUDSPEAKER) route = PJMEDIA_AUD_DEV_ROUTE_EARPIECE; else route = PJMEDIA_AUD_DEV_ROUTE_LOUDSPEAKER; status = pjsua_snd_set_setting( PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE, &route, PJ_TRUE); } else{ // Handle failure } /*To Toggle b'en Loudspeaker / Earpiece - END */ Thanks, Srivatsan On 18-Jul-2010, at 2:57 PM, Shrouk Khan wrote: > hi, > i have been trying out the symbian_ua_gui with nokia APS / VAS and g729 . All seems to go fine. But i am having problem with low voice . So was wondering if there is a way to do it ? > > - for the loudspeaker , i found in http://trac.pjsip.org/repos/wiki/FAQ#sym-audio-routing :"Application may change the routing by calling pjmedia_snd_aps_activate_loudspeaker()" > but i can not find where this pjmedia_snd_aps_activate_loudspeaker is? am i missing something? > > - how do i change volume of the application while already in a call ? > > -- > Regards > > Shrouk Khan (Khan) > System Administrator / Telecommunication System Developer > Office: +354 4400807 (Reykjavik) > +44 2031370800 (London) > Mobile: +66 875049439 (Bangkok) > > Web: www.softverk.is > > Reykjavik, Iceland // London, UK // Bangkok, Thailand > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org