]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Merge "interval == 0" workaround from personal rework branch, still need to investiga...
authorStefan Knoblich <stkn@freeswitch.org>
Mon, 16 Mar 2009 21:04:22 +0000 (21:04 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Mon, 16 Mar 2009 21:04:22 +0000 (21:04 +0000)
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

index f8bb7ef7a838676343710bf5aa5bad372bae9eff..105522cb81f9212c5b31068c2571ce450f80471f 100644 (file)
@@ -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;