Subject: | ACK for 200 does not change branch in VIA |
Date: | Sun, 19 Jul 2020 09:43:13 +0000 |
To: | "bug-Net-SIP [...] rt.cpan.org" <bug-Net-SIP [...] rt.cpan.org> |
From: | Richard Carver <richard [...] carver.me.uk> |
Net::SIP::Request create_ack copies the Via header from the request and does not modify it. This is in violation for the RFC when the ACK is for a 2xx response.
https://tools.ietf.org/html/rfc3261#section-8.1.1.7
"The branch parameter value MUST be unique across space and time for all requests sent by the UA. The exceptions to this rule are CANCEL and ACK for non-2xx responses."