diff options
author | spag <spag@golwen.net> | 2013-02-04 10:01:40 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-04 10:01:40 +0100 |
commit | 4594ac1559c6ecd534834b41b31d61c281d3401d (patch) | |
tree | 3b877d699df8e9bb9a213a9b826b57ea9a85f668 | |
parent | 0db4c7250feab288018d42cbd5c7d12657d60e3a (diff) |
expand variables
-rw-r--r-- | misc/freeswitch/scripts/common/perimeter.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/common/perimeter.lua b/misc/freeswitch/scripts/common/perimeter.lua index 0670fee..d1eecd1 100644 --- a/misc/freeswitch/scripts/common/perimeter.lua +++ b/misc/freeswitch/scripts/common/perimeter.lua @@ -177,6 +177,7 @@ end function Perimeter.check_bad_headers(self, event) local points = nil; for name, pattern in pairs(self.bad_headers[event.action]) do + pattern = self:expand_variables(pattern, event); local success, result = pcall(string.find, event[name], pattern); if success and result then self.log:info('[', event.key, '/', event.sequence, '] PERIMETER_BAD_HEADERS - ', name, '=', event[name], ' ~= ', pattern); |