summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2009-03-15 10:15:23 +0100
committerAndreas Eversberg2009-03-15 10:15:23 +0100
commit127751f3c1aa05b65b170694eb34c603cad46205 (patch)
tree2c6325bfb77acb5e1b661fbad303cc7e492e9b75 /chan_lcr.c
parentBugfix on timeout rules. (thanx to Benjamin) (diff)
downloadlcr-127751f3c1aa05b65b170694eb34c603cad46205.tar.gz
lcr-127751f3c1aa05b65b170694eb34c603cad46205.tar.xz
lcr-127751f3c1aa05b65b170694eb34c603cad46205.zip
Fixed dtmf detection of A-D. (thanx to Ralf)
modified: README modified: chan_lcr.c
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 9f29338..b3c42cc 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -957,7 +957,7 @@ static void lcr_in_connect(struct chan_call *call, int message_type, union param
memcpy(&call->connectinfo, &param->connectinfo, sizeof(struct connect_info));
/* queue event to asterisk */
if (call->ast && call->pbx_started)
- strncat(call->queue_string, "A", sizeof(call->queue_string)-1);
+ strncat(call->queue_string, "N", sizeof(call->queue_string)-1);
}
/*
@@ -1574,7 +1574,7 @@ static int queue_send(void)
ast_queue_control(ast, AST_CONTROL_RINGING);
ast_setstate(ast, AST_STATE_RINGING);
break;
- case 'A':
+ case 'N':
CDEBUG(call, ast, "Sending queued ANSWER to Asterisk.\n");
ast_queue_control(ast, AST_CONTROL_ANSWER);
break;
@@ -1582,10 +1582,10 @@ static int queue_send(void)
CDEBUG(call, ast, "Sending queued HANGUP to Asterisk.\n");
ast_queue_hangup(ast);
break;
- case '1': case '2': case '3': case 'a':
- case '4': case '5': case '6': case 'b':
- case '7': case '8': case '9': case 'c':
- case '*': case '0': case '#': case 'd':
+ case '1': case '2': case '3': case 'A':
+ case '4': case '5': case '6': case 'B':
+ case '7': case '8': case '9': case 'C':
+ case '*': case '0': case '#': case 'D':
CDEBUG(call, ast, "Sending queued digit '%c' to Asterisk.\n", *p);
/* send digit to asterisk */
memset(&fr, 0, sizeof(fr));
@@ -1609,7 +1609,7 @@ static int queue_send(void)
break;
default:
- CDEBUG(call, ast, "Ignoring queued digit 0x%02d.\n", *p);
+ CDEBUG(call, ast, "Ignoring queued digit 0x%02x.\n", *p);
}
p++;
}
@@ -2680,7 +2680,7 @@ int load_module(void)
if (read_options() == 0) {
CERROR(NULL, NULL, "%s", options_error);
- #ifdef LCR_FOR_ASTERISK || ASTERISK_1_6
+ #ifdef LCR_FOR_ASTERISK
return AST_MODULE_LOAD_DECLINE;
#endif