Module: kamailio Branch: master Commit: 9dccaff661f4d4a1dfcb9b062235ce4ce904b991 URL: https://github.com/kamailio/kamailio/commit/9dccaff661f4d4a1dfcb9b062235ce4c...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2015-07-31T11:03:02+02:00
jsonrpc-c: don't fail if no connection to any of the servers when module is loaded
Related: #269
---
Modified: modules/jsonrpc-c/jsonrpc_io.c
---
Diff: https://github.com/kamailio/kamailio/commit/9dccaff661f4d4a1dfcb9b062235ce4c... Patch: https://github.com/kamailio/kamailio/commit/9dccaff661f4d4a1dfcb9b062235ce4c...
---
diff --git a/modules/jsonrpc-c/jsonrpc_io.c b/modules/jsonrpc-c/jsonrpc_io.c index f001543..a6f06e5 100644 --- a/modules/jsonrpc-c/jsonrpc_io.c +++ b/modules/jsonrpc-c/jsonrpc_io.c @@ -85,8 +85,7 @@ int jsonrpc_io_child_process(int cmd_pipe, char* _servers)
if (!connect_servers(server_group)) { - LM_ERR("failed to connect to any servers\n"); - return -1; + LM_WARN("failed to connect to any servers\n"); }
event_dispatch();