More minor bkw fixes
authorMark Spencer <markster@digium.com>
Sun, 9 May 2004 23:40:49 +0000 (23:40 +0000)
committerMark Spencer <markster@digium.com>
Sun, 9 May 2004 23:40:49 +0000 (23:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2940 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c1ad16e..d2c25fd 100755 (executable)
@@ -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)