I noticed that confbridge can have channels related to unreachable peers. Channel list is not updated when SIP peer (connected to bridge) becomes unreachable.
How can i remove such channels from confbridge?
For example:
I have extension 123 which is joining conference with id 1,
confbridge list 1
Channel User Profile Bridge Profile Menu CallerID Muted
============================== ================ ================ ================ ================ =====
SIP/123-00000001 default_user default_bridge No
When i will kill this SIP peer, after some time, asterisk is aware that this peer gone offline (i have unreachable state), but channel created by this sip peer is still present in this confbridge list command result,
When im checking channel status via AMI im receiving active state. How to check if channel is related to unreachable peer and if so, disconnect it?
There are two options in sip.conf which can be used to determine that a call is no longer active and to terminate: RTP timeout detects that no media has flowed for a period of time, session timers send a SIP message periodically and if there is no response terminates the call. If you look at the sample configuration file you can see how to configure these.
Asterisk will only tear down an existing call if rtp timeouts are enabled and fail, or a re-invite fails (after the full number of retries). Session timers will cause re-invites.