mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 14:14:16 +00:00
name change
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8579 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
4062b636e2
commit
307e9ef7d6
12 files changed
+73
-73
No files matched your search
@@ -1532,8 +1532,8 @@ SWITCH_STANDARD_API(pa_cmd)
|
||||
char cmd_buf[1024] = "";
|
||||
char *http = NULL;
|
||||
|
||||
if (stream->event) {
|
||||
http = switch_event_get_header(stream->event, "http-host");
|
||||
if (stream->param_event) {
|
||||
http = switch_event_get_header(stream->param_event, "http-host");
|
||||
}
|
||||
|
||||
|
||||
@@ -1553,7 +1553,7 @@ SWITCH_STANDARD_API(pa_cmd)
|
||||
#if 0
|
||||
switch_event_header_t *hp;
|
||||
stream->write_function(stream, "<pre>");
|
||||
for (hp = stream->event->headers; hp; hp = hp->next) {
|
||||
for (hp = stream->param_event->headers; hp; hp = hp->next) {
|
||||
stream->write_function(stream, "[%s]=[%s]\n", hp->name, hp->value);
|
||||
}
|
||||
stream->write_function(stream, "</pre>");
|
||||
@@ -1561,8 +1561,8 @@ SWITCH_STANDARD_API(pa_cmd)
|
||||
|
||||
stream->write_function(stream, "Content-type: text/html\n\n");
|
||||
|
||||
wcmd = switch_str_nil(switch_event_get_header(stream->event, "wcmd"));
|
||||
action = switch_event_get_header(stream->event, "action");
|
||||
wcmd = switch_str_nil(switch_event_get_header(stream->param_event, "wcmd"));
|
||||
action = switch_event_get_header(stream->param_event, "action");
|
||||
|
||||
if (action) {
|
||||
if (strlen(action) == 1) {
|
||||
|
||||
@@ -1542,15 +1542,15 @@ SWITCH_STANDARD_API(pa_cmd)
|
||||
"pa outdev #<num>|<partial name>\n"
|
||||
"pa ringdev #<num>|<partial name>\n" "--------------------------------------------------------------------------------\n";
|
||||
|
||||
if (stream->event) {
|
||||
http = switch_event_get_header(stream->event, "http-host");
|
||||
if (stream->param_event) {
|
||||
http = switch_event_get_header(stream->param_event, "http-host");
|
||||
}
|
||||
|
||||
if (http) {
|
||||
stream->write_function(stream, "Content-type: text/html\n\n");
|
||||
|
||||
wcmd = switch_str_nil(switch_event_get_header(stream->event, "wcmd"));
|
||||
action = switch_event_get_header(stream->event, "action");
|
||||
wcmd = switch_str_nil(switch_event_get_header(stream->param_event, "wcmd"));
|
||||
action = switch_event_get_header(stream->param_event, "action");
|
||||
|
||||
if (action) {
|
||||
if (strlen(action) == 1) {
|
||||
|
||||
Reference in new issue
Block a user