[OpenSIPS-Devel] [OpenSIPS/opensips] 60d46c: route: pass parameters as values

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


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 60d46c7e0f6cf3234dc53a5938d0400281e66f6b
      https://github.com/OpenSIPS/opensips/commit/60d46c7e0f6cf3234dc53a5938d0400281e66f6b
  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