[asterisk-dev] Why sip_peers sometimes not removed from the peers_by_ip table?

Russell Bryant russell at digium.com
Wed Aug 4 05:58:20 CDT 2010


----- Original Message -----
> 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?

I'm not intimately familiar with that code, but it sounds like a bug.  Please open an issue on issues.asterisk.org so that we can investigate further.

--
Russell Bryant
Digium, Inc.  |  Engineering Manager, Open Source Software
445 Jan Davis Drive NW   -    Huntsville, AL 35806  -  USA
jabber: rbryant at digium.com    -=-    skype: russell-bryant
www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org




More information about the asterisk-dev mailing list