We need to create a custom asterisk channel, that work like chan_console, but instead to use local audio card it will use a spice connection to a kvm server for bidirectional audio.
What is played from the virtual machine must be forwarded to the caller and audio coming from the caller must be streamed as microphone of the virtual machine.
*Asterisk version 16
*Operating system for asterisk Linux Centos 7
*kvm ubuntu server LTS 18.04.3 or 19
*Virtual machine ubuntu 19
In the attached document