Fix for zap_global_config not called

git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@882 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
David Yat Sin 2009-11-18 17:13:33 +00:00
parent 77e5eb21bf
commit 0b75f2de27
1 changed files with 5 additions and 0 deletions

View File

@ -2881,6 +2881,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_openzap_load)
return SWITCH_STATUS_TERM;
}
if (zap_global_configuration() != ZAP_SUCCESS) {
zap_log(ZAP_LOG_ERROR, "Error configuring OpenZAP\n");
return SWITCH_STATUS_TERM;
}
if (load_config() != SWITCH_STATUS_SUCCESS) {
zap_global_destroy();
return SWITCH_STATUS_TERM;