diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-06-28 19:01:43 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-06-28 19:01:43 +0000 |
commit | 600d737dceb8a98a2135aa809e623cc26c58905c (patch) | |
tree | cd3fafa84ce3262805aeae14c89eb71d804f90d3 /channels/chan_skinny.c | |
parent | a0011053d61463322d6e9e47e8ef7bb85419eda7 (diff) |
move variable declarations to the beginning of the block
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r-- | channels/chan_skinny.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 1a79175f2..f003bcce8 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -3199,10 +3199,11 @@ static int handle_stimulus_message(struct skinny_req *req, struct skinnysession } break; case STIMULUS_SPEEDDIAL: + { + struct skinny_speeddial *sd; + if (skinnydebug) ast_verbose("Received Stimulus: SpeedDial(%d)\n", instance); - - struct skinny_speeddial *sd; if (!(sd = find_speeddial_by_instance(d, instance, 0))) { return 0; } @@ -3241,6 +3242,7 @@ static int handle_stimulus_message(struct skinny_req *req, struct skinnysession break; } } + } break; case STIMULUS_HOLD: if (skinnydebug) @@ -4283,14 +4285,15 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s) res = handle_ip_port_message(req, s); break; case KEYPAD_BUTTON_MESSAGE: - if (skinnydebug) - ast_verbose("Collected digit: [%d]\n", letohl(req->data.keypad.button)); - + { struct skinny_device *d = s->device; struct skinny_subchannel *sub; int lineInstance; int callReference; + if (skinnydebug) + ast_verbose("Collected digit: [%d]\n", letohl(req->data.keypad.button)); + lineInstance = letohl(req->data.keypad.lineInstance); callReference = letohl(req->data.keypad.callReference); @@ -4322,6 +4325,7 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s) d->exten[strlen(d->exten)+1] = '\0'; } else res = handle_keypad_button_message(req, s); + } break; case STIMULUS_MESSAGE: res = handle_stimulus_message(req, s); |