]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
code before decl
authorMichael Jerris <mike@jerris.com>
Mon, 7 Dec 2009 00:07:23 +0000 (00:07 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 7 Dec 2009 00:07:23 +0000 (00:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15806 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_alsa/mod_alsa.c

index 1332f5a4add66650390833bd0f7fa55b99444310..2f776a1d7fc7ae8f14d6b8796b16b182a87d474c 100644 (file)
@@ -1523,12 +1523,6 @@ SWITCH_STANDARD_API(pa_cmd)
        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 @@ SWITCH_STANDARD_API(pa_cmd)
                "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;