summaryrefslogtreecommitdiff
path: root/misc/freeswitch
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-08-05 10:23:22 +0200
committerPeter Kozak <spag@golwen.net>2013-08-05 10:23:22 +0200
commit03947a9190faf19d7c9cfd9ba407f051cb5d4888 (patch)
treef202083d12eba1436053eccc66c9d1db5d4b08d7 /misc/freeswitch
parentaed9a08165ca33d2a90948edc5fcba875c6c3249 (diff)
constraint_value can be empty
Diffstat (limited to 'misc/freeswitch')
-rw-r--r--misc/freeswitch/scripts/common/gateway.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/common/gateway.lua b/misc/freeswitch/scripts/common/gateway.lua
index 9b8e33d..8ea6b04 100644
--- a/misc/freeswitch/scripts/common/gateway.lua
+++ b/misc/freeswitch/scripts/common/gateway.lua
@@ -360,7 +360,7 @@ function Gateway.origination_variables(self, header_type, origination_variables,
for index, header in ipairs(headers) do
local search_string = common.array.expand_variable(header.constraint_source, variable_sets);
- if common.str.blank(header.constraint_source) or self:constraint_match(header.constraint_value, variable_sets) then
+ if common.str.blank(header.constraint_value) or self:constraint_match(header.constraint_value, variable_sets) then
if header_to_variable[header.header_type] then
local origination_variable = header_to_variable[header.header_type][header.name:lower()] or header_to_variable[header.header_type].default .. header.name;
table.insert(origination_variables, origination_variable .. "='" .. common.array.expand_variables(header.value, unpack(variable_sets)) .. "'");