]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip/config_transport: Check pjproject version at runtime for async ops 06/1806/1
authorGeorge Joseph <george.joseph@fairview5.com>
Sat, 12 Dec 2015 17:08:50 +0000 (10:08 -0700)
committerGeorge Joseph <george.joseph@fairview5.com>
Sat, 12 Dec 2015 17:12:22 +0000 (10:12 -0700)
commit5b867fa9043dec7aee8fbe21a6537efb103e4d92
treebbf97a87268ba089a48501bcc4b6849ed649a97f
parent14b41115e363766633aec67f67e9764521b74f5c
pjsip/config_transport: Check pjproject version at runtime for async ops

pjproject < 2.5.0 will segfault on a tls transport if async_operations
is greater than 1.  A runtime version check has been added to throw
an error if the version is < 2.5.0 and async_operations > 1.

To assist in the check, a new api "ast_compare_versions" was added
to utils which compares 2 major.minor.patch.extra version strings.

ASTERISK-25615 #close

Change-Id: I8e88bb49cbcfbca88d9de705496d6f6a8c938a98
Reported-by: George Joseph
Tested-by: George Joseph
include/asterisk/utils.h
main/utils.c
res/res_pjsip/config_transport.c