]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
While we're at it, make this machine parseable too.
authorSean Bright <sean@malleable.com>
Tue, 19 Aug 2008 00:08:27 +0000 (00:08 +0000)
committerSean Bright <sean@malleable.com>
Tue, 19 Aug 2008 00:08:27 +0000 (00:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@138778 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 412616763a6aed39a0cf191ba74887ce1f97a558..0ec67804535d4cf4d4e2e6d73b822e283e3f4f5e 100644 (file)
@@ -12291,9 +12291,9 @@ static int manager_show_registry(struct mansession *s, const struct message *m)
                        "Username: %s\r\n"
                        "Refresh: %d\r\n"
                        "State: %s\r\n"
-                       "RegistrationTime: %s\r\n"
+                       "RegistrationTime: %ld\r\n"
                        "\r\n", iterator->hostname, iterator->portno ? iterator->portno : STANDARD_SIP_PORT,
-                       iterator->username, iterator->refresh, regstate2str(iterator->regstate), tmpdat);
+                                         iterator->username, iterator->refresh, regstate2str(iterator->regstate), (long) iterator->regtime.tv_sec);
                ASTOBJ_UNLOCK(iterator);
                total++;
        } while(0));