summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2008-08-19 00:08:27 +0000
committerSean Bright <sean@malleable.com>2008-08-19 00:08:27 +0000
commit0e9bb93b872c22350f211a1a4aba02fa5425edfd (patch)
tree037b1d30d719fdc1eb6763e82928580fa2b8f25a /channels
parent711cc76722fa6a9fa2dd785c3ed2c6695ac8fcf0 (diff)
While we're at it, make this machine parseable too.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@138778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 412616763..0ec678045 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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));