]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Reference skinny_subchannel object instead of skinny_device for r363103
authorMatthew Jordan <mjordan@digium.com>
Mon, 23 Apr 2012 13:48:48 +0000 (13:48 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 23 Apr 2012 13:48:48 +0000 (13:48 +0000)
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@363104 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index e18e04e54508f6613e1c9f59e8754c7f4ccfc91b..883c4204797b0800eb1d0c48da22fd94936d3973 100644 (file)
@@ -6663,10 +6663,10 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s)
                                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);
                        }