summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-12-13 09:22:49 +0100
committerAndreas Eversberg2010-12-13 09:22:49 +0100
commit3a8f58ec8946b7f1683208d1cc3b054486f12e6c (patch)
treeb7cf56794d5bc684a658b6c1e970d0bc4efb1ab5 /options.c
parentAdding various arguments to 'execute' condition and 'execute' action. (diff)
downloadlcr-3a8f58ec8946b7f1683208d1cc3b054486f12e6c.tar.gz
lcr-3a8f58ec8946b7f1683208d1cc3b054486f12e6c.tar.xz
lcr-3a8f58ec8946b7f1683208d1cc3b054486f12e6c.zip
Adding interface support for remote app (chan_lcr).
chan_lcr can be handled as an interface. This way it is possible to (e.g.): - make a SIP phone become an LCR extension with all LCR features. - make conference calls. (untested) - perform parallel ringing. (ISDN phone and SIP phones can ring in parallel.) - do voice recoding. It is still also possible to link chan_lcr directly without interface (as before). Documentation/howto for that will follow.
Diffstat (limited to 'options.c')
-rw-r--r--options.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/options.c b/options.c
index 88f6424..7fb9bcb 100644
--- a/options.c
+++ b/options.c
@@ -36,7 +36,9 @@ struct options options = {
-1, /* socket user (-1= no change) */
-1, /* socket group (-1= no change) */
0, /* enable gsm */
- 1 /* use polling of main loop */
+ 1, /* use polling of main loop */
+ "mISDN_l1loop.1", /* GSM/Asterisk side */
+ "mISDN_l1loop.2", /* LCR side */
};
char options_error[256];
@@ -239,6 +241,22 @@ int read_options(char *options_error)
} else
if (!strcmp(option,"polling")) {
options.polling = 1;
+ } else
+ if (!strcmp(option,"loopback-ext")) {
+ if (param[0]==0) {
+ UPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);
+ goto error;
+ }
+ SCPY(options.loopback_ext, param);
+
+ } else
+ if (!strcmp(option,"loopback-lcr")) {
+ if (param[0]==0) {
+ UPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);
+ goto error;
+ }
+ SCPY(options.loopback_lcr, param);
+
} else {
UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option);
goto error;