From: Michael Jerris Date: Mon, 7 Dec 2009 00:07:23 +0000 (+0000) Subject: code before decl X-Git-Tag: v1.0.6~1149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6f28528367f8ec3268cf5ee1566905e1be1feae;p=thirdparty%2Ffreeswitch.git code before decl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15806 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_alsa/mod_alsa.c b/src/mod/endpoints/mod_alsa/mod_alsa.c index 1332f5a4ad..2f776a1d7f 100644 --- a/src/mod/endpoints/mod_alsa/mod_alsa.c +++ b/src/mod/endpoints/mod_alsa/mod_alsa.c @@ -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 \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;