From 2043d5a67120d94dc1daab4a9a14a496f6a75735 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 3 Nov 2010 12:22:01 -0500 Subject: [PATCH] fix display of timeout --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 3c1790368a..08040809ee 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2442,8 +2442,8 @@ static switch_status_t cmd_status(char **argv, int argc, switch_stream_handle_t if (gp->state == REG_STATE_FAILED || gp->state == REG_STATE_TRYING) { time_t now = switch_epoch_time_now(NULL); - if (gp->retry > now) { - stream->write_function(stream, " (retry: %ds)", gp->retry - now); + if (gp->reg_timeout > now) { + stream->write_function(stream, " (retry: %ds)", gp->reg_timeout - now); } else { stream->write_function(stream, " (retry: NEVER)"); }