freeswitch/libs/freetdm
Stefan Knoblich 02b2926351 [FreeTDM] Fix segfault in ftdm_analog_configure_span() on startup.
Using ftdm_log_chan() in ftdm_analog_configure_span() is a bad idea,
since the span won't have any channels assigned.

This bug powered by declaring all variables at the top of the function,
even if they are used in an if branch at the end.

A C99'ish:

	if (callwaiting) {
		for (unsigned int i = 1; i <= span->span->chan_count; i++) {
			/* ... */
		}
	}

would have alerted the developer adding the log statement.
But since we can't have nice things (thanks MSVC for not supporting C99!)
</rant>

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2011-03-06 19:42:47 +01:00
..
build FreeTDM: Buildsystem cleanup 2010-11-01 02:13:27 +01:00
conf freetdm: ftmod_analog - Add timeout parameter for dial tone. 0 means not waiting for dial tone. 2011-02-25 10:35:25 -05:00
docs added documentation 2011-01-19 14:18:23 -05:00
mod_freetdm freetdm: ftmod_analog - Add timeout parameter for dial tone. 0 means not waiting for dial tone. 2011-02-25 10:35:25 -05:00
msvc OPENZAP-140 VS2010 build cleanup 2011-01-31 10:12:28 -06:00
sample created cmake files for freetdm 2010-10-06 17:51:29 -03:00
src [FreeTDM] Fix segfault in ftdm_analog_configure_span() on startup. 2011-03-06 19:42:47 +01:00
.gitignore FreeTDM: Update .gitignore, add files shipped with libtool (build/{libtool,lt*}.m4) and compiled test binaries 2010-11-06 16:06:42 +01:00
.update OPENZAP-22 add configuration settable debug levels for isdn trunks 2008-10-03 21:57:57 +00:00
AUTHORS convert to automake (still not really using automake in a useful way) 2009-02-03 04:51:53 +00:00
CMakeLists.txt created cmake files for freetdm 2010-10-06 17:51:29 -03:00
ChangeLog convert to automake (still not really using automake in a useful way) 2009-02-03 04:51:53 +00:00
Makefile.am [FreeTDM] Add --with-pkgconfigdir option to FreeTDM. 2011-02-19 23:35:41 +01:00
NEWS convert to automake (still not really using automake in a useful way) 2009-02-03 04:51:53 +00:00
README freetdm: add mkrelease.sh script 2010-09-30 17:58:25 -04:00
TODO freetdm: added threaded media to the TODO 2011-01-21 10:51:34 -05:00
acinclude.m4 add libpcap detection 2009-02-03 16:41:48 +00:00
bootstrap freetdm: use /bin/sh and not /bin/bash in the bootstrap script 2011-01-06 09:51:17 -05:00
configure.ac [FreeTDM] Add --with-pkgconfigdir option to FreeTDM. 2011-02-19 23:35:41 +01:00
configure.gnu fix configure --srcdir for freetdm 2010-12-10 14:56:29 -05:00
cyginstall.sh freetdm: add WIN32_LEAN_AND_MEAN fix 2011-01-27 17:27:50 -05:00
freetdm.2008.sln Merge remote branch 'fsorig/master' 2010-12-06 15:10:53 -05:00
freetdm.2010.sln Freetdm windows fixes 2010-12-09 08:59:06 -06:00
freetdm.pc.in [FreeTDM] Add modulesdir to freetdm.pc.in 2010-07-05 23:54:33 +02:00
mkrelease.sh freetdm: add mkrelease.sh script 2010-09-30 17:58:25 -04:00
ozrename.sh Linux renaming from openzap to freetdm 2010-01-15 19:22:49 +00:00
ozreplace.sh added ozreplace.sh handy script 2010-02-09 19:25:26 +00:00

README

FreeTDM
http://wiki.freeswitch.org/wiki/FreeTDM