[asterisk-commits] file: trunk r74516 - in /trunk: ./ channels/chan_phone.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 11 09:10:38 CDT 2007


Author: file
Date: Wed Jul 11 09:10:38 2007
New Revision: 74516

URL: http://svn.digium.com/view/asterisk?view=rev&rev=74516
Log:
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)

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_phone.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_phone.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_phone.c?view=diff&rev=74516&r1=74515&r2=74516
==============================================================================
--- trunk/channels/chan_phone.c (original)
+++ trunk/channels/chan_phone.c Wed Jul 11 09:10:38 2007
@@ -1068,7 +1068,7 @@
 		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))




More information about the asterisk-commits mailing list