[OpenSIPS-Devel] [OpenSIPS/opensips] 5e4c0b: route: pass parameters as values

Răzvan Crainea noreply at github.com
Wed Jan 25 14:37:52 UTC 2023


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5e4c0b907df1e61eb1a6228072fdc4cb16803af2
      https://github.com/OpenSIPS/opensips/commit/5e4c0b907df1e61eb1a6228072fdc4cb16803af2
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M action.c

  Log Message:
  -----------
  route: pass parameters as values

When calling route(NAME, $pv, ...), expand the `$pv` before running the
route - this way the parameter is passed as value, rather than
reference, which could lead to some unexpected behavior.

(cherry picked from commit 8761ce6d2089915f18db6ae21677a690a6958bac)





More information about the Devel mailing list