summaryrefslogtreecommitdiff
path: root/res/res_stasis_http_channels.c
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-06-07 18:39:42 +0000
committerJason Parker <jparker@digium.com>2013-06-07 18:39:42 +0000
commitf19ff9579a0972e7be564da46179559f524203b9 (patch)
tree8d64c1b1970204534eeaa6203503fd0fa3ee6597 /res/res_stasis_http_channels.c
parent63c7141421e4070ab6a17338c595f4a5e31e9ebd (diff)
Implement ARI POST to /channels, to originate a call.
(closes issue ASTERISK-21617) Review: https://reviewboard.asterisk.org/r/2597/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_stasis_http_channels.c')
-rw-r--r--res/res_stasis_http_channels.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/res_stasis_http_channels.c b/res/res_stasis_http_channels.c
index f1fcb8e64..ace351bad 100644
--- a/res/res_stasis_http_channels.c
+++ b/res/res_stasis_http_channels.c
@@ -83,6 +83,18 @@ static void stasis_http_originate_cb(
if (strcmp(i->name, "context") == 0) {
args.context = (i->value);
} else
+ if (strcmp(i->name, "callerId") == 0) {
+ args.caller_id = (i->value);
+ } else
+ if (strcmp(i->name, "timeout") == 0) {
+ args.timeout = atoi(i->value);
+ } else
+ if (strcmp(i->name, "app") == 0) {
+ args.app = (i->value);
+ } else
+ if (strcmp(i->name, "appArgs") == 0) {
+ args.app_args = (i->value);
+ } else
{}
}
stasis_http_originate(headers, &args, response);