提交 591f098a authored 作者: Anthony Minessale's avatar Anthony Minessale

change xml_lookups to take an event as params instead of url string this will…

change xml_lookups to take an event as params instead of url string this will break your xml_curl scripts please update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7334 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1424b6c7
......@@ -138,9 +138,8 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
switch_str_nil(key_value));
data = switch_event_build_param_string(params, basic_data);
switch_assert(data);
printf("XXXXXXXXXXXXXXXXXXXX\n%s\n", data);
switch_uuid_get(&uuid);
switch_uuid_format(uuid_str, &uuid);
......
......@@ -1310,6 +1310,7 @@ SWITCH_DECLARE(char *) switch_event_build_param_string(switch_event_t *event, co
stream.write_function(&stream, "%s=%s&", prof_names[x], encode_buf);
}
if (event) {
if ((hi = event->headers)) {
for (; hi; hi = hi->next) {
char *var = hi->name;
......@@ -1331,7 +1332,7 @@ SWITCH_DECLARE(char *) switch_event_build_param_string(switch_event_t *event, co
}
}
}
e = (char *) stream.data + (strlen((char *) stream.data) - 1);
if (e && *e == '&') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论