mupdate
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7358 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
54e0583e57
commit
848ed982e8
|
@ -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))) {
|
||||
|
|
Loading…
Reference in New Issue