]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Creating Channel Causes Asterisk to Crash When Duplicate AOR 88/288/1
authorAshley Sanders <asanders@digium.com>
Tue, 28 Apr 2015 05:29:42 +0000 (00:29 -0500)
committerAshley Sanders <asanders@digium.com>
Wed, 29 Apr 2015 14:54:10 +0000 (09:54 -0500)
commit3278fe5327c6d34966ef6c87191d8d7d4fae4f66
tree1aa30d91e63217895b9c04f2eeeb904f1c947e21
parent3e4624ad21bc3eb7cedd6c7e41145ebc7cb6d86f
chan_pjsip: Creating Channel Causes Asterisk to Crash When Duplicate AOR
            Sections Exist in pjsip.conf

This patch modifies the current loading strategy of the pjsip configuration. If
duplicate sections (e.g. sections containing the same [id/type]) are defined in
[pjsip.conf], the loader will consider the configuration for the given type as
invalid when the duplicate section is encountered. The entire configuration
(including what was previously loaded) for the duplicate [id/type] sections
will be rejected and destroyed, an error message is logged and the load
processing for the given stops.

ASTERISK-24996
Reported By: Ashley Sanders

Change-Id: I35090ca4cd40f1f34881dfe701a329145c347aef
res/res_sorcery_config.c