[asterisk-bugs] [Asterisk 0017034]: [patch] Problems with MeetMe and RT schedule dates

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 15 15:01:06 CDT 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17034 
====================================================================== 
Reported By:                sysreq
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17034
Category:                   Applications/app_meetme
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.6.1.18 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-03-15 13:19 CDT
Last Modified:              2010-03-15 15:01 CDT
====================================================================== 
Summary:                    [patch] Problems with MeetMe and RT schedule dates
Description: 
1. Current time is not displayed in the debug message given when Asterisk
tries to find the MeetMe room in RealTime;

Example:

app_meetme.c:2961 find_conf_realtime: Looking for conference 1234 that
starts after

Fixed by replacing 'eatime' by 'currenttime' in the following line (2961)
in app_meetme.c:

ast_debug(1, "Looking for conference %s that starts after %s\n", confno,
eatime);


2. Variables 'currenttime' and 'eatime' are apparently not big enough to
hold the full date, whose format is given by DATE_FORMAT ("%Y-%m-%d
%H:%M:%S");

Example:

res_config_odbc.c:73 custom_prepare: Skip: 0; SQL: SELECT * FROM meetme
WHERE confno = ? AND starttime <=  ? AND endtime >=  ?
res_config_odbc.c:88 custom_prepare: Parameter 1 ('confno') = '1234'
res_config_odbc.c:88 custom_prepare: Parameter 2 ('starttime <= ') =
'2010-03-15 11:36:'
res_config_odbc.c:88 custom_prepare: Parameter 3 ('endtime >= ') =
'2010-03-15 11:36:'

Fixed by setting the variables' size to 21 instead of 19 in the following
lines (2948/2949) in app_meetme.c:

char currenttime[19] = "";
char eatime[19] = "";
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-15 15:01 lmadsen        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list