[OpenSIPS-Devel] [OpenSIPS/opensips] 19a85c: Build listen_id and phostport tokens all the time.

Bogdan Andrei IANCU noreply at github.com
Fri Sep 27 03:47:24 EDT 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 19a85c69b83a91834eea3a44e161108327c491a0
      https://github.com/OpenSIPS/opensips/commit/19a85c69b83a91834eea3a44e161108327c491a0
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2019-09-27 (Fri, 27 Sep 2019)

  Changed paths:
    M cfg.y

  Log Message:
  -----------
  Build listen_id and phostport tokens all the time.

During script reload we avoid "interpreting" (during script reparsing) the tokens which are not related to the routing blocks (as we do now want to re-load the global params or the mod params).
Still, the listen_id and phostport tokens are used both from routing blocks (force_send_socket() and set_advertise()) and from the global parameters. As when they are parsed we have no clue what they will later expand to, better build the all the time the corresponding structures and eventually free them later if the grammar reduces to tokens related to global params.

Closes #1839





More information about the Devel mailing list