More minor bkw fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-05-09 23:40:49 +00:00
parent 22243ee9ae
commit 4b84c43811
1 changed files with 2 additions and 1 deletions

View File

@ -3681,6 +3681,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req
p->expire = -1;
ast_db_del("SIP/Registry", p->name);
strcpy(p->useragent, "");
p->lastms = 0;
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Unregistered SIP '%s'\n", p->name);
return 0;
@ -4927,7 +4928,7 @@ static int __sip_show_channels(int fd, int argc, char *argv[], int subscriptions
{
#define FORMAT3 "%-15.15s %-10.10s %-21.21s %-15.15s\n"
#define FORMAT2 "%-15.15s %-10.10s %-11.11s %-11.11s %s\n"
#define FORMAT "%-15.15s %-10.10s %-11.11s %5.5d/%5.5d %-6.6s%s\n"
#define FORMAT "%-15.15s %-10.10s %-11.11s %5.5d/%5.5d %-6.6s%s\n"
struct sip_pvt *cur;
int numchans = 0;
if (argc != 3)