#include "MsgDeliverHandler.h"
#include "MsgTransManager.h"
#include "MsgStorageTypes.h"
+#include "MsgSoundPlayer.h"
#include <errno.h>
#include <glib.h>
// Register Callback to get the change of contact
MsgInitContactSvc(&MsgContactChangedCallback);
+ MsgSoundPlayStart();
return (void*)0;
}
if (childpid == 0)
{
MSG_DEBUG("Child Process - Run helper app for Sound");
+ int nRepeatValue = 0;
- execl("/usr/bin/msg-helper", MSG_SOUND_START, NULL);
+ nRepeatValue = MsgSettingGetInt(MSG_ALERT_TONE);
+
+ if(nRepeatValue != MSG_ALERT_TONE_ONCE)
+ execl("/usr/bin/msg-helper", MSG_SOUND_START, NULL);
MSG_DEBUG("Faild to run helper app for Sound");