mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1476 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
31ee0d59fc
commit
21c2b5812e
17 files changed
+53
-39
No files matched your search
@@ -64,8 +64,8 @@ static void load_config(void)
|
||||
|
||||
if ((settings = switch_xml_child(cfg, "settings"))) {
|
||||
for (param = switch_xml_child(settings, "param"); param; param = param->next) {
|
||||
char *var = (char *) switch_xml_attr(param, "name");
|
||||
char *val = (char *) switch_xml_attr(param, "value");
|
||||
char *var = (char *) switch_xml_attr_soft(param, "name");
|
||||
char *val = (char *) switch_xml_attr_soft(param, "value");
|
||||
|
||||
if (!strcmp(var, "directory-name") && val) {
|
||||
set_global_directory_name(val);
|
||||
|
||||
@@ -161,11 +161,11 @@ static switch_caller_extension_t *dialplan_hunt(switch_core_session_t *session)
|
||||
|
||||
for (xexten = switch_xml_child(xcontext, "extension"); xexten; xexten = xexten->next) {
|
||||
int proceed = 0;
|
||||
char *cont = (char *) switch_xml_attr(xexten, "continue");
|
||||
char *cont = (char *) switch_xml_attr_soft(xexten, "continue");
|
||||
|
||||
for (xcond = switch_xml_child(xexten, "condition"); xcond; xcond = xcond->next) {
|
||||
char *field = (char *) switch_xml_attr(xcond, "field");
|
||||
char *expression = (char *) switch_xml_attr(xcond, "expression");
|
||||
char *field = (char *) switch_xml_attr_soft(xcond, "field");
|
||||
char *expression = (char *) switch_xml_attr_soft(xcond, "expression");
|
||||
char *field_data = switch_caller_get_field_by_name(caller_profile, field);
|
||||
pcre *re = NULL;
|
||||
int ovector[30];
|
||||
@@ -179,8 +179,8 @@ static switch_caller_extension_t *dialplan_hunt(switch_core_session_t *session)
|
||||
assert(re != NULL);
|
||||
|
||||
for (xaction = switch_xml_child(xcond, "action"); xaction; xaction = xaction->next) {
|
||||
char *application = (char*) switch_xml_attr(xaction, "application");
|
||||
char *data = (char *) switch_xml_attr(xaction, "data");
|
||||
char *application = (char*) switch_xml_attr_soft(xaction, "application");
|
||||
char *data = (char *) switch_xml_attr_soft(xaction, "data");
|
||||
char substituted[1024] = "";
|
||||
char *app_data = NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user