char path[255] = "";
char *err = NULL;
unsigned paramindex = 0;
+ zap_status_t rc = ZAP_SUCCESS;
for (; zap_parameters[paramindex].var; paramindex++) {
var = zap_parameters[paramindex].var;
FAIL_CONFIG_RETURN(ZAP_FAIL);
}
+ rc = sigmod_iface->on_load();
+ if (rc != ZAP_SUCCESS) {
+ zap_log(ZAP_LOG_ERROR, "Failed to load Sangoma boost signaling module interface '%s': on_load method failed (%d)\n", path, rc);
+ FAIL_CONFIG_RETURN(ZAP_FAIL);
+ }
sigmod_iface->pvt = lib;
sigmod_iface->set_write_msg_cb(zap_boost_write_msg);
sigmod_iface->set_sig_status_cb(zap_boost_sig_status_change);
/*! \brief the module was just loaded */
boost_on_load_func_t on_load;
/*! \brief the module is about to be unloaded */
- boost_on_load_func_t on_unload;
+ boost_on_unload_func_t on_unload;
/*! \brief private pointer for the interface user */
void *pvt;
} boost_sigmod_interface_t;