]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_registrar: Improve performance on inbound handling.
authorJoshua Colp <jcolp@digium.com>
Wed, 1 Aug 2018 14:45:04 +0000 (14:45 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 3 Aug 2018 09:09:08 +0000 (04:09 -0500)
commit1e837e13f5c217d170b905e2c52006f20fb72b25
tree031b75f1f07ad6f1d443d38796abff12ee8d682a
parent19494d9481d3682706d96eb2d31ed319bd699672
res_pjsip_registrar: Improve performance on inbound handling.

This change removes a sorcery lookup for retrieving all
contacts at the end of the registration process by keeping
track of the contacts that are added/updated/deleted.

This ensures at the end of the process the container of
contacts we have is the current state.

Pool usage has also been reduced by allocating one for
usage throughout the handling of a REGISTER and resetting
it to a clean state. This ensures that in most cases
we allocate once and just reuse it.

ASTERISK-28001

Change-Id: I1a78b2d46f9a2045dbbff1a3fd6dba84b612b3cb
res/res_pjsip_registrar.c