pjsip: reinvite for connected line updates occurs when it should not
authorKevin Harwell <kharwell@digium.com>
Wed, 11 Sep 2013 14:23:28 +0000 (14:23 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 11 Sep 2013 14:23:28 +0000 (14:23 +0000)
commit4d35941891c37e7850a2ba8fc8fbf76624172cc0
treecacb93fb2a24d51725fe2125947732b481c8ce94
parent83bf017db9804c9274608ded72d70a72c086d756
pjsip: reinvite for connected line updates occurs when it should not

Connected line updates are now only sent out if an actual update needs to occur.
This happens under the following conditions:

1. The endpoint we are sending to is trusted.
2. Either a P-Asserted-Identity or Remote Party-ID header needs to be added/sent.
3. The connected id's number and name are valid.

Also added an SDP when an update is sent out.

(closes issue AST-1212)
Reported by: John Bigelow
Review: https://reviewboard.asterisk.org/r/2831/
........

Merged revisions 398806 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_pjsip.c
res/res_pjsip_caller_id.c