]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_authenticator: Increase CSeq on authed requests. 48/248/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:23:33 +0000 (10:23 -0500)
commitbd61c9300cb143b44b326bbe4c5340307d18c2cd
treee1af25e50ada08c61dc329ee320cf53dad978094
parent7ccaf8aa46ae98be8289180d6b68c17f177e4f2f
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