diff options
Diffstat (limited to 'channels/chan_phone.c')
-rw-r--r-- | channels/chan_phone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 781431ce2..91feea175 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -1068,7 +1068,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)) |