void __message_port_cb(int local_port_id, const char* remote_app_id, const char* remote_port, bool trusted_remote_port, bundle* message, void* user_data)
{
char *command = NULL;
- MAS_LOGD("Message from %s, command: %s", remote_app_id, command);
-
bundle_get_str(message, "command", &command);
+ MAS_LOGD("Message from %s, command: %s", remote_app_id, command);
+
if (!strncmp(command, "start", strlen(command))) {
multi_assistant_service_plugin_start_recording();
} else if (!strncmp(command, "cancel", strlen(command))) {