[asterisk-dev] Why sip_peers sometimes not removed from the peers_by_ip table?
Kirill 'Big K' Katsnelson
kkm at adaptiveai.com
Wed Aug 4 00:50:40 CDT 2010
I found a few places in chan_sip.c where multiple peers are removed by a
call to ao2_t_callback(peers,..OBJ_UNLINK, ...). There is no
corresponding attempt to removed them also from the peers_by_ip list:
In sip_prune_realtime() near line 15884
In reload_config() near line 26188
Interesting that in another branch of sip_prune_realtime(), when a
single peers is removed, it is unlinked from peers_by_ip.
Also, in build_peer() near line 25448, a single peer is removed from
peers but not peers_by_ip().
Can anybody please explain why is that not done?
Thanks,
-kkm
More information about the asterisk-dev
mailing list