[asterisk-commits] mjordan: branch 10 r363104 - /branches/10/channels/chan_skinny.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 23 08:48:50 CDT 2012
Author: mjordan
Date: Mon Apr 23 08:48:48 2012
New Revision: 363104
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=363104
Log:
Reference skinny_subchannel object instead of skinny_device for r363103
The check-in to resolve ASTERISK-19592 (r363103) failed to switch to the
skinny_subchannel object instead of the skinny_device when attempting to
reference the buffer for the keypad digits. This patch fixes that.
(issue ASTERISK-19592)
Reported by: Russell Bryant
Modified:
branches/10/channels/chan_skinny.c
Modified: branches/10/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_skinny.c?view=diff&rev=363104&r1=363103&r2=363104
==============================================================================
--- branches/10/channels/chan_skinny.c (original)
+++ branches/10/channels/chan_skinny.c Mon Apr 23 08:48:48 2012
@@ -6663,10 +6663,10 @@
ast_log(LOG_WARNING, "Unsupported digit %d\n", digit);
}
- len = strlen(d->exten);
- if (len < sizeof(d->exten) - 1) {
- d->exten[len] = dgt;
- d->exten[len + 1] = '\0';
+ len = strlen(sub->exten);
+ if (len < sizeof(sub->exten) - 1) {
+ sub->exten[len] = dgt;
+ sub->exten[len + 1] = '\0';
} else {
ast_log(AST_LOG_WARNING, "Dropping digit with value %d because digit queue is full\n", dgt);
}
More information about the asterisk-commits
mailing list