Revision
15806
Author
mikej
Date
2009-12-06 18:07:23 -0600 (Sun, 06 Dec 2009)

Log Message

code before decl

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_alsa/mod_alsa.c (15805 => 15806)


--- freeswitch/trunk/src/mod/endpoints/mod_alsa/mod_alsa.c	2009-12-06 15:24:50 UTC (rev 15805)
+++ freeswitch/trunk/src/mod/endpoints/mod_alsa/mod_alsa.c	2009-12-07 00:07:23 UTC (rev 15806)
@@ -1523,12 +1523,6 @@
 	char *wcmd = NULL, *action = NULL;
 	char cmd_buf[1024] = "";
 	char *http = NULL;
-
-	if (stream->param_event) {
-		http = switch_event_get_header(stream->param_event, "http-host");
-	}
-
-
 	const char *usage_string = "USAGE:\n"
 		"--------------------------------------------------------------------------------\n"
 		"alsa help\n"
@@ -1540,6 +1534,10 @@
 		"alsa dtmf <digit string>\n"
 		"alsa flags [on|off] [ear] [mouth]\n" "--------------------------------------------------------------------------------\n";
 
+	if (stream->param_event) {
+		http = switch_event_get_header(stream->param_event, "http-host");
+	}
+
 	if (http) {
 #if 0
 		switch_event_header_t *hp;