diff options
author | spag <spag@golwen.net> | 2013-02-03 20:04:16 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-03 20:04:16 +0100 |
commit | f1ccee494495e4149d0b892743b0d60612d8d790 (patch) | |
tree | 74e225648057e7afbffef2ebe763865205aefbbe /misc/freeswitch/scripts/common | |
parent | ecdbd88b2059ccfcf79e000d07efb9ffddde9aed (diff) |
reset username list after successful registration
Diffstat (limited to 'misc/freeswitch/scripts/common')
-rw-r--r-- | misc/freeswitch/scripts/common/perimeter.lua | 2 |
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 |