[asterisk-commits] jrose: branch 12 r401158 - /branches/12/res/res_parking.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 17 13:16:35 CDT 2013


Author: jrose
Date: Thu Oct 17 13:16:33 2013
New Revision: 401158

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=401158
Log:
res_parking: Fix bug where reloading immediately wipes new parkpos extensions

(closes issue ASTERISK-22631)
Reported by: Kevin Harwell

Modified:
    branches/12/res/res_parking.c

Modified: branches/12/res/res_parking.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_parking.c?view=diff&rev=401158&r1=401157&r2=401158
==============================================================================
--- branches/12/res/res_parking.c (original)
+++ branches/12/res/res_parking.c Thu Oct 17 13:16:33 2013
@@ -623,6 +623,9 @@
 		 */
 		ast_context_destroy(NULL, lot_cfg->registrar);
 	}
+
+	/* If we come back for a second pass, someone else has this registrar now. */
+	ast_string_field_set(lot_cfg, registrar, "");
 }
 
 static void remove_all_configured_parking_lot_extensions(void)




More information about the asterisk-commits mailing list