#include "MsgException.h"
#include "MsgGconfWrapper.h"
#include "MsgUtilFile.h"
+#include "MsgUtilFunction.h"
#include "MsgMmsMessage.h"
#include "MsgSerialize.h"
#include "MmsPluginDebug.h"
MSG_BEGIN();
try {
+ if (msg_check_dpm_policy(pReqInfo->msgInfo.msgType.mainType) == false) {
+ MSG_DEBUG("Messaging is restricted by DPM policy.");
+ return MSG_ERR_DPM_RESTRICT;
+ }
+
MmsPluginTransport::instance()->submitRequest(pReqInfo);
} catch (MsgException& e) {
MSG_FATAL("%s", e.what());