Author: sayer
Date: 2008-05-15 18:07:37 +0200 (Thu, 15 May 2008)
New Revision: 965

Modified:
   trunk/apps/annrecorder/AnnRecorder.cpp
Log:
make it actually save the message

Modified: trunk/apps/annrecorder/AnnRecorder.cpp
===================================================================
--- trunk/apps/annrecorder/AnnRecorder.cpp      2008-05-15 15:09:41 UTC (rev 
964)
+++ trunk/apps/annrecorder/AnnRecorder.cpp      2008-05-15 16:07:37 UTC (rev 
965)
@@ -1,7 +1,7 @@
 /*
  * $Id: AnnRecorder.cpp 722 2008-02-12 12:52:31Z sayer $
  *
- * Copyright (C) 2008 Fhg Fokus
+ * Copyright (C) 2008 iptego GmbH
  *
  * This file is part of sems, a free SIP media server.
  *
@@ -38,7 +38,7 @@
 
 #define MOD_NAME "annrecorder"
 
-#define DEFAULT_TYPE "aa"
+#define DEFAULT_TYPE "vm"
 #define DOMAIN_PROMPT_SUFFIX "-prompts"
 
 #define TIMERID_START_TIMER   1
@@ -357,9 +357,12 @@
 
 void AnnRecorderDialog::saveAndConfirm() {
 //    wav_file.setCloseOnDestroy(false);
-//  wav_file.on_close();
-  saveMessage(wav_file.getfp());
-  prompts.addToPlaylist(GREETING_SET,  (long)this, playlist);
+  wav_file.close();
+  FILE* fp = fopen(msg_filename.c_str(), "r");
+  if (fp) {
+    saveMessage(fp);
+    prompts.addToPlaylist(GREETING_SET,  (long)this, playlist);
+  }
   prompts.addToPlaylist(BYE,  (long)this, playlist);
   state = S_BYE;
 }

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to