Ticket #2704 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

Uptime broken in Asterisk Info with Asterisk 1.6

Reported by: drmessano Assigned to:
Priority: major Milestone: 2.5
Component: Other Module Version: 2.4-branch
Keywords: uptime Asterisk Info Cc:
Confirmation: Need Feedback Distro:
Backend Engine: Asterisk 1.6 Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

The code used to check the version numbers to load the arrays in the Asterisk Info modules fails because it uses "show uptime", which doesn't exist in 1.6.

Switching to "core show uptime" will load the version on 1.4+ and the failover code below will default to 1.2 where "core show uptime" doesn't execute.

Attachments

page.asteriskinfo.php.diff (0.5 kB) - added by drmessano on 02/22/08 20:47:49.

Change History

02/22/08 20:47:49 changed by drmessano

  • attachment page.asteriskinfo.php.diff added.

02/23/08 04:21:06 changed by pnlarsson

  • engine changed from All to Asterisk 1.6.
  • confirmation changed from Unreviewed to Need Feedback.

This is odd, this has been working with 1.6 for a long time.

Could you paste the output of asterisk -V

The fix you have attached should not be needed, only if engine_getinfo() is returning 99 as the version of asterisk - which to my understanding never would do... http://freepbx.org/trac/browser/freepbx/branches/2.4/amp_conf/htdocs/admin/functions.inc.php

02/23/08 04:37:30 changed by drmessano

Asterisk 1.6.0-beta4

02/23/08 10:23:44 changed by pnlarsson

That should be parsed just fine - did a test:

Array
(
    [0] => Asterisk 1.6.0-beta4
    [1] => 1.6.0
    [2] => .0
    [3] => -beta4
    [4] => beta4
)

item 1 is returned as version at that one is not 99 so i can't understand why it's not workning for you.

Is it only uptime that is not working? With 1.6 it shows only uptime and when you have done a reload - then it will show that as well.

02/23/08 14:38:56 changed by drmessano

I understand how it is supposed to work. This is what is showing in the table:

No such command 'show uptime' (type 'help' for help)

02/23/08 16:41:58 changed by pnlarsson

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in a different way, r5721

02/23/08 17:13:13 changed by p_lindheimer

  • milestone changed from Cut Line to 3.0.