From 0b75f2de272136bc528adec6677c4150c8e4a48c Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Wed, 18 Nov 2009 17:13:33 +0000 Subject: [PATCH] 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 --- libs/freetdm/mod_openzap/mod_openzap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/freetdm/mod_openzap/mod_openzap.c b/libs/freetdm/mod_openzap/mod_openzap.c index 6ba5ee724e..d5ad1875ef 100644 --- a/libs/freetdm/mod_openzap/mod_openzap.c +++ b/libs/freetdm/mod_openzap/mod_openzap.c @@ -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;