Confbridge channels related to unreachable sip peers

Hi,

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?

Best regards, KB

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.

1 Like

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.

Yay!!! Thanks very much for help!!!

Best regards and have a nice day!!!

hi, in my sip.conf

[GENERAL]
accept_outofcall_message=yes
auth_message_requests=no
outofcall_message_context=dpma_message_context
vmexten=*97
useragent=FPBX-13.0.192.9(13.7.2)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=speex
allow=g726
allow=g723
allow=g722
allow=g719
allow=g729
allow=testlaw
allow=vp8
allow=h263p
allow=h264
allow=h263
allow=mpeg4
allow=h261
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
limitonpeers=yes
callevents=yes
rtpend=20000
tcpenable=no
rtpstart=10000
bindport=5060
jbenable=yes
jbforce=no
jbimpl=fixed
jblog=no
jbmaxsize=200
jbresyncthreshold=1000
rtpkeepalive=30
rtpholdtimeout=300
rtptimeout=30
srvlookup=no
videosupport=yes
tlsbindaddr=[::]:5061
tlsclientmethod=sslv2
tlsenable=no
registertimeout=20
registerattempts=0
notifyringing=yes
canreinvite=no
checkmwi=10
defaultexpiry=120
g726nonstandard=no
maxcallbitrate=500
maxexpiry=3600
minexpiry=60
notifyhold=yes
allowguest=no
nat=force_rport,comedia
externip=52.11.38.97
ALLOW_SIP_ANON=no
callerid=Unknown
localnet=172.31.21.0/20
localnet=172.31.16.0/20
language=en

[1000]
deny=0.0.0.0/0.0.0.0
secret=8MGU{W0X=6p5Avd&
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp
avpf=no
force_avp=yes
icesupport=yes
encryption=no
namedcallgroup=
namedpickupgroup=
dial=SIP/1000
permit=0.0.0.0/0.0.0.0
callerid=asterisk <1000>
callcounter=yes
faxdetect=no

the peer is still at the conference but appears unreachable