]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add missing makefile
authorMathieu Rene <mrene@avgs.ca>
Sat, 17 Jul 2010 03:06:27 +0000 (23:06 -0400)
committerMathieu Rene <mrene@avgs.ca>
Sat, 17 Jul 2010 03:06:27 +0000 (23:06 -0400)
src/mod/applications/mod_hash/Makefile [new file with mode: 0644]
src/mod/applications/mod_hash/mod_hash.c

diff --git a/src/mod/applications/mod_hash/Makefile b/src/mod/applications/mod_hash/Makefile
new file mode 100644 (file)
index 0000000..0ee5f77
--- /dev/null
@@ -0,0 +1,4 @@
+LOCAL_CFLAGS=-I../../../../libs/esl/src/include
+LOCAL_LDFLAGS=-L../../../../libs/esl -lesl
+BASE=../../../..
+include $(BASE)/build/modmake.rules
index 0be78670e7fdb927289c7af3838ae478b0ca95cd..0d86c4d59129b1ce840905fd41208cc51a1d534a 100644 (file)
@@ -597,14 +597,14 @@ static void *SWITCH_THREAD_FUNC limit_remote_thread(switch_thread_t *thread, voi
 {
        limit_remote_t *remote = (limit_remote_t*)obj;
        while (remote->state > REMOTE_OFF) {
-               if (remote->state == REMOTE_OFF) {
+               if (remote->state != REMOTE_UP) {
                        if  (esl_connect(&remote->handle, remote->host, remote->port, remote->username, remote->password) == ESL_SUCCESS) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Connected to remote FreeSWITCH at %s:%d\n",
                                        remote->host, remote->port);
                                
                                remote->state = REMOTE_UP;
                        } else {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't connect to remote FreeSWITCH at %s;%d\n",
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't connect to remote FreeSWITCH at %s:%d\n",
                                        remote->host, remote->port);
                        }
                } else {
@@ -661,6 +661,7 @@ static void do_config()
                                switch_thread_create(&remote->thread, thd_attr, limit_remote_thread, remote, remote->pool);
                        }
                }
+               switch_xml_free(xml);
        }
 }