]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use newSQL
authorRaymond Chandler <intralanman@gmail.com>
Sun, 2 Mar 2014 08:10:45 +0000 (03:10 -0500)
committerRaymond Chandler <intralanman@gmail.com>
Sun, 2 Mar 2014 08:11:12 +0000 (03:11 -0500)
src/mod/applications/mod_lcr/mod_lcr.c

index f851ab010500bab5eb795e6d88fceddcb69a9341..5b6a045465c278ec35cad980ba890ec6f7e526eb 100644 (file)
@@ -555,6 +555,7 @@ static char *format_custom_sql(const char *custom_sql, callback_t *cb_struct, co
        /* first replace %s with digits to maintain backward compat */
        if (cb_struct->profile->custom_sql_has_percent == SWITCH_TRUE) {
                newSQL = switch_string_replace(custom_sql, "%q", digits);
+               custom_sql = newSQL;
        }
 
        /* expand the vars */