diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-14 19:27:28 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-14 19:27:28 +0000 |
commit | 8da62c51d6343ba35ff3e63a0dd47cc93e821d59 (patch) | |
tree | b2ad0b9d4c64f65020d64ef8db0560c4018a829f /channels | |
parent | 10b295729125ce4e81f9d754f26d83f99123c059 (diff) |
Merged revisions 286756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r286756 | mnicholson | 2010-09-14 14:26:18 -0500 (Tue, 14 Sep 2010) | 13 lines
Don't clear the username from a realtime database when a registration expires.
Non-realtime chan_sip does not clear the username from memory when a registration expiries so realtime probably shouldn't either.
(closes issue #17551)
Reported by: ricardolandim
Patches:
reg-expiry-username-1.4-fix1.diff uploaded by mnicholson (license 96)
reg-expiry-username-1.6.2-fix1.diff uploaded by mnicholson (license 96)
reg-expiry-username-1.8-fix1.diff uploaded by mnicholson (license 96)
reg-expiry-username-trunk-fix1.diff uploaded by mnicholson (license 96)
Tested by: ricardolandim, mnicholson
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@286757 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 16b10529d..d38e0ee59 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12126,7 +12126,7 @@ static void destroy_association(struct sip_peer *peer) if (!sip_cfg.ignore_regexpire) { if (peer->rt_fromcontact && sip_cfg.peer_rtupdate) { - ast_update_realtime(tablename, "name", peer->name, "fullcontact", "", "ipaddr", "", "port", "", "regseconds", "0", peer->deprecated_username ? "username" : "defaultuser", "", "regserver", "", "useragent", "", "lastms", "", SENTINEL); + ast_update_realtime(tablename, "name", peer->name, "fullcontact", "", "ipaddr", "", "port", "", "regseconds", "0", "regserver", "", "useragent", "", "lastms", "", SENTINEL); } else { ast_db_del("SIP/Registry", peer->name); } |