]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Stasis: Use custom structure when setting variables. 82/2082/2
authorMark Michelson <mmichelson@digium.com>
Mon, 25 Jan 2016 16:23:18 +0000 (10:23 -0600)
committerMark Michelson <mmichelson@digium.com>
Tue, 26 Jan 2016 16:25:43 +0000 (10:25 -0600)
commita706ad44e6834da6034ce6b179195d161f782a61
tree1d1adecedf7e8d9904bfcc52ed71fce2fe1179ec
parentf8bf72a417bf5e6d6149b657fa806174b82430ce
Stasis: Use custom structure when setting variables.

A recent change to queue channel variable setting to the Stasis control
queue caused a regression. When setting channel variables, it is
possible to give a NULL channel variable value in order to unset the
variable (i.e. remove it from the channel variable list). The change
introduced a call to ast_variable_new(), which is not tolerant of NULL
channel variable values.

This new change switches from using ast_variable to using a custom
channel variable struct that is lighter weight and NULL value-tolerant.

Change-Id: I784d7beaaa3c036ea936d103e7caf0bb1562162d
res/stasis/control.c