]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_pjsip_diversion: prevent crash on tel: uri in History-Info
authorTorrey Searle <tsearle@voxbone.com>
Tue, 22 Dec 2020 08:58:39 +0000 (09:58 +0100)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 4 Jan 2021 10:09:30 +0000 (04:09 -0600)
commit51e2187a149c8a8bf83fcba06b6cebee886aedc7
tree943ea02a0e52e5e026afe93f48c1ed8e83801af9
parent058bc0d59343030131cdfa80e7a06d36f17aadfd
res/res_pjsip_diversion: prevent crash on tel: uri in History-Info

Add a check to see if the URI is a Tel URI and prevent crashing on
trying to retrieve the reason parameter.

ASTERISK-29191
ASTERISK-29219

Change-Id: I0320aa205f22cda511d60a2edf2b037e8fd6cc37
(cherry picked from commit a7aea71e60d513af82c6e3825e2308e063139b63)
res/res_pjsip_diversion.c