[OpenSIPS-Devel] [OpenSIPS/opensips] 7ea9b6: [core] proper re-init of cfg parser during reload_...

Bogdan Andrei IANCU noreply at github.com
Tue Nov 2 13:58:13 EST 2021


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7ea9b66f417f37b56e4f0cfaecf3c4dd831b6c36
      https://github.com/OpenSIPS/opensips/commit/7ea9b66f417f37b56e4f0cfaecf3c4dd831b6c36
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M cfg_pp.c

  Log Message:
  -----------
  [core] proper re-init of cfg parser during reload_routes

The lex parser needs an explicit reset/init after a parsing attempt completed with a parsing error. This is needed to be able to start a new parting session, via the route_reload MI cmd

(cherry picked from commit 5dd7976c03b6364f307b993bfdff1d8c1c010aa0)


  Commit: 41d57ac56d7ef648f270bb22315cfc8f07c607ab
      https://github.com/OpenSIPS/opensips/commit/41d57ac56d7ef648f270bb22315cfc8f07c607ab
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M cfg_pp.c

  Log Message:
  -----------
  [core] fix printing cfg file context for errors after a reload_routes

Reset the file context list each time a new cfg parsing starts, to be sure we do not inherite the context from a previous parsing.
If we do not do this, when doing a reload_routes, if an parsing error occurs, we will get references and dumps (of the faulty lines) from the original, startup script, not from the reloaded one.

(cherry picked from commit 52e51809ca219c97ea9e348f5dab6a109859eece)


Compare: https://github.com/OpenSIPS/opensips/compare/5ac273d60e55...41d57ac56d7e



More information about the Devel mailing list