Windows phone 8 pjsip audio routes to speaker phone instead of earpiece always

382 views Asked by At

Ive build the sample pjsip library for windows phone and successfully registered and made a call.

butproblem is audio is always on speaker phone,not on earpiece ,

can anyone help to make the earpiece the default audio route always ?

Thanks

2

There are 2 answers

3
Houston On

Access to audio routes is only allowed when a "Windows Voip Call" is active. This is achieved by calling the NotifyCallActive method on the VoipPhoneCall object. The VoipPhoneCall object is returned via a call to the RequestNewOutgoingCall method of the VoipCallCoordinator class. I've tried integrating PJSIP into the Windows Phone 8 voip framework but PJSIP is not able to run in the background process. Still trying to figure that one out.

11
Nuno Centeio On

You can't with the PJSip sample. If you search in pjmedia_audiodev you'll discover a TODO tag. Also, the sample does not manage VoIP calls, therefore you can route to the earpiece.

I hope this helps.