PBX Version:
15.0.16.78
PBX Distro:
12.7.8-2008-1.sng7
Asterisk Version:
16.13.0
Core Module Version:
15.0.12.37
Setting the "Display Presence State of Callee" to Yes or No makes no difference on the behavior of the dialplan. I believe this issue is unique to FreePBX 15 because that is where I can see the code changed. I think the issue is in this file https://github.com/FreePBX/core/blob/release/15.0/Dialplan/macroDialone.php. Lines 90 and 91 should be replaced with:
$cl_ps = \FreePBX::Config()->get('CONNECTEDLINE_PRESENCESTATE');
if (boolval($cl_ps)) {
$ext->add($mcontext,$exten,'', new \ext_gosub('1','s','sub-presencestate-display','${EXTTOCALL}'));
$cidnameval.= ' ${PRESENCESTATE_DISPLAY}';
}
I will try to submit a pull request on GitHub for this.