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

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


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