[asterisk-bugs] [Asterisk 0010560]: Show if meetme is locked

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Aug 27 12:07:49 CDT 2007


The following issue requires your FEEDBACK. 
====================================================================== 
http://bugs.digium.com/view.php?id=10560 
====================================================================== 
Reported By:                ruffle
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10560
Category:                   Applications/app_meetme
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-25-2007 08:37 CDT
Last Modified:              08-27-2007 12:07 CDT
====================================================================== 
Summary:                    Show if meetme is locked
Description: 
As far as I can see, there's no way from the CLI to see if a meetme is
locked.

This two line patch adds the word 'Locked' to the output of meetme for
locked
conferences.

Here's the trivial patch:

*** app_meetme.c   2007-08-09 17:12:57.000000000 +0100
--- asterisk-1.4.10.1/apps/app_meetme.c 2007-08-25 14:06:32.000000000
+0100
***************
*** 825,831 ****
        int i = 0, total = 0;
        time_t now;
        char *header_format = "%-14s %-14s %-10s %-8s  %-8s\n";
!       char *data_format = "%-12.12s   %4.4d         %4.4s      
%02d:%02d:%02d  %-8s\n";
        char cmdline[1024] = "";
  
        if (argc > 8)
--- 825,831 ----
        int i = 0, total = 0;
        time_t now;
        char *header_format = "%-14s %-14s %-10s %-8s  %-8s\n";
!       char *data_format = "%-12.12s   %4.4d         %4.4s      
%02d:%02d:%02d  %-8s%8s\n";
        char cmdline[1024] = "";
  
        if (argc > 8)
***************
*** 854,860 ****
                        min = ((now - cnf->start) % 3600) / 60;
                        sec = (now - cnf->start) % 60;
  
!                       ast_cli(fd, data_format, cnf->confno, cnf->users,
cmdline, hr, min, sec, cnf->isdynamic ? "Dynamic" : "Static");
  
                        total += cnf->users; 
                }
--- 854,860 ----
                        min = ((now - cnf->start) % 3600) / 60;
                        sec = (now - cnf->start) % 60;
  
!                       ast_cli(fd, data_format, cnf->confno, cnf->users,
cmdline, hr, min, sec, cnf->isdynamic ? "Dynamic" : "Static",cnf->locked ?
"Locked" : "");
  
                        total += cnf->users; 
                }



====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-27-07 12:07  qwell          Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list