提交 848ed982 authored 作者: Anthony Minessale's avatar Anthony Minessale

mupdate

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7358 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 54e0583e
......@@ -134,11 +134,17 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
for (xaction = switch_xml_child(xcond, "action"); xaction; xaction = xaction->next) {
char *application = (char *) switch_xml_attr_soft(xaction, "application");
char *data = (char *) switch_xml_attr_soft(xaction, "data");
char *data = NULL;
char *substituted = NULL;
uint32_t len = 0;
char *app_data = NULL;
if (xaction->txt) {
data = xaction->txt;
} else {
data = (char *) switch_xml_attr_soft(xaction, "data");
}
if (field && strchr(expression, '(')) {
len = (uint32_t) (strlen(data) + strlen(field_data) + 10);
if (!(substituted = malloc(len))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论