From 058a40ff02ed3d5ed29ab7d16bde9c1fba0cd57f Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 11 Jul 2007 14:09:13 +0000 Subject: [PATCH] Only check if we need to do a SIGMA based tone generation if we have a card. (issue #10179 reported by mikowhy) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74515 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_phone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_phone.c b/channels/chan_phone.c index d5b4500a9d..2e6d89bc2e 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -1044,7 +1044,7 @@ static void *do_monitor(void *data) ast_mutex_unlock(&iflock); /* Wait indefinitely for something to happen */ - if (dotone && i->mode != MODE_SIGMA) { + if (dotone && i && i->mode != MODE_SIGMA) { /* If we're ready to recycle the time, set it to 30 ms */ tonepos += 240; if (tonepos >= sizeof(DialTone))