Hello Benny, I use /pjsua_media_config_default/ function to initialize /pjsua_media_config. / audio_frame_ptime = PJSUA_DEFAULT_AUDIO_FRAME_PTIME = 20; ec_tail_len = PJSUA_DEFAULT_EC_TAIL_LEN = 200; snd_auto_close_time = 0; ptime = 0;/ / You are right, ptime is lower than 10ms, but I never defined before this field and it worked. where ptime is defined ? Thanks Samuel Benny Prijono a ?crit : > On Thu, Mar 12, 2009 at 11:23 PM, Samuel Vinson <samuelv at laposte.net > <mailto:samuelv at laposte.net>> wrote: > > Hello > > When I enable echo cancellation, my app crashes on iphone > > Thu Mar 12 21:27:09 Assertion failed: (N>0), function > echo_supp_cancel_echo, file ../src/pjmedia/echo_suppress.c, line 678. > Here is the lines of code : > N = ec->samples_per_frame / ec->samples_per_segment; > pj_assert(N>0); > > Do you have an idea where is the problem ? Do you have an idea how > to resolve this issue ? > > > Hi Samuel, that assertion says that you configured the echo suppressor > (or in this case, it's probably the sound device, since the EC setting > is derived from the sound device setting) with ptime lower than 10ms? > > cheers > Benny > > > > Thanks in advance. > > Samuel > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org <mailto:pjsip at lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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/20090313/1967c420/attachment.html>