summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuper User2008-06-15 17:22:25 +0200
committerSuper User2008-06-15 17:22:25 +0200
commit2541bf8cd95f0161274fd51b69325aac370678d9 (patch)
tree6ad2a91c34a11955cdd0bfa3ed07c55e3b85f33c
parentlayer 2 establish and release improvements (diff)
downloadlcr-2541bf8cd95f0161274fd51b69325aac370678d9.tar.gz
lcr-2541bf8cd95f0161274fd51b69325aac370678d9.tar.xz
lcr-2541bf8cd95f0161274fd51b69325aac370678d9.zip
work, overlap dialing to chan_lcr doesn't work, so do en-bloc dialing until it is fixed.
modified: chan_lcr.c
-rw-r--r--chan_lcr.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 3e89585..5fd0390 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -342,6 +342,9 @@ void apply_opt(struct chan_call *call, char *data)
char string[1024], *p = string, *opt, *key;
int gain, i, newmode = 0;
+ if (!data[0])
+ return; // no opts
+
strncpy(string, data, sizeof(string)-1);
string[sizeof(string)-1] = '\0';
@@ -1670,7 +1673,13 @@ static int lcr_call(struct ast_channel *ast, char *dest, int timeout)
return 0;
}
-static int lcr_digit(struct ast_channel *ast, char digit)
+static int lcr_digit_begin(struct ast_channel *ast, char digit)
+{
+ printf("DIGT BEGIN %c\n", digit);
+ return (0);
+}
+
+static int lcr_digit_end(struct ast_channel *ast, char digit, unsigned int duration)
{
struct chan_call *call;
union parameter newparam;
@@ -2132,7 +2141,8 @@ static struct ast_channel_tech lcr_tech = {
.type="LCR",
.description="Channel driver for connecting to Linux-Call-Router",
.requester=lcr_request,
- .send_digit_begin=lcr_digit,
+ .send_digit_begin=lcr_digit_begin,
+ .send_digit_end=lcr_digit_end,
.call=lcr_call,
.bridge=lcr_bridge,
.hangup=lcr_hangup,