]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_refer: Prevent sending duplicate headers. 31/731/1
authorMark Michelson <mmichelson@digium.com>
Fri, 26 Jun 2015 15:41:05 +0000 (10:41 -0500)
committerMark Michelson <mmichelson@digium.com>
Fri, 26 Jun 2015 16:02:18 +0000 (11:02 -0500)
commit20f50131d7f8a48343688ca1bdd9031aa1b58e15
tree33d96bdd038d0a2d60f20a3a6c82252ecd665bb0
parent3ba48755c88c48e90be013f155b4f00d5a901a4b
res_pjsip_refer: Prevent sending duplicate headers.

res_pjsip_refer will attempt to add Referred-By or Replaces headers to
outbound INVITEs at times. If the INVITE gets challenged for
authentication, then we will resend the INVITE. Prior to this patch, the
Referred-By or Replaces header would be re-added to the outbound INVITE,
resulting in duplicated headers.

ASTERISK-25204 #close
Reported by Mark Michelson

Change-Id: I59fb5c08b4d253c0dba9ee3d3950b5025358222d
res/res_pjsip_refer.c