summaryrefslogtreecommitdiff
path: root/res/res_parking.c
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2013-10-17 18:25:35 +0000
committerJonathan Rose <jrose@digium.com>2013-10-17 18:25:35 +0000
commit9a451737152207c92b4418e0e9efd7e4de7ac41c (patch)
treebc8d289ccd8e4d006de769e2085a581228c13f09 /res/res_parking.c
parent4cdd02ce26e3da8b2a609fd5b2d170465d69ed47 (diff)
res_parking: Fix bug where reloading immediately wipes new parkpos extensions
(closes issue ASTERISK-22631) Reported by: Kevin Harwell ........ Merged revisions 401158 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_parking.c')
-rw-r--r--res/res_parking.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_parking.c b/res/res_parking.c
index 211bbf8a8..881bb1288 100644
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -623,6 +623,9 @@ void parking_lot_cfg_remove_extensions(struct parking_lot_cfg *lot_cfg)
*/
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)