From c30aac4629dcfde3fe2340965c5df48f6d11ba6e Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Mon, 16 Mar 2009 21:04:22 +0000 Subject: [PATCH] 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 --- libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;