提交 8c600038 authored 作者: Anthony Minessale's avatar Anthony Minessale

set a few more basic params initially

上级 727f099d
......@@ -1833,7 +1833,8 @@ SWITCH_STANDARD_APP(httapi_function)
client_t *client;
switch_event_t *params = NULL;
uint32_t loops = 0, all_extended = 0;
switch_caller_profile_t *caller_profile;
if (!zstr(data)) {
switch_event_create_brackets((char *)data, '{', '}', ',', &params, &parsed, SWITCH_TRUE);
}
......@@ -1866,6 +1867,10 @@ SWITCH_STANDARD_APP(httapi_function)
all_extended = switch_true(switch_event_get_header(client->params, "full_channel_data_on_every_req"));
}
if ((caller_profile = switch_channel_get_caller_profile(channel))) {
switch_caller_profile_event_set_data(caller_profile, "Caller", client->params);
}
while(switch_channel_ready(channel)) {
switch_status_t status = SWITCH_STATUS_FALSE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论