diff options
author | Jason Parker <jparker@digium.com> | 2013-06-26 19:29:57 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-06-26 19:29:57 +0000 |
commit | 609c42c854c8880548571241b893604c02d513d4 (patch) | |
tree | 8e133c58a4a5040c67b61cafb03332c66cddf2a6 /res/res_stasis_http_channels.c | |
parent | 5e27e13e284402d44d8e90051aba230ecf3c7547 (diff) |
ARI: Add support for continuing to a different location in dialplan.
This allows going elsewhere in the dialplan, so that the location can be
specified after exiting the Stasis application.
(closes issue ASTERISK-21870)
Review: https://reviewboard.asterisk.org/r/2644/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_stasis_http_channels.c')
-rw-r--r-- | res/res_stasis_http_channels.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/res/res_stasis_http_channels.c b/res/res_stasis_http_channels.c index 87f663d94..2776b167e 100644 --- a/res/res_stasis_http_channels.c +++ b/res/res_stasis_http_channels.c @@ -191,6 +191,18 @@ static void stasis_http_continue_in_dialplan_cb( struct ast_continue_in_dialplan_args args = {}; struct ast_variable *i; + for (i = get_params; i; i = i->next) { + if (strcmp(i->name, "context") == 0) { + args.context = (i->value); + } else + if (strcmp(i->name, "extension") == 0) { + args.extension = (i->value); + } else + if (strcmp(i->name, "priority") == 0) { + args.priority = atoi(i->value); + } else + {} + } for (i = path_vars; i; i = i->next) { if (strcmp(i->name, "channelId") == 0) { args.channel_id = (i->value); |