projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef6fcff
)
freeswitch plugin: Added error checking on connecting to esl on _init
author
Leon de Rooij
<leon@scarlet-internet.nl>
Tue, 28 Apr 2009 09:08:54 +0000
(11:08 +0200)
committer
Florian Forster
<sifnfors@informatik.stud.uni-erlangen.de>
Thu, 16 Jul 2009 08:55:25 +0000
(10:55 +0200)
src/freeswitch.c
patch
|
blob
|
history
diff --git
a/src/freeswitch.c
b/src/freeswitch.c
index
b483ad3
..
b59f7aa
100644
(file)
--- a/
src/freeswitch.c
+++ b/
src/freeswitch.c
@@
-509,7
+509,11
@@
static int fs_init (void)
/* Connect to FreeSWITCH over ESL */
DEBUG ("freeswitch plugin: making ESL connection to %s %s %s\n", fs_host, fs_port, fs_pass);
- esl_connect(&esl_handle, fs_host, atoi(fs_port), fs_pass);
+ if (esl_connect(&esl_handle, fs_host, atoi(fs_port), fs_pass))
+ {
+ ERROR ("freeswitch plugin: connection failed [%s]", esl_handle.err);
+ return (-1);
+ }
/* Start a seperate thread for incoming events here */
//esl_thread_create_detached(msg_thread_run, &esl_handle);