changeModality
Changes the modality of the conversation between Modality.Messaging and Modality.Voice.
Requires the multimedia:core module to be included as a dependency and a MultimediaExtension to be provided in the configuration.
Return
Result.Success if the modality was changed, or Result.Error if the operation failed.
Parameters
modality
The Modality to switch to.