[Freeswitch-svn] [commit] r2071 - freeswitch/branches/mishehu/src/mod/loggers/mod_cdr

Freeswitch SVN mishehu at freeswitch.org
Mon Jul 24 00:47:50 EDT 2006


Author: mishehu
Date: Mon Jul 24 00:47:50 2006
New Revision: 2071

Modified:
   freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/basecdr.cpp
   freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/pddcdr.cpp

Log:
Fixed two minor bugs found when building BaseCDR on Win32.

Modified: freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/basecdr.cpp
==============================================================================
--- freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/basecdr.cpp	(original)
+++ freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/basecdr.cpp	Mon Jul 24 00:47:50 2006
@@ -172,8 +172,7 @@
 void BaseCDR::parse_channel_variables_xconfig(std::string& unparsed,std::list<std::string>& chanvarlist,bool fixed)
 {
 	std::string tempstring;
-	long j = 0;
-	for(std::string::size_type i = 0; j != -1; )
+	for(std::string::size_type i = 0, j = 0; j != std::string::npos; )
 	{
 		j = unparsed.find(',',i);
 		if(j > 0)
@@ -311,7 +310,8 @@
 // This one is for processing of supplemental chanvars
 void BaseCDR::process_channel_variables(const std::list<std::string>& stringlist, const std::list<std::string>& fixedlist, switch_channel_t *channel,bool repeat)
 {
-	if(stringlist.front() == "*")
+	std::string tempstring = stringlist.front();
+	if(tempstring == "*")
 	{
 		switch_hash_index_t *hi;
 		void *val;

Modified: freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/pddcdr.cpp
==============================================================================
--- freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/pddcdr.cpp	(original)
+++ freeswitch/branches/mishehu/src/mod/loggers/mod_cdr/pddcdr.cpp	Mon Jul 24 00:47:50 2006
@@ -5,8 +5,7 @@
 * <freeswitch AT cartissolutions.com>
 *
 * Description: This C++ source file describes the PddCDR class which handles formatting a CDR out to
-* individual text files in a Perl Data Dumper format.  It is named in honor of Anthony Minnesale, as he
-* was the initial requester of this format.
+* individual text files in a Perl Data Dumper format.
 *
 *
 * Version: MPL 1.1



More information about the Freeswitch-svn mailing list