summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-24 19:41:32 +0100
committerAndreas Eversberg2010-01-24 19:41:32 +0100
commit8fb861ef9ece9f4bd68ef79a77625ec23c27aef1 (patch)
treeea055ed2a47d381bfd1978105442ff9144a7007c /chan_lcr.c
parentAdded queue buffer for chan_lcr sending faxes without interruption. (diff)
downloadlcr-8fb861ef9ece9f4bd68ef79a77625ec23c27aef1.tar.gz
lcr-8fb861ef9ece9f4bd68ef79a77625ec23c27aef1.tar.xz
lcr-8fb861ef9ece9f4bd68ef79a77625ec23c27aef1.zip
- Fixed HLC (higher layer capability) modification to LCR routing.
- Fixed chan_lcr fax queue buffer. Added LCR_TRANSFERCAPABILITY environment. -> use options "n:t:q250" for sending/receiving faxes with asterisk and chan_lcr. modified: README modified: action.cpp modified: bchannel.c modified: chan_lcr.c modified: route.c modified: route.h
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 0013f2f..040f921 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -612,6 +612,7 @@ static void send_setup_to_lcr(struct chan_call *call)
{
union parameter newparam;
struct ast_channel *ast = call->ast;
+ const char *tmp;
if (!call->ast || !call->ref)
return;
@@ -664,6 +665,9 @@ static void send_setup_to_lcr(struct chan_call *call)
default:
newparam.setup.callerinfo.ntype = INFO_NTYPE_UNKNOWN;
}
+ tmp = pbx_builtin_getvar_helper(ast, "LCR_TRANSFERCAPABILITY");
+ if (tmp && *tmp)
+ ast->transfercapability = atoi(tmp);
newparam.setup.capainfo.bearer_capa = ast->transfercapability;
newparam.setup.capainfo.bearer_mode = INFO_BMODE_CIRCUIT;
if (call->hdlc)
@@ -2823,6 +2827,12 @@ int load_module(void)
" vt - txgain control\n"
" Volume changes at factor 2 ^ optarg.\n"
" k - use keypad to dial this call.\n"
+ "\n"
+ "set LCR_TRANSFERCAPABILITY to the numerical bearer capabilty in order to alter caller's capability\n"
+ " -> use 16 for fax (3.1k audio)\n"
+ "\n"
+ "To send a fax, you need to set LCR_TRANSFERCAPABILITY environment to 16, also you need to set\n"
+ "options: \"n:t:q250\" for seamless audio transmission.\n"
);