mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-21 02:34:16 +00:00
temp-action attr
This commit is contained in:
1 parent
8c60003894
commit
32ec431945
2 files changed
+31
-16
No files matched your search
@@ -929,10 +929,15 @@ static switch_status_t parse_record(const char *tag_name, client_t *client, swit
|
||||
static switch_status_t parse_common(const char *tag_name, client_t *client, switch_xml_t tag, const char *body)
|
||||
{
|
||||
const char *action = switch_xml_attr(tag, "action");
|
||||
const char *tmp_action = switch_xml_attr(tag, "temp-action");
|
||||
|
||||
if (action) {
|
||||
switch_event_add_header_string(client->params, SWITCH_STACK_BOTTOM, "url", action);
|
||||
}
|
||||
|
||||
if (tmp_action) {
|
||||
switch_event_add_header_string(client->one_time_params, SWITCH_STACK_BOTTOM, "url", tmp_action);
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user