]> 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 20:59:51 +0000 (15:59 -0500)
commit2fa296e7d41526f000841c083fcbd4d38a7fd776
tree78d9f773c5e0cce4cc3871141371ae64eb1af3e5
parentcb9fdc21d1a82021f4ed024b46c48ed0f19b5190
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