int ret;
messages_service_s *_svc = (messages_service_s *)svc;
+ CHECK_NULL(_svc);
ret = msg_close_msg_handle(&_svc->service_h);
CHECK_NULL(_msg);
CHECK_NULL(_msg->msg_h);
CHECK_NULL(type);
-
+
ret = msg_get_int_value(_msg->msg_h, MSG_MESSAGE_TYPE_INT, &msgType);
if (ret != MSG_SUCCESS)
{
CHECK_NULL(_msg->msg_h);
ret = msg_get_list_handle(_msg->msg_h, MSG_MESSAGE_ADDR_LIST_STRUCT, (void **)&addr_list);
- if (MSG_SUCCESS != ret)
+ if (MSG_SUCCESS == ret)
{
addr_list->nCount = 0;
}
CHECK_NULL(_msg);
CHECK_NULL(_msg->msg_h);
-
sendOpt = msg_create_struct(MSG_STRUCT_SENDOPT);
msg_set_bool_value(sendOpt, MSG_SEND_OPT_SETTING_BOOL, true);
msg_set_bool_value(sendOpt, MSG_SEND_OPT_DELIVER_REQ_BOOL, false);
messages_message_s *_msg = (messages_message_s*)msg;
CHECK_NULL(_msg);
CHECK_NULL(_msg->msg_h);
+ CHECK_NULL(text);
ret = messages_get_message_type(msg, &type);
if (MESSAGES_ERROR_NONE != ret) {
messages_set_text(msg, "This is a multi-media message!");
messages_mms_set_subject(msg, "TEST!");
- messages_mms_add_attachment(msg, MESSAGES_MEDIA_VIDEO, "/opt/etc/msg-service/V091120_104905.3gp");
- messages_mms_add_attachment(msg, MESSAGES_MEDIA_IMAGE, "/opt/etc/msg-service/P091120_104633.jpg");
+// messages_mms_add_attachment(msg, MESSAGES_MEDIA_VIDEO, "/opt/etc/msg-service/V091120_104905.3gp");
+// messages_mms_add_attachment(msg, MESSAGES_MEDIA_IMAGE, "/opt/etc/msg-service/P091120_104633.jpg");
printf("Before Sending\n");