]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mupdate
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 25 Jan 2008 19:47:53 +0000 (19:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 25 Jan 2008 19:47:53 +0000 (19:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7358 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

index d83b465f929b6318911fb1d8f554601844a4c34c..04f4c31a1dfd7204dbf6291a5865fd403e5dc922 100644 (file)
@@ -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))) {