Modified: freeswitch/trunk/contrib/mod/xml_int/mod_xml_odbc/mod_xml_odbc.c (15786 => 15787)
--- freeswitch/trunk/contrib/mod/xml_int/mod_xml_odbc/mod_xml_odbc.c 2009-12-04 09:09:39 UTC (rev 15786)
+++ freeswitch/trunk/contrib/mod/xml_int/mod_xml_odbc/mod_xml_odbc.c 2009-12-04 10:39:52 UTC (rev 15787)
@@ -175,13 +175,13 @@
char *to_value = (char *) switch_xml_attr(helper->xml_in_cur, "to-value");
char *old_value = NULL;
+ switch_status_t status = SWITCH_STATUS_FALSE;
+
if (if_name) { if_name = switch_event_expand_headers_by_pool(helper->pool, helper->event, if_name); }
if (if_value) { if_value = switch_event_expand_headers_by_pool(helper->pool, helper->event, if_value); }
if (to_name) { to_name = switch_event_expand_headers_by_pool(helper->pool, helper->event, to_name); }
if (to_value) { to_value = switch_event_expand_headers_by_pool(helper->pool, helper->event, to_value); }
- switch_status_t status = SWITCH_STATUS_FALSE;
-
if (if_value && !if_name) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "xml-odbc-do [%s] if_name is required when if_value given\n", name);
goto done;