]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_caller_id: Fix crash on session timers UPDATE on inbound calls. 04/4204/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:36 +0000 (08:30 -0500)
commit6993f3c9c318ca65efb21e47a9f8cd20a0a621d6
tree43d80cc48a72fdf3c8bc0b4c2b412538309965df
parent211a1003e4df38bc2e46d9df54f69f4994ac5b2e
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