summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-03-17 08:31:07 +0100
committerAndreas Eversberg2010-03-17 08:31:07 +0100
commit2732c3ce40d8e0b3875b5a0c933c98f27c8cbae9 (patch)
tree8d16fbc8e905e8adfe6129a52bdb511abc031f2e /chan_lcr.c
parentFixed includes to latest mISDNuser structures. (diff)
downloadlcr-2732c3ce40d8e0b3875b5a0c933c98f27c8cbae9.tar.gz
lcr-2732c3ce40d8e0b3875b5a0c933c98f27c8cbae9.tar.xz
lcr-2732c3ce40d8e0b3875b5a0c933c98f27c8cbae9.zip
Fixed output problems of error messages while parsing options.conf / gsm.conf.
modified: Makefile.in modified: bchannel.c modified: chan_lcr.c modified: genext.c modified: gsm.cpp modified: gsm.h modified: gsm_conf.c modified: lcradmin.c modified: main.c modified: options.c modified: options.h
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 6a953a2..72bca9f 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -2748,13 +2748,14 @@ static int lcr_config_exec(struct ast_channel *ast, void *data, char **argv)
int load_module(void)
{
u_short i;
+ char options_error[256];
for (i = 0; i < 256; i++) {
flip_bits[i] = (i>>7) | ((i>>5)&2) | ((i>>3)&4) | ((i>>1)&8)
| (i<<7) | ((i&2)<<5) | ((i&4)<<3) | ((i&8)<<1);
}
- if (read_options() == 0) {
+ if (read_options(options_error) == 0) {
CERROR(NULL, NULL, "%s", options_error);
#ifdef LCR_FOR_ASTERISK