Call waiting when a call is made from another application

How about good afternoon, I have an environment with jitsi, I want to add a call waiting functionality, that is, when a call comes in from another application, I can control the audio and video channels, when I receive the other call, I can turn off the camera and the microphone and once finished return to the call with jitsi and activate the audio and video channels again, thank you very much for your help.