diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-21 05:20:43 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-21 05:20:43 +0000 |
commit | 20eb91bd7a85379335ac263f0f5f1995850baeea (patch) | |
tree | 1260791187573f303651284ffb4fe640adaf07e4 | |
parent | 3ccb229e924e3d4e1e722541a362f727ca1873ca (diff) |
Delete on unregister (bug #527)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1770 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 71cc57240..d173fa52a 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3224,6 +3224,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req if (p->expire > -1) ast_sched_del(sched, p->expire); p->expire = -1; + ast_db_del("SIP/Registry", p->name); if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Unregistered SIP '%s'\n", p->name); return 0; |