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

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jun 30 00:22:48 MST 2006


Author: oej
Date: Fri Jun 30 02:22:47 2006
New Revision: 36356

URL: http://svn.digium.com/view/asterisk?rev=36356&view=rev
Log:
Store sysname even if we do not store fullcontact (thanks tholo)

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=36356&r1=36355&r2=36356&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jun 30 02:22:47 2006
@@ -2204,9 +2204,14 @@
 	else
 		syslabel = "regserver";
 
-	ast_update_realtime("sippeers", "name", peername, "ipaddr", ipaddr,
-		"port", port, "regseconds", regseconds,
-		"username", username, fc, fullcontact, syslabel, sysname, NULL); /* note fc _can_ be NULL */
+	if (fc)
+		ast_update_realtime("sippeers", "name", peername, "ipaddr", ipaddr,
+			"port", port, "regseconds", regseconds,
+			"username", username, fc, fullcontact, syslabel, sysname, NULL); /* note fc _can_ be NULL */
+	else
+		ast_update_realtime("sippeers", "name", peername, "ipaddr", ipaddr,
+			"port", port, "regseconds", regseconds,
+			"username", username, syslabel, sysname, NULL); /* note fc _can_ be NULL */
 }
 
 /*! \brief Automatically add peer extension to dial plan */



More information about the svn-commits mailing list