[Home]

Summary:ASTERISK-05865: Realtime voicemail contexts broken in 1.2.1
Reporter:Alistair Cunningham (acunningham)Labels:
Date Opened:2005-12-18 05:46:26.000-0600Date Closed:2005-12-18 07:20:51.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:After upgrading from 1.2.0 to 1.2.1, realtime voicemail stops working if the system uses the context field in the database. For example:

exten => 1234, 1, VoicemailMain(1234@abcd)

gives the following on the console:

   -- Executing VoiceMailMain("SIP/192.168.1.1-08beb9f8", "1234@abcd") in new stack
Avoiding initial deadlock for 'SIP/192.168.1.1-08beb9f8'
Dec 18 12:22:55 DEBUG[17269]: res_config_mysql.c:125 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM mailboxes WHERE mailbox = '1234' AND context = ''

The problem seems to be in apps/app_voicemail.c, around line 537, where the following lines have been removed:

if (context)
   ast_copy_string(retval->context, context, sizeof(retval->context));
else
   strcpy(retval->context, "default");

Putting these back and recompiling fixes the problem.
Comments:By: Tilghman Lesher (tilghman) 2005-12-18 07:20:12.000-0600

It's already been fixed in the 1.2 tree.