]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channels: Allow updating variable value
authorSean Bright <sean.bright@gmail.com>
Wed, 11 Sep 2019 20:58:29 +0000 (16:58 -0400)
committerSean Bright <sean.bright@gmail.com>
Thu, 12 Sep 2019 21:00:07 +0000 (16:00 -0500)
commit32ce6e9a06b5483bf3e6f485ed8c62eae77f4bbf
tree0dab5c343ee1bbdbf2202bc9bc6a9af781d2533e
parent02dfc89007b6f4f06c8e3939fd1c5e3d8d0681fb
channels: Allow updating variable value

When modifying an already defined variable in some channel drivers they
add a new variable with the same name to the list, but that value is
never used, only the first one found.

Introduce ast_variable_list_replace() and use it where appropriate.

ASTERISK-23756 #close
Patches:
  setvar-multiplie.patch submitted by Michael Goryainov

Change-Id: Ie1897a96c82b8945e752733612ee963686f32839
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_sip.c
include/asterisk/config.h
main/config.c
res/res_pjsip/pjsip_configuration.c