[Home]

Summary:ASTERISK-28235: ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox in context
Reporter:FreeBSD (freebsdx)Labels:
Date Opened:2019-01-08 01:01:28.000-0600Date Closed:2019-04-13 14:19:14
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:13.24.1 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I have upgraded Asterisk from an old 11.x based system to 13.x.

Everything works except I get this errors for the voicemail when users connecting.

ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox 2001 in context ....

I have tried to put the voicemails into both the DEFAULT and custom (home) group like:

[home]
2001 => 1111,test1,test1@company.com
2008 => 1111,test2,test2@company.com


sip.conf for users:

[210]
canreinvite=yes
videosupport=yes
type=friend
host=dynamic
secret=bigsecret
context=home
mailbox=2001
deny=0.0.0.0/0
permit=10.0.0.0/255.0.0.0;
disallow=all
allow=g722
allow=speex
allow=ulaw
allow=alaw
allow=h261
allow=h263
allow=h263p
allow=h264
insecure=invite,port



Always the same results, I even went back to factory voicemail.conf and append it in the end.
Comments:By: Asterisk Team (asteriskteam) 2019-01-08 01:01:29.506-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: Joshua C. Colp (jcolp) 2019-01-08 04:48:41.147-0600

What happens if you actually specify the context to use in the mailbox line? That is: mailbox=2001@home

By: Joshua C. Colp (jcolp) 2019-01-08 04:49:24.558-0600

I ask because in UPGRADE-12.txt:

{noformat}
VoiceMail:
- Mailboxes defined by app_voicemail MUST be referenced by the rest of the
  system as mailbox@context.  The rest of the system cannot add @default
  to mailbox identifiers for app_voicemail that do not specify a context
  any longer.  It is a mailbox identifier format that should only be
  interpreted by app_voicemail.
{noformat}

By: FreeBSD (freebsdx) 2019-01-09 06:04:00.776-0600

mailbox=2008@home
restarting asterisk

[Jan  9 13:02:42] ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox 2001 in context home
[Jan  9 13:02:42] ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox 2008 in context home


By: Joshua C. Colp (jcolp) 2019-01-09 06:24:09.309-0600

Have you checked the console at startup to see if there are any errors with the configuration? Have you consulted the "voicemail show users" CLI command to see if the configuration was successfully parsed and handled?

By: FreeBSD (freebsdx) 2019-01-09 08:40:49.351-0600

Running as user '_asterisk'
Running under group '_asterisk'
Connected to Asterisk 13.20.0 currently running on pbx (pid = 62454)
pbx*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
home       2001  test1                         0
home       2008  test2                         0
2 voicemail users configured.
[Jan  9 15:39:03] ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox 2001 in context home
[Jan  9 15:39:03] ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox 2008 in context home


By: Joshua C. Colp (jcolp) 2019-01-09 08:54:06.984-0600

You filed this issue as 13.24.1, but your output shows 13.20.0. In the future please ensure that the version is correct, as it can impact things.

What is the FULL voicemail configuration so I can try to reproduce it? Are you using realtime or IMAP?

By: FreeBSD (freebsdx) 2019-01-09 09:11:17.957-0600

Sorry I also running Asterisk on OpenBSD 6.3 GENERIC.MP#107 amd64.

[general]
format=wav49|gsm|wav

serveremail=asterisk@pbxhost
attach=no
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3

emailsubject=[PBX]: New message ${VM_MSGNUM} in mailbox ${VM_MAILBOX}
emaildateformat=%A, %B %d, %Y at %r
pagerdateformat=%A, %B %d, %Y at %r
mailcmd=/usr/sbin/sendmail -t
sendvoicemail=yes
searchcontexts=yes

[zonemessages]
eastern=America/New_York|'vm-received' Q 'digits/at' IMp
central=America/Chicago|'vm-received' Q 'digits/at' IMp
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM


[default]

[home]
2001 => 1111,test1,test1@company.com
2008 => 1111,test2,test2@company.com


Also I have tried to remove the 3rd email field but it does the same thing:
[Jan 10 09:19:06] ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox 2001 in context home
[Jan 10 09:19:06] ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn't find mailbox 2008 in context home


Although I will need the email notifications.

By: Kevin Harwell (kharwell) 2019-01-23 15:22:37.194-0600

Looks like you are using IMAP_STORAGE. However, I see no settings configured for it in your voicemail.conf. Are you sure everything is enabled and setup correctly for imap voicemail?

By: Asterisk Team (asteriskteam) 2019-02-07 12:00:01.311-0600

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines