[svn-commits] trunk r21262 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Apr 18 17:04:07 MST 2006


Author: oej
Date: Tue Apr 18 19:04:03 2006
New Revision: 21262

URL: http://svn.digium.com/view/asterisk?rev=21262&view=rev
Log:
Cosmetic fixes to code...

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=21262&r1=21261&r2=21262&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Apr 18 19:04:03 2006
@@ -3121,7 +3121,8 @@
 	for (v = i->chanvars ; v ; v = v->next)
 		pbx_builtin_setvar_helper(tmp,v->name,v->value);
 
-	append_history(i, "NewChan", "Channel %s - from %s", tmp->name, i->callid);
+	if (recordhistory)
+		append_history(i, "NewChan", "Channel %s - from %s", tmp->name, i->callid);
 				
 	return tmp;
 }
@@ -10791,7 +10792,7 @@
 		if (sep)
 			*sep = '\0';
 	}
-	return thetag;	/* XXX maybe this should be tagbuf instead ? */
+	return tagbuf;
 }
 
 /*! \brief Handle incoming notifications */



More information about the svn-commits mailing list