[Spce-user] Cannot save voicemail to old folder

Jose Gonzalez joe_gonzalez28 at hotmail.com
Sun Jun 26 10:05:11 EDT 2011





Hello,  We are running CE 2.1 and when you are checking your voicemails and try to save a message to the old messages folder, there is a long pause and it says that message was saved successfully, but asterisk produces the following error and the message is lost. Anyone come across this before? Jun 26 08:55:01 ngcp02 asterisk[12002]: WARNING[14783]: res_odbc.c:105 in ast_odbc_prepare_and_execute: SQL Execute returned an error -1: HY000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.57-rel12.8-log]Cannot add or update a child row: a foreign key constraint fails (`kamailio`.`voicemail_spool`, CONSTRAINT `v_s_mailboxuser_ref` FOREIGN KEY (`mailboxuser`) REFERENCES `voicemail_users` (`customer_id`) ON (289)
Jun 26 08:55:01 ngcp02 asterisk[12002]: WARNING[14783]: res_odbc.c:113 in ast_odbc_prepare_and_execute: SQL Execute error -1! Attempting a reconnect...
Jun 26 08:55:06 ngcp02 asterisk[12002]: NOTICE[14783]: res_odbc.c:537 in odbc_obj_connect: Connecting asterisk
Jun 26 08:55:06 ngcp02 asterisk[12002]: NOTICE[14783]: res_odbc.c:565 in odbc_obj_connect: res_odbc: Connected to asterisk [asterisk]
Jun 26 08:55:06 ngcp02 asterisk[12002]: WARNING[14783]: res_odbc.c:105 in ast_odbc_prepare_and_execute: SQL Execute returned an error -1: HY000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.57-rel12.8-log]Cannot add or update a child row: a foreign key constraint fails (`kamailio`.`voicemail_spool`, CONSTRAINT `v_s_mailboxuser_ref` FOREIGN KEY (`mailboxuser`) REFERENCES `voicemail_users` (`customer_id`) ON (289)
Jun 26 08:55:06 ngcp02 asterisk[12002]: WARNING[14783]: res_odbc.c:113 in ast_odbc_prepare_and_execute: SQL Execute error -1! Attempting a reconnect...
Jun 26 08:55:11 ngcp02 asterisk[12002]: NOTICE[14783]: res_odbc.c:537 in odbc_obj_connect: Connecting asterisk
Jun 26 08:55:11 ngcp02 asterisk[12002]: NOTICE[14783]: res_odbc.c:565 in odbc_obj_connect: res_odbc: Connected to asterisk [asterisk]
Jun 26 08:55:11 ngcp02 asterisk[12002]: WARNING[14783]: app_voicemail.c:2540 in copy_file: SQL Execute error!#012[INSERT INTO voicemail_spool (dir, msgnum, context, macrocontext, callerid, origtime, duration, recording, mailboxuser, mailboxcontext) SELECT ?,?,context,macrocontext,callerid,origtime,duration,recording,?,? FROM voicemail_spool WHERE dir=? AND msgnum=?] (You probably don't have MySQL 4.1 or later installed)#012
 Sincerely, Jose GonzalezActivePBX.com  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20110626/165a2d88/attachment.html>


More information about the Spce-user mailing list