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

View File

@ -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) 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 *action = switch_xml_attr(tag, "action");
const char *tmp_action = switch_xml_attr(tag, "temp-action");
if (action) { if (action) {
switch_event_add_header_string(client->params, SWITCH_STACK_BOTTOM, "url", 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; return SWITCH_STATUS_SUCCESS;
} }

View File

@ -71,7 +71,8 @@ ATTRS:
file : The file file : The file
name : Param name to save result. name : Param name to save result.
error-file : Error file to play on invalid input. error-file : Error file to play on invalid input.
action : Change the new target url action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present) digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input. input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present. loops : max times to play the file when input bindings are present.
@ -82,13 +83,14 @@ asr-grammar : ASR grammar to use
<record file name error-file action digit-timeout input-timeout><bind action strip>*EXPR*</bind></record> <record file name error-file action digit-timeout input-timeout><bind action strip>*EXPR*</bind></record>
: Records a file, optionally collects input and posts the file back to the target url : Records a file, optionally collects input and posts the file back to the target url.
ATTRS: ATTRS:
file : The file file : The file
name : Param name to save result. name : Param name to save result.
error-file : Error file to play on invalid input. error-file : Error file to play on invalid input.
action : Change the new target url action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present) digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input. input-timeout : Timeout waiting for more digits in a multi-digit input.
@ -103,7 +105,8 @@ ATTRS:
milliseconds : Number of milliseconds to pause milliseconds : Number of milliseconds to pause
name : Param name to save result. name : Param name to save result.
error-file : Error file to play on invalid input. error-file : Error file to play on invalid input.
action : Change the new target url action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present) digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input. input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present. loops : max times to play the file when input bindings are present.
@ -119,7 +122,8 @@ ATTRS:
file : The file file : The file
name : Param name to save result. name : Param name to save result.
error-file : Error file to play on invalid input. error-file : Error file to play on invalid input.
action : Change the new target url action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present) digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input. input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present. loops : max times to play the file when input bindings are present.
@ -137,7 +141,8 @@ ATTRS:
file : The file file : The file
name : Param name to save result. name : Param name to save result.
error-file : Error file to play on invalid input. error-file : Error file to play on invalid input.
action : Change the new target url action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present) digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input. input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present. loops : max times to play the file when input bindings are present.
@ -154,7 +159,8 @@ gender : gender (fs param)
: Execute a FreeSWITCH app. : Execute a FreeSWITCH app.
ATTRS: ATTRS:
application : The app to run application : The app to run
action : Change url to submit to action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
data : Alternate source for app data data : Alternate source for app data
*DATA* : The app data *DATA* : The app data
@ -164,7 +170,8 @@ data : Alternate source for app data
: Send a SMS message. : Send a SMS message.
ATTRS: ATTRS:
to : The dest number to : The dest number
action : Change url to submit to action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
*DATA* : The message data *DATA* : The message data
@ -179,7 +186,8 @@ context : Dialplan context.
dialplan : Dialplan dialplan. dialplan : Dialplan dialplan.
caller-id-name : Caller ID Name. caller-id-name : Caller ID Name.
caller-id-number : Caller ID Number. caller-id-number : Caller ID Number.
action : Change url to submit to action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
*DATA* : Number to dial or originate string *DATA* : Number to dial or originate string
@ -193,7 +201,7 @@ ATTRS:
limit : Timeout in seconds. limit : Timeout in seconds.
name : Name to use for input values. name : Name to use for input values.
action : URL action to use. action : URL action to use.
temp-action : Change url to submit to. just for the next loop.
@ -203,8 +211,8 @@ action : URL action to use.
ATTRS: ATTRS:
profile : Conference profile to use. profile : Conference profile to use.
action : Change url to submit to action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
@ -213,8 +221,8 @@ action : Change url to submit to
ATTRS: ATTRS:
cause : Hangup cause cause : Hangup cause
action : Change url to submit to action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
@ -230,13 +238,15 @@ action : Change url to submit to
ATTRS: ATTRS:
level : The log level to use. level : The log level to use.
clean : If true do not pring log prefix. clean : If true do not pring log prefix.
action : Change url to submit to action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
<continue action> <continue action>
: Just continue (no-op) : Just continue (no-op)
ATTRS: ATTRS:
action : Change url to submit to action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.