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

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


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 14f6aeda3f13e8dd6b881b9ae426a5b0e91fd511
      https://github.com/OpenSIPS/opensips/commit/14f6aeda3f13e8dd6b881b9ae426a5b0e91fd511
  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: 5fb90d2775d676a68ed1bcb677ca9f197bf8ea2b
      https://github.com/OpenSIPS/opensips/commit/5fb90d2775d676a68ed1bcb677ca9f197bf8ea2b
  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/a865b2a99b64...5fb90d2775d6



More information about the Devel mailing list