[asterisk-commits] twilson: branch 1.8 r319552 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 18 15:22:43 CDT 2011


Author: twilson
Date: Wed May 18 15:22:36 2011
New Revision: 319552

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=319552
Log:
Unbreak the storing of registrations for restart

The fix for issue 18882 broke retrieving non-realtime peers from the ast_db
on restart/reload. This patch tries to unbreak things while leaving the intent
of the original fix intact.
(closes issue #19318)
Reported by: remiq
Patches: 
      diff.txt uploaded by twilson (license 396)
Tested by: lmadsen, remiq

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=319552&r1=319551&r2=319552
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed May 18 15:22:36 2011
@@ -26740,7 +26740,7 @@
 		sip_cfg.allowsubscribe = TRUE;	/* No global ban any more */
 	}
 	/* If read-only RT backend, then refresh from local DB cache */
-	if (peer->host_dynamic && !sip_cfg.peer_rtupdate) {
+	if (peer->host_dynamic && (!peer->is_realtime || !sip_cfg.peer_rtupdate)) {
 		reg_source_db(peer);
 	}
 




More information about the asterisk-commits mailing list