]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Stasis: Use custom structure when setting variables. 76/2076/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:22:59 +0000 (10:22 -0600)
commit4a3275abb9e6528f5bacbb454446a3e2e7115d88
treea35221f09112577c6c942d86098cef8b923b709c
parentfcb6c1737d586d5e574d3c2f865157a9632979a7
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