temp-action attr

This commit is contained in:
Anthony Minessale
2012-01-07 08:56:44 -06:00
parent 8c60003894
commit 32ec431945
2 changed files with 31 additions and 16 deletions
@@ -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;
}