[asterisk-commits] mnicholson: branch 1.4 r286756 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 14 14:26:24 CDT 2010


Author: mnicholson
Date: Tue Sep 14 14:26:18 2010
New Revision: 286756

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=286756
Log:
Don't clear the username from a realtime database when a registration expires.

Non-realtime chan_sip does not clear the username from memory when a registration expiries so realtime probably shouldn't either.

(closes issue #17551)
Reported by: ricardolandim
Patches:
      reg-expiry-username-1.4-fix1.diff uploaded by mnicholson (license 96)
      reg-expiry-username-1.6.2-fix1.diff uploaded by mnicholson (license 96)
      reg-expiry-username-1.8-fix1.diff uploaded by mnicholson (license 96)
      reg-expiry-username-trunk-fix1.diff uploaded by mnicholson (license 96)
Tested by: ricardolandim, mnicholson

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=286756&r1=286755&r2=286756
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Sep 14 14:26:18 2010
@@ -8543,7 +8543,7 @@
 {
 	if (!ast_test_flag(&global_flags[1], SIP_PAGE2_IGNOREREGEXPIRE)) {
 		if (ast_test_flag(&peer->flags[1], SIP_PAGE2_RT_FROMCONTACT) && ast_test_flag(&global_flags[1], SIP_PAGE2_RTUPDATE)) {
-			ast_update_realtime("sippeers", "name", peer->name, "fullcontact", "", "ipaddr", "", "port", "", "regseconds", "0", "username", "", "regserver", "", NULL);
+			ast_update_realtime("sippeers", "name", peer->name, "fullcontact", "", "ipaddr", "", "port", "", "regseconds", "0", "regserver", "", NULL);
 			ast_update_realtime("sippeers", "name", peer->name, "lastms", "", NULL);
 		} else 
 			ast_db_del("SIP/Registry", peer->name);




More information about the asterisk-commits mailing list