mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
add missing makefile
This commit is contained in:
parent
a55747aae2
commit
9f7e98e01f
4
src/mod/applications/mod_hash/Makefile
Normal file
4
src/mod/applications/mod_hash/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
LOCAL_CFLAGS=-I../../../../libs/esl/src/include
|
||||||
|
LOCAL_LDFLAGS=-L../../../../libs/esl -lesl
|
||||||
|
BASE=../../../..
|
||||||
|
include $(BASE)/build/modmake.rules
|
@ -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;
|
limit_remote_t *remote = (limit_remote_t*)obj;
|
||||||
while (remote->state > REMOTE_OFF) {
|
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) {
|
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",
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Connected to remote FreeSWITCH at %s:%d\n",
|
||||||
remote->host, remote->port);
|
remote->host, remote->port);
|
||||||
|
|
||||||
remote->state = REMOTE_UP;
|
remote->state = REMOTE_UP;
|
||||||
} else {
|
} 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);
|
remote->host, remote->port);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -661,6 +661,7 @@ static void do_config()
|
|||||||
switch_thread_create(&remote->thread, thd_attr, limit_remote_thread, remote, remote->pool);
|
switch_thread_create(&remote->thread, thd_attr, limit_remote_thread, remote, remote->pool);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
switch_xml_free(xml);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user