--- channels/chan_sip.c.orig 2003-11-20 09:25:55.000000000 -0600 +++ channels/chan_sip.c 2003-11-20 09:25:20.000000000 -0600 @@ -3224,6 +3224,7 @@ 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;