diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 2584fe8f9b..c1ad883359 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -3027,7 +3027,7 @@ static unsigned int calc_timestamp(struct chan_iax2_pvt *p, unsigned int ts, str * next multiple of frame size (so our * silent periods are multiples of * frame size too) */ - if (f->samples / 8) /* check to make sure we dont core dump */ + if (f->samples >= 8) /* check to make sure we dont core dump */ { int diff = ms % (f->samples / 8); if (diff)