From: Stefan Knoblich Date: Mon, 16 Mar 2009 21:04:22 +0000 (+0000) Subject: Merge "interval == 0" workaround from personal rework branch, still need to investiga... X-Git-Tag: v1.0.6~38^3~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c30aac4629dcfde3fe2340965c5df48f6d11ba6e;p=thirdparty%2Ffreeswitch.git Merge "interval == 0" workaround from personal rework branch, still need to investigate why wanpipe does not provide this information (and if 20ms is a good default value) git-svn-id: http://svn.openzap.org/svn/openzap/trunk@699 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c b/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c index f8bb7ef7a8..105522cb81 100644 --- a/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c +++ b/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c @@ -1490,10 +1490,11 @@ static void *zap_isdn_tones_run(zap_thread_t *me, void *obj) break; } } + if (!interval) { + interval = 20; + } zap_log(ZAP_LOG_NOTICE, "Tone generating interval %d\n", interval); - assert(interval != 0); - /* init teletone */ teletone_init_session(&ts, 0, teletone_handler, dt_buffer); ts.rate = 8000;