Echo Cancellation PJSIP/C++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is with regards to Echo Cancellation in C++/PJSIP classes:

 

The method of AudDevManager is to be used to set Echo Cancellation:

    

     * @param tail_msec         The tail length, in miliseconds. Set to zero
to

     *                          disable AEC.

     * @param options           Options to be passed to
pjmedia_echo_create().

     *                          Normally the value should be zero.

void setEcOptions(unsigned tail_msec, unsigned options) throw(Error);

 

Is there an example  code which can be shared showing how to effectively use
this API to manage echo cancellation. Thanks for your help!!

 

Regards,

    Sanjay

 

Read on how www.safetylink.org <http://www.safetylink.org/index.html>  saves
lives.

Ottawa - +1 613-203-6162, + 1 613 800 9794

New Delhi - +91 813 060 0664, +91 98 11 420 365

 

From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Stefan
Engstr?m
Sent: April-20-15 5:26 PM
To: pjsip at lists.pjsip.org
Subject: segfault stun_session.c

 

Hello, 

 

When my Asterisk 13 application calls pj_ice_sess_on_rx_pkt (using pjnath
2.2) it seems to result in a segmentation fault in less than 1 of 10000
calls.

 

I took a look at the crashdump and the source code of stun_session.c where
the segfault occurs. It seems the relevant code segments are similar in
versions , 2.2-2.4 therefore I ask straight away rather than upgrading to
latest pjnath and waiting for next crash (crashes occur less than every 2
weeks)

 

http://pastebin.com/DiVyUgTkhttp://pastebin.com/DiVyUgTk

 

I want to ask what is supposed to prevent t from being 0x0 in that function
(before calling t->...)

 

I'm thinking of adding a 't &&' in those while and if conditions...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150511/e43d52b6/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux