Hi John, sorry for the late reply! This is very useful indeed. Unfortunately the current sound device API doesn't support audio routing, but I have plan to revamp that and by then I will incorporate this to the new API. In the meantime, I guess people will have to use this code in the application space. Thanks again, Benny On Thu, Dec 11, 2008 at 1:23 PM, John Mervin <johnmervin83 at gmail.com> wrote: > Hi Experts, > > I think i found a solution for the earpiece in windows mobile device like > HTC, Samsung and others. > The solution is to use the ril dll in the mobile device system like msdn > said. > > The structure for the audio device that we can found in ril.h from > microsoft: > > HRESULT RIL_GetAudioDevices( > HRIL hRil // @parm handle to RIL instance > returned by <f RIL_Initialize> > ); > > HRESULT RIL_SetAudioDevices( > HRIL hRil, // @parm handle to RIL > instance returned by <f RIL_Initialize> > const RILAUDIODEVICEINFO* lpAudioDeviceInfo // @parm audio devices to > set > ); > > #define RIL_AUDIO_NONE (0x00000000) // > @constdefine No audio devices > #define RIL_AUDIO_HANDSET (0x00000001) // > @constdefine Handset > #define RIL_AUDIO_SPEAKERPHONE (0x00000002) // > @constdefine Speakerphone > #define RIL_AUDIO_HEADSET (0x00000003) // > @constdefine Headset > #define RIL_AUDIO_CARKIT (0x00000004) // > @constdefine Carkit > > Ok but how to implement this in PJSIP ? > It's just to solve this issue that many users have with this mobile system, > the sound is in the rearpiece and not to the earpiece like we can see with > Skype. > So you have echo, it's not a private call because every people around you > can listen what you hear ... > In Symbian, it's different they already have the solution with PJSIP and in > internal code to route the speech. > > Anybody's interrested by this implementation ? May be by Nanang or Benny ? > > I'm waiting your posts. > > _______________________________________________ > 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/20090120/3848bbee/attachment.html>