Hangup channel when peer unreachable

Hi

I am doing an application that connects to asterisk through AMI. I am connecting two of my configured peers (PEER1 and PEER2) to a conference room . Up to this point everything works fine.

If in the middle of the conferece PEER1 is disconnected from the network, and so I receive a notification of PeerStatus Unreachable, however the channel will remain in Asterisk. Is there any configuration that I can do so that when peers are unreachable all their channels hangup?

Thank you very much!

If they are RTP based, you can use RTP timeouts.

Great! That did help me. Thank you very much.