mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Add a post_apply callback to the Config Options API
This adds a callback that only fires when changes have been successfully applied via the Config Options API. Review: https://reviewboard.asterisk.org/r/1980/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -480,6 +480,10 @@ try_alias:
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (info->post_apply_config) {
|
||||
info->post_apply_config();
|
||||
}
|
||||
|
||||
end:
|
||||
ao2_cleanup(info->internal->pending);
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user