aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-11 14:10:38 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-11 14:10:38 +0000
commit3c6aba1a6f49e646598744fae49ecb786db97b9e (patch)
tree3b82ec48c0ad1ec2c87a76227fb1e639361a6c34
parentf39304a785d688a636540e890ea6d80a52a1f991 (diff)
Merged revisions 74515 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r74515 | file | 2007-07-11 11:09:13 -0300 (Wed, 11 Jul 2007) | 2 lines 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/trunk@74516 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_phone.c2
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))