summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/dialplan/router.lua
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-06-12 12:21:33 +0200
committerPeter Kozak <spag@golwen.net>2013-06-12 12:21:33 +0200
commitbb4ba3747de3f06970dddf4171305d473c11aa7f (patch)
treeb4beb897533c3b95de36ebfff4c7753fe3e60aed /misc/freeswitch/scripts/dialplan/router.lua
parent31c6aa30b19d1e4d0ec0ae30c59483c8cc77b12c (diff)
replacement on no_match fixed
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/router.lua')
-rw-r--r--misc/freeswitch/scripts/dialplan/router.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/router.lua b/misc/freeswitch/scripts/dialplan/router.lua
index 10551f1..50653d8 100644
--- a/misc/freeswitch/scripts/dialplan/router.lua
+++ b/misc/freeswitch/scripts/dialplan/router.lua
@@ -173,6 +173,9 @@ function Router.route_match(self, route)
if element.action == 'not_match' then
result = not result;
+ if result then
+ replacement = tostring(element.replacement);
+ end
end
if not result then