]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_caller_id: Fix crash on session timers UPDATE on inbound calls. 03/4203/1
authorJoshua Colp <jcolp@digium.com>
Thu, 27 Oct 2016 13:07:02 +0000 (13:07 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 27 Oct 2016 13:30:27 +0000 (08:30 -0500)
commit82ef2bb69db5921351a3c0cad86084275782c6a2
tree8b7fa380d17280b38297ba736e1fbe8d5b40537a
parent893afdac1ac5b89c2aafda1cb472a57ec81b7d39
res_pjsip_caller_id: Fix crash on session timers UPDATE on inbound calls.

The res_pjsip_caller_id module wrongly assumed that a
saved From header would always exist on sessions. This
is true until an inbound call is received and a session
timer causes an UPDATE to be sent. In this case there will
be no saved From header and a crash will occur. This change
makes it fall back to the From header of the outgoing request
if no saved From header is present.

ASTERISK-26307 #close

Change-Id: Iccc3bc8d243b5ede9b81abf960292930c908d4fa
res/res_pjsip_caller_id.c