From: Anthony Minessale Date: Sat, 7 Jan 2012 13:54:23 +0000 (-0600) Subject: set a few more basic params initially X-Git-Tag: v1.2-rc1~19^2~1^2~96^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c60003894b7f43d5894d1b2b22ab583e5cadfe8;p=thirdparty%2Ffreeswitch.git set a few more basic params initially --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index f9deb48d65..23eb7f580a 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -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, '{', '}', ',', ¶ms, &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;