[asterisk-commits] rizzo: trunk r72456 - /trunk/channels/chan_skinny.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 28 14:01:43 CDT 2007
Author: rizzo
Date: Thu Jun 28 14:01:43 2007
New Revision: 72456
URL: http://svn.digium.com/view/asterisk?view=rev&rev=72456
Log:
move variable declarations to the beginning of the block
Modified:
trunk/channels/chan_skinny.c
Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=72456&r1=72455&r2=72456
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Thu Jun 28 14:01:43 2007
@@ -3199,10 +3199,11 @@
}
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 @@
break;
}
}
+ }
break;
case STIMULUS_HOLD:
if (skinnydebug)
@@ -4283,13 +4285,14 @@
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 @@
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);
More information about the asterisk-commits
mailing list