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

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Aug 25 10:31:03 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
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:                     new
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-25-2007 10:31 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; 
                }



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

---------------------------------------------------------------------- 
 loloski - 08-25-07 10:31  
---------------------------------------------------------------------- 
ruffle,

 Please attach the patch on svn diff format, so that developer's can
easily pick this up. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-25-07 10:31  loloski        Note Added: 0069412                          
======================================================================




More information about the asterisk-bugs mailing list