c# - Audio feedback using RIL Audio on SmartPhone -


We are working on a SIP softphone and when we call from one phone to another, we get the audio response However, when we call our app from a normal SIP phone (software or hardware), it all works well - this is when call from one phone to another phone starts RIL audio To do this we have the code used here:

 < Code> public static zero InitRILAudio () {IntPtr res; RILRESULTCALLBACK result = new RILRESULTCALLBACK (f_result); Inform RILNOTIFYCALLBACK = new RILNOTIFYCALLBACK (f_notify); Res = RIL_Initialize (1, result, notify, (0x00010000 | 0x00020000 | 0x00080000), 0, outside HRil); If (res! = IntPtr.Zero) return; RadioteVision FOODIO AUDIODOVINFO = NEW REALAUDODEVISONFOO (); AudioDeviceInfo.cbSize = 16; AudioDeviceInfo.dwParams = 0x00000003; // RIL_PARAM_ADI_ALL; AudioDeviceInfo.dwRxDevice = 0x00000001; // RIL_AUDIO_HANDSET; Audiovisivefondroidxdice = 0x00000001; // RIL_AUDIO_HANDSET; Res = RIL_SetAudioDevices (HR, AudiDeviceInfo); }  

We are using SIPEk () for SIP stack. Basically we only use a callback representative from the SDK for audio content, is there any other problem with loops like this kind of audio feedback? Either with RIL Audio or SIPE? Any suggestions?

Thanks in advance!

Feedback means that you are not echo cancellation (line and / or acoustic, it's a speakerphone Depending on whether or not you are working, delay in your system (jitter buffers, network, encoding / decode, etc.) can handle echo canceller. Excessive profits / clippings in the wrong places can defeat any Eco Canceller (they do not like non-linear effects).

SipEk is just a wrapper for pjsip, but I think that you are doing audio via Microsoft RIL / etc stuff, pjmedia Not through You should have a good understanding of your audio paths - where the stuff is sampled, if / how the acoustic / line resonates, whether the echo tail is, how it is encoded and packaged, how it is obtained , Jitter-Buffford, Damage-Confiscated, and decoded and played back.


Comments