[asterisk-bugs] [Asterisk 0018582]: Problem reading a message which was previously saved as unread in INBOX.
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jan 5 21:31:54 UTC 2011
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=18582
======================================================================
Reported By: afosorio
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18582
Category: Applications/app_voicemail/ODBC
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.8.1.1
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-01-05 15:31 CST
Last Modified: 2011-01-05 15:31 CST
======================================================================
Summary: Problem reading a message which was previously saved
as unread in INBOX.
Description:
I am using odbc voicemail store but I am having a problem when trying to
listen a new message which was previously saved as unread in INBOX (option
9 and option 0). When a message is saved I see that database field msgnum
increments by one, this causes that when trying to read the message again,
asterisk show the next messages:
== Parsing
'/var/spool/asterisk/voicemail/default/8101/INBOX/msg0000.txt': == Found
-- <SIP/8101-00000007> Playing 'vm-message.gsm' (language 'es')
[Jan 5 16:20:24] WARNING[26037]: app_voicemail.c:7560 play_message: No
origtime?!
Below appears what is happening:
The database fields without reading the message:
mysql> select id, msgnum, dir, context, origtime, duration, mailboxuser,
mailboxcontext from voicemessages;
+----+--------+--------------------------------------------------+-------------+------------+----------+-------------+----------------+
| id | msgnum | dir | context
| origtime | duration | mailboxuser | mailboxcontext |
+----+--------+--------------------------------------------------+-------------+------------+----------+-------------+----------------+
| 1 | 0 | /var/spool/asterisk/voicemail/default/8101/INBOX |
macro-exten | 1294262263 | 5 | 8101 | default |
+----+--------+--------------------------------------------------+-------------+------------+----------+-------------+----------------+
The database fields after reading and saving the message as unread in
INBOX:
mysql> select id, msgnum, dir, context, origtime, duration, mailboxuser,
mailboxcontext from voicemessages;
+----+--------+--------------------------------------------------+-------------+------------+----------+-------------+----------------+
| id | msgnum | dir | context
| origtime | duration | mailboxuser | mailboxcontext |
+----+--------+--------------------------------------------------+-------------+------------+----------+-------------+----------------+
| 2 | 1 | /var/spool/asterisk/voicemail/default/8101/INBOX |
macro-exten | 1294262263 | 5 | 8101 | default |
+----+--------+--------------------------------------------------+-------------+------------+----------+-------------+----------------+
I am using asterisk version 1.8.1
Thanks in advance for your collaboration
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-01-05 15:31 afosorio New Issue
2011-01-05 15:31 afosorio Asterisk Version => 1.8.1.1
2011-01-05 15:31 afosorio Regression => No
2011-01-05 15:31 afosorio SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list