[asterisk-commits] tilghman: branch 1.6.1 r176503 - in /branches/1.6.1: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 17 08:48:01 CST 2009


Author: tilghman
Date: Tue Feb 17 08:48:01 2009
New Revision: 176503

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176503
Log:
Merged revisions 176501 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176501 | tilghman | 2009-02-17 08:39:36 -0600 (Tue, 17 Feb 2009) | 3 lines
  
  In this version, we can combine the queries, because we support dropping
  nonexistent columns.
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/channels/chan_sip.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/channels/chan_sip.c?view=diff&rev=176503&r1=176502&r2=176503
==============================================================================
--- branches/1.6.1/channels/chan_sip.c (original)
+++ branches/1.6.1/channels/chan_sip.c Tue Feb 17 08:48:01 2009
@@ -3769,18 +3769,15 @@
 		ast_update_realtime(tablename, "name", peername, "ipaddr", ipaddr,
 			"port", port, "regseconds", regseconds,
 			deprecated_username ? "username" : "defaultuser", defaultuser,
-			"useragent", useragent,
+			"useragent", useragent, "lastms", str_lastms,
 			fc, fullcontact, syslabel, sysname, SENTINEL); /* note fc and syslabel _can_ be NULL */
 	} else {
 		ast_update_realtime(tablename, "name", peername, "ipaddr", ipaddr,
 			"port", port, "regseconds", regseconds,
-			"useragent", useragent,
+			"useragent", useragent, "lastms", str_lastms,
 			deprecated_username ? "username" : "defaultuser", defaultuser,
 			syslabel, sysname, SENTINEL); /* note syslabel _can_ be NULL */
 	}
-	/* We cannot do this in the same statement as above, because the lack of
-	 * this field could cause the whole statement to fail. */
-	ast_update_realtime("sippeers", "name", peername, "lastms", str_lastms, NULL);
 }
 
 /*! \brief Automatically add peer extension to dial plan */




More information about the asterisk-commits mailing list