Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-22038

Display Presence State of Callee setting ignored in dialplan.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 15, 16
    • Fix Version/s: 15, 16
    • Component/s: Core
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      16.13.0
    • Distro Version:
      12.7.8-2008-1.sng7
    • Distro:
      FreePBX Distro

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                intulse_darren Darren Hollick
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.