[Asterisk-code-review] res pjsip: Prune TCP/TLS contacts in astdb at startup (asterisk[13])

George Joseph asteriskteam at digium.com
Mon Feb 22 12:26:23 CST 2016


Hello Anonymous Coward #1000019, Joshua Colp,

I'd like you to reexamine a change.  Please visit

    https://gerrit.asterisk.org/2279

to look at the new patch set (#2).

Change subject: res_pjsip: Prune TCP/TLS contacts in astdb at startup
......................................................................

res_pjsip: Prune TCP/TLS contacts in astdb at startup

Unlike UDP contacts, TCP and TLS dynamic contacts can't be reused at startup
because their sockets were closed when Asterisk terminated.  If left in astdb,
when Asterisk restarts, we'll be trying to open a new socket to a port on the
client that most likely doesn't exist.  The result is more useless messages
and continued retries until the contact expires or is replaced.

ast_res_pjsip_initialize_configuration() now calls a new prune_tcp_contacts()
function just before returning that cleans out the TCP and TLS contacts from
sorcery.

Change-Id: I33fb70ba8380b8c61d574845346e380c10828bd9
---
M res/res_pjsip/pjsip_configuration.c
1 file changed, 46 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/79/2279/2
-- 
To view, visit https://gerrit.asterisk.org/2279
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I33fb70ba8380b8c61d574845346e380c10828bd9
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: George Joseph <george.joseph at fairview5.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list