]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_authenticator: Increase CSeq on authed requests. 49/249/2
authorMark Michelson <mmichelson@digium.com>
Fri, 24 Apr 2015 14:17:25 +0000 (09:17 -0500)
committerMark Michelson <mmichelson@digium.com>
Fri, 24 Apr 2015 15:25:58 +0000 (10:25 -0500)
commit1da9ec969ddfbc9a1450e698af20913df92e5fd9
tree86490797adc2ad72fc4d089f1523b0306d2cc078
parentbf3d9db4a6c443e9284a668aa48b4e5f0d3d8af5
res_pjsip_outbound_authenticator: Increase CSeq on authed requests.

The way PJSIP generates an authenticated request is to use a previous
request as a template. This means that the authenticated request will
have the same Call-ID, From header (including tag), and CSeq as the
original request. PJSIP generates a new branch on the Via header to
indicate that this is a new transaction, though.

There are some SIP implementations, though, that do not notice the
change in the branch and therefore will match the authed request to the
original request's transaction. Since the CSeq is the same, the server
will repeat the response it sent to the original request.

This patch aids interoperability by increasing the CSeq of the authed
request by one.

ASTERISK-24845 #close
Reported by: Carl Fortin
Tested by: Carl Fortin

Change-Id: I39c4ca52e688a9f83bcc1878371334becdc5be01
res/res_pjsip_outbound_authenticator_digest.c