summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2009-02-15 09:04:14 +0100
committerAndreas Eversberg2009-02-15 09:04:14 +0100
commitfb6e219eda69fe19fdd16457570dd51d07099320 (patch)
tree87cd05d9c819849c6560912955d91749b9dffdc0 /chan_lcr.c
parentfixed end-pointer bug on forwarded messages. thanx to bodo for this bugfix. (diff)
downloadlcr-fb6e219eda69fe19fdd16457570dd51d07099320.tar.gz
lcr-fb6e219eda69fe19fdd16457570dd51d07099320.tar.xz
lcr-fb6e219eda69fe19fdd16457570dd51d07099320.zip
chan_lcr hopefully now compiles against SVN version of asterisk.
Added limitation option for maximum dialed digits. If dial string exceeds that limit, overlap-dialing is used to complete dial string. Siemens EWSD (APS V16) only allows 20 digits at a time. modified: README modified: chan_lcr.c modified: default/interface.conf modified: dss1.cpp modified: dss1.h modified: ie.cpp modified: interface.c modified: interface.h
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index f6ff27c..c1d3745 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -1995,7 +1995,7 @@ static int lcr_write(struct ast_channel *ast, struct ast_frame *f)
return -1;
}
if (call->bchannel && f->samples)
- bchannel_transmit(call->bchannel, f->data, f->samples);
+ bchannel_transmit(call->bchannel, (unsigned char *)f->data, f->samples);
ast_mutex_unlock(&chan_lock);
return 0;
}
@@ -2035,7 +2035,7 @@ static struct ast_frame *lcr_read(struct ast_channel *ast)
call->read_fr.datalen = len;
call->read_fr.samples = len;
call->read_fr.delivery = ast_tv(0,0);
- call->read_fr.data = call->read_buff;
+ (unsigned char *)call->read_fr.data = call->read_buff;
ast_mutex_unlock(&chan_lock);
return &call->read_fr;