func_presencestate: Return "not_set" when no data is set in AstDB
authorIvan Poddubny <ivan.poddubny@gmail.com>
Wed, 7 Oct 2015 06:24:31 +0000 (09:24 +0300)
committerIvan Poddubny <ivan.poddubny@gmail.com>
Wed, 7 Oct 2015 06:24:31 +0000 (09:24 +0300)
commitc944263e3688ab257aaf98980190f359b61d31f7
tree2020afe06a87601adc0fc0d8a4c912ce293eaa6e
parent4bf395e81e91f12809ef9900ef6716d4cb1a2fd5
func_presencestate: Return "not_set" when no data is set in AstDB

Return AST_PRESENCE_NOT_SET when CustomPresence AstDB key does not
exist, i.e. when a new CustomPresence is added in the dialplan.

ASTERISK-25400 #close
Reported by: Andrew Nagy

Change-Id: I6fb17b16591b5a55fbffe96f3994ec26b1b1723a
funcs/func_presencestate.c