提交 79433a61 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8293 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 4401b252
...@@ -423,10 +423,14 @@ static switch_xml_t perl_fetch(const char *section, ...@@ -423,10 +423,14 @@ static switch_xml_t perl_fetch(const char *section,
); );
Perl_safe_eval(my_perl, code); Perl_safe_eval(my_perl, code);
if (params) {
mod_perl_conjure_event(my_perl, params, "params");
}
perl_run(my_perl); perl_run(my_perl);
str = SvPV(get_sv("XML_STRING", FALSE), n_a); str = SvPV(get_sv("XML_STRING", TRUE), n_a);
if (str) { if (!switch_strlen_zero(str)) {
if (switch_strlen_zero(str)) { if (switch_strlen_zero(str)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No Result\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No Result\n");
} else if (!(xml = switch_xml_parse_str(str, strlen(str)))) { } else if (!(xml = switch_xml_parse_str(str, strlen(str)))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论