[asterisk-commits] russell: branch russell/chan_console r53979 -
/team/russell/chan_console/chan...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Feb 11 17:42:35 MST 2007
Author: russell
Date: Sun Feb 11 18:42:34 2007
New Revision: 53979
URL: http://svn.digium.com/view/asterisk?view=rev&rev=53979
Log:
Update to the send_digit_end() channel API change
Modified:
team/russell/chan_console/channels/chan_console.c
Modified: team/russell/chan_console/channels/chan_console.c
URL: http://svn.digium.com/view/asterisk/team/russell/chan_console/channels/chan_console.c?view=diff&rev=53979&r1=53978&r2=53979
==============================================================================
--- team/russell/chan_console/channels/chan_console.c (original)
+++ team/russell/chan_console/channels/chan_console.c Sun Feb 11 18:42:34 2007
@@ -99,7 +99,7 @@
const int samplen;
const int silencelen;
const int repeat;
-} sounds[] __attribute__ ((unused)) = {
+} sounds[] = {
{ AST_CONTROL_RINGING, "RINGING", ringtone, sizeof(ringtone)/2, 16000, 32000, 1 },
{ AST_CONTROL_BUSY, "BUSY", busy, sizeof(busy)/2, 4000, 4000, 1 },
{ AST_CONTROL_CONGESTION, "CONGESTION", busy, sizeof(busy)/2, 2000, 2000, 1 },
@@ -179,7 +179,7 @@
static struct ast_channel *console_request(const char *type, int format,
void *data, int *cause);
static int console_digit_begin(struct ast_channel *c, char digit);
-static int console_digit_end(struct ast_channel *c, char digit);
+static int console_digit_end(struct ast_channel *c, char digit, unsigned int duration);
static int console_text(struct ast_channel *c, const char *text);
static int console_hangup(struct ast_channel *c);
static int console_answer(struct ast_channel *c);
@@ -332,9 +332,10 @@
return 0;
}
-static int console_digit_end(struct ast_channel *c, char digit)
-{
- ast_verbose(" --- <(\"<) --- Console Received End of Digit %c --- (>\")> ---\n", digit);
+static int console_digit_end(struct ast_channel *c, char digit, unsigned int duration)
+{
+ ast_verbose(" --- <(\"<) --- Console Received End of Digit %c (duration %u) --- (>\")> ---\n",
+ digit, duration);
return 0;
}
More information about the asterisk-commits
mailing list