[OpenSIPS/opensips] 25c305: Refactor generic parse_to() to accept multi-value ...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSIPS/opensips] 25c305: Refactor generic parse_to() to accept multi-value ...

Bogdan-Andrei Iancu-2
  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 25c30561b7a24b949cf09d2b56539875d3debb26
      https://github.com/OpenSIPS/opensips/commit/25c30561b7a24b949cf09d2b56539875d3debb26
  Author: Bogdan-Andrei Iancu <[hidden email]>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M parser/parse_to.c
    M parser/parse_to.h

  Log Message:
  -----------
  Refactor generic parse_to() to accept multi-value headers.

New function parse_multi_to() added to allow parsing of multi-value (comma separated) name-addr/addr-spec headers (like Diversion, PAI, PPI).
Changes are backward compatible in regards to original parse_to() function.

(cherry picked from commit a7e724a09c01c78a5f3c303d2966a55883eaffeb)


  Commit: 9ae04214ba9a2fe7cad26e45658022f6f250441f
      https://github.com/OpenSIPS/opensips/commit/9ae04214ba9a2fe7cad26e45658022f6f250441f
  Author: Bogdan-Andrei Iancu <[hidden email]>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M parser/parse_diversion.c
    M parser/parse_pai.c
    M parser/parse_ppi.c

  Log Message:
  -----------
  Fix hdr parsing to accept multi-value bodies.

The parser for Diversion, PAI and PPI use now the parse_multi_to() in order to handle multi name-addr/addr-spec hdr bodies.

(cherry picked from commit 908b9f190bff3b356f76ce8ca75d43a2c149a412)


  Commit: c57bd60aff558898fa7dc0399f203b1d7c1f0b29
      https://github.com/OpenSIPS/opensips/commit/c57bd60aff558898fa7dc0399f203b1d7c1f0b29
  Author: Bogdan-Andrei Iancu <[hidden email]>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M modules/sipmsgops/sipmsgops.c

  Log Message:
  -----------
  Fix validation for PAI, PPI and Diversion headers

These headers must be parsed as multu-field headers
Also for PAI and PPI we apply extra checks as per RFC3325.

Close #1134
Close #1228

(cherry picked from commit 69ef92cd9f74020da5398eab0f81668bb8e12281)


Compare: https://github.com/OpenSIPS/opensips/compare/781e1b372299...c57bd60aff55
_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel