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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 6 16:49:02 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
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:                     ready for testing
Asterisk Version:           1.6.1.18 
JIRA:                       SWP-1092 
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:              2011-05-06 16:49 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] = "";
====================================================================== 

---------------------------------------------------------------------- 
 (0134616) svnbot (reporter) - 2011-05-06 16:49
 https://issues.asterisk.org/view.php?id=17034#c134616 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 317969

U   branches/1.8/apps/app_meetme.c

------------------------------------------------------------------------
r317969 | russell | 2011-05-06 16:49:01 -0500 (Fri, 06 May 2011) | 10
lines

Use the right variable to print the time in a debug message.

The original patch also increased some buffer sizes, but that was already
done in this version.

(closes issue https://issues.asterisk.org/view.php?id=17034)
Reported by: sysreq
Patches:
      asterisk-issue-17034.patch uploaded by sysreq (license 1009)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=317969 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-06 16:49 svnbot         Checkin                                      
2011-05-06 16:49 svnbot         Note Added: 0134616                          
======================================================================




More information about the asterisk-bugs mailing list