git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14850 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-09-14 19:39:33 +00:00
parent 590f213f51
commit 83711b3e8a
1 changed files with 5 additions and 0 deletions

View File

@ -176,6 +176,11 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
switch_assert(data);
if (binding->use_dynamic_url) {
if (!params) {
switch_event_create(&params, SWITCH_EVENT_REQUEST_PARAMS);
switch_assert(params);
}
switch_event_add_header_string(params, SWITCH_STACK_TOP, "hostname", hostname);
switch_event_add_header_string(params, SWITCH_STACK_TOP, "section", switch_str_nil(section));
switch_event_add_header_string(params, SWITCH_STACK_TOP, "tag_name", switch_str_nil(tag_name));