Solved: Where did func_exists go and what is the alternative

I have just updated a somewhat older version of Asterisk to version 20 and discovered that the function func_exists apparently no longer exists (“Function EXISTS not registered”, “show function” no longer displays it either). Am I right in assuming that this function was dropped in some previous version? Is there an alternative to test the existence of a variable?

My old dialplan was:
exten => member_check,n,While($[${EXISTS(${thisQueueMember})}])
exten => member_check,n,GotoIf($[“${thisQueueMember}” != “${thisActiveMember}”]?check_next)

You shouldn’t really talk to yourself, but in case anyone has the same stupid question: The function still exists and is “hidden” behind func_logic:

module load


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.