3

I have integrated pjsip for Android and every thing is fine. But I am having only one problem that is echo.

Here is mycode in MyApp.java

/* Set media config. */
MediaConfig media_cfg =epConfig.getMedConfig();
media_cfg.setSndAutoCloseTime(0);
media_cfg.setEcOptions(2);
media_cfg.setEcTailLen(100);

Your help help will be appreciated.

Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123
Gangadhar Nimballi
  • 1,534
  • 3
  • 18
  • 46
  • Put question on pjsip group thread .Hope it will help.Also see this http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__Echo__Cancel.htm – Sneha Bansal Jul 07 '15 at 06:53
  • did you find a solution to this, we have the same problem when we use the speakers – memical Feb 17 '16 at 16:47
  • we moved to the latest pjsip version (from SVN) and integrated the WebRTC echo cancellation as described here: https://trac.pjsip.org/repos/ticket/1888#no1 it works quite well for now – memical Feb 20 '16 at 19:26

1 Answers1

0

Try something like:

static class pjmedia_echo_flag {
            static long PJMEDIA_ECHO_WEBRTC = 3,
                    PJMEDIA_ECHO_USE_NOISE_SUPPRESSOR = 128,
                    PJMEDIA_ECHO_AGGRESSIVENESS_AGGRESSIVE = 0x300;
        }

    epConfig.getMedConfig().setEcOptions(pjmedia_echo_flag.PJMEDIA_ECHO_WEBRTC|
                pjmedia_echo_flag.PJMEDIA_ECHO_USE_NOISE_SUPPRESSOR|
                pjmedia_echo_flag.PJMEDIA_ECHO_AGGRESSIVENESS_AGGRESSIVE);