summaryrefslogtreecommitdiff
path: root/misc/freeswitch
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-03 20:04:16 +0100
committerspag <spag@golwen.net>2013-02-03 20:04:16 +0100
commitf1ccee494495e4149d0b892743b0d60612d8d790 (patch)
tree74e225648057e7afbffef2ebe763865205aefbbe /misc/freeswitch
parentecdbd88b2059ccfcf79e000d07efb9ffddde9aed (diff)
reset username list after successful registration
Diffstat (limited to 'misc/freeswitch')
-rw-r--r--misc/freeswitch/scripts/common/perimeter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/common/perimeter.lua b/misc/freeswitch/scripts/common/perimeter.lua
index 5623b40..5de86bf 100644
--- a/misc/freeswitch/scripts/common/perimeter.lua
+++ b/misc/freeswitch/scripts/common/perimeter.lua
@@ -143,7 +143,7 @@ function Perimeter.check_username_scan(self, event)
return;
end
- if not event.record.users then
+ if not event.record.users or tostring(event.auth_result) == 'SUCCESS' or tostring(event.auth_result) == 'RENEWED' then
event.users = { event.to_user };
return;
end