]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix display of timeout
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Nov 2010 17:22:01 +0000 (12:22 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Nov 2010 17:22:01 +0000 (12:22 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 3c1790368a34239a045f91b579b54a12ad258e3b..08040809ee3a4e9d8aa7675ec6813f2271d701cb 100644 (file)
@@ -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)");
                                                                }