]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_refer: Prevent sending duplicate headers. 29/729/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 15:41:05 +0000 (10:41 -0500)
commitf536e9b59c40bcfda917a568bbed09b3148949e1
tree5ddf4648203654ab13e351eacfd1fa477c5e3ab2
parent3f1fe83633e644be8a9983df50ce2213f63a5f9a
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