Export to GitHub

imsdroid - issue #250

echo cancel suport


Posted on Jun 27, 2011 by Swift Hippo

a) Before posting your issue you MUST answer to the questions otherwise it will be rejected (invalid status) by us b) Please check the issue tacker to avoid duplication c) Please provide network capture (wireshark) or Android log (DDMS output) if you want quick response

What steps will reproduce the problem? 1. 2. 3.

What is the expected output? What do you see instead?

Hi, bossiel, i have seen that imsdroid has add echo cancel model, but it seem that is has no effect at all, do you hava any hint or what do i need set ?

thanks .

What version of the product are you using? On what operating system?

Please provide any additional information below.

Comment #1

Posted on Jun 27, 2011 by Swift Cat

Yes, echo cancellation is now support in Doubango framework but disable on Android because of lack of support for low latency audio. To enable echo cancellation, change these lines: http://code.google.com/p/imsdroid/source/browse/branches/2.0/android-ngn-stack/src/org/doubango/ngn/media/NgnProxyPluginMgr.java#56

to: MediaSessionMgr.defaultsSetEchoSuppEnabled(true); you will also need large echo tail (because of audio delay on Android). To set the echo tail: MediaSessionMgr.defaultsSetEchoTail(echo_tail); // echo_tail: number of packets

Comment #2

Posted on Jun 28, 2011 by Quick Camel

Hi boss..., Please tell mw how to set right echo_tail value? THanks so much.

Comment #3

Posted on Jun 28, 2011 by Swift Hippo

as android has latency in audio, and speex fuction SpeexEchoState *speex_echo_state_init(int frame_size, int filter_length); the desc imply that the filter_length shuld be 100~500ms.

Comment #4

Posted on Jun 29, 2011 by Swift Hippo

thanks for your time bossiel, i have seach a lot about echo in android, and some othe sip softphone has many discuss adout this , and may this is a bug in andoid , you may check link below, they discuss something about Audio mode for SIP calls in android , in file setSpeakerphoneOn , i see that some place relate to this, it seems that we should use MODE_NORMAL instead if MODE_IN_CALL, may this help you, thanks.

http://code.google.com/p/csipsimple/issues/detail?id=119#c38

Comment #5

Posted on Jun 29, 2011 by Swift Hippo

sorry, it is setSpeakerphoneOn function that in file ngnproxaudioconsumer.java :)

Comment #6

Posted on Jul 12, 2011 by Swift Hippo

we have resole it. use speex, thanks.

Comment #7

Posted on Jul 13, 2011 by Swift Cat

Fixed by IMSDroid 2.0.431

Status: Fixed

Labels:
Type-Defect Priority-Medium