fusionpbx/resources/install/scripts/app
nostikj 72f2dbab31 Corrects some cases where dialplan conditions were not fully handled (#1850)
* Remove unsed variable

* Fix cases where time condition are lost

When processing a new condition statement and condition_tag_status == "open",
then there has been a previous condition statement that is in one of three
possible states:
  (1) a previous condition of type default has been saved into the
      'condition' string and will need to be output as XML with either '>' or '/>'
  (2) one or more time conditions have been saved into the
      'condition_attribute' string.  More time conditions may be added.
      After the last time condition it will need to be output as XML with either '>' or '/>'
  (3) a previous <condition ....> start tag has already been output as XML
      and needs to be closed with a </condition> statement.

The change here checks for all three above situations at the places where
pending condition statements need to be finalized.

Note that when processing condition new statements and we are finalizing
a previous time condition, the XML statement uses the 'condition_break'
value from the previous loop, therefore setting condition_break for the
new condition must be after previous conditions are finalized.

At the start of each new extension, initialize 'condition' and
'condition_attribute'.

* Remove unused variables

* Indent one block to match surrounding code at same level

* Prevent two dialplans uuids being merged into single extension

If a dialplan manager entry ended with an action statement NOT inside
a condition, the generated XML would combine this dialplan uuid with the next
uuid by not closing and reopening a new extension.  This change ensures
each dialplan uuid is enclosed in it own <extension></extension>.
2016-08-25 08:50:54 -06:00
..
agent_status Update index.lua 2016-08-17 09:55:08 -06:00
avmd Fix the indentation on lua app/avmd/index.lua. 2015-04-24 20:44:47 +00:00
call_block WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
conference_center BugFix-Add PROJECT_PATH for lua (#1740) 2016-07-08 13:12:37 -06:00
dialplan After removing domain name from the default recordings dir path need to add the domain name every where the recordings directory is currently used. 2015-12-06 13:37:35 -07:00
event_notify Seperate Cisco 7940/7960 from Cisco SPA so that both can work with check-sync for reboot and reprovision. 2015-12-01 21:12:52 -07:00
failure_handler WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
fax Fix. send fax file as PDF in response message 2016-04-05 13:48:50 +03:00
hangup Get the channel variable in a way that will work with hangup. 2015-09-15 10:09:16 -06:00
is_local Rollback changes to is_local.lua determined that switching to regex would lower perfomance adding an 'or' with a search for prefix would perform better. 2016-03-27 20:44:14 -06:00
missed_calls/resources/templates/en/us Add multi-lingual support to the missed call emails. 2015-09-15 08:49:37 -06:00
provision Merge pull request #1479 from mafoo/WhitespaceClean-resources/install/scripts 2016-03-11 13:20:17 -07:00
ring_groups Update bind_target for ring groups default to peer if sip_authorized = true then set to both. 2016-08-20 23:59:10 -06:00
toll_allow Fix. Off debug output 2015-08-14 12:26:34 +04:00
voicemail Update record_message.lua 2016-08-20 18:54:02 -06:00
xml_handler Corrects some cases where dialplan conditions were not fully handled (#1850) 2016-08-25 08:50:54 -06:00