]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Resolved conflict
authorMoises Silva <moy@sangoma.com>
Fri, 20 Nov 2009 16:42:31 +0000 (16:42 +0000)
committerMoises Silva <moy@sangoma.com>
Fri, 20 Nov 2009 16:42:31 +0000 (16:42 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@890 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/ozmod/ozmod_sangoma_boost/ozmod_sangoma_boost.c
libs/freetdm/src/ozmod/ozmod_sangoma_boost/sangoma_boost_interface.h

index 32af0a5c4812137b304e1e02a9889364b3fca270..783200a536fd4f897ba4f3ff5fe1b541ffd99137 100644 (file)
@@ -1595,6 +1595,7 @@ static ZIO_CONFIGURE_SPAN_SIGNALING_FUNCTION(zap_sangoma_boost_configure_span)
        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;
@@ -1646,6 +1647,11 @@ static ZIO_CONFIGURE_SPAN_SIGNALING_FUNCTION(zap_sangoma_boost_configure_span)
 
                        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);
index bcd21849910bb45b84f8b520d0fd6181e7bf2f8d..3b5d11b00705b7e5c26790a8c60f9dc4588aeda0 100644 (file)
@@ -183,7 +183,7 @@ typedef struct boost_sigmod_interface_s {
        /*! \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;