[OpenSIPS-Devel] [OpenSIPS/opensips] 3a93da: dialplan: Always set the "attrs" pvar on success; ...

Liviu Chircu noreply at github.com
Wed Mar 9 13:07:07 UTC 2022


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3a93dae1924fe88df859427c072b443e7a1892e0
      https://github.com/OpenSIPS/opensips/commit/3a93dae1924fe88df859427c072b443e7a1892e0
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-03-09 (Wed, 09 Mar 2022)

  Changed paths:
    M modules/dialplan/dialplan.c
    M modules/dialplan/doc/dialplan_admin.xml

  Log Message:
  -----------
  dialplan: Always set the "attrs" pvar on success; Improve docs

This patch avoids leaving an untouched "attrs_pvar" variable after a
successful dp_translate(), in case the attributes are NULL or
empty-string.

In order to both prevent scripting bugs as well as boilerplate
initialization code, the "attrs_pvar" is now always set to ""
(empty-string) in case the "attrs" field is either NULL or empty-string.

(cherry picked from commit a8f964c8f565f5fb66797ca7f352e013ec3aa79a)





More information about the Devel mailing list