diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-11 14:09:13 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-11 14:09:13 +0000 |
commit | 295254337cafa5906980768e11c7623234858740 (patch) | |
tree | 43a41c15ea24820e18d9bb98092f81b235cd1e09 | |
parent | f3527da49e8310cb0cbc2eccf14ed7814a506f72 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@74515 f38db490-d61c-443f-a65b-d21fe96a405b
-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 d5b4500a9..2e6d89bc2 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)) |