From d6f28528367f8ec3268cf5ee1566905e1be1feae Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 7 Dec 2009 00:07:23 +0000 Subject: [PATCH] code before decl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15806 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_alsa/mod_alsa.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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;