Vpn on asterisk

The ability for VPN to be included or removed while call is in progress.

You’re going to need to be more specific with your question.

im trying to build an asterisk server which will entrail video and voice call.The features that will be embedded in the implementation includes: The ability for VPN to be included or removed while call is in progress

Explain “ability for VPN to be included or removed”.

just like making the vpn on demand

like turning on/off the vpn by pressing any number on the asterisk softphone while call is in progress

What do you mean by VPN. This makes no sense for Virtual Private Networks, as far as I can see.

I guess he wants to switch the VPN adapter(I.e. TUN0) to the real adapter(I.e. ETH0) during the call which for me it’s nonsense and I think impossible to do.