Changeset 7342

Show
Ignore:
Timestamp:
01/06/09 13:58:59 (1 year ago)
Author:
p_lindheimer
Message:

Merged revisions 7177,7179-7185,7191-7201,7204-7211,7213-7221,7223-7226,7228-7249,7252-7260,7262-7272,7279-7285,7289-7291,7294-7295,7297-7312,7317-7320,7322-7331,7333-7340 via svnmerge from
http://svn.freepbx.org/modules/branches/2.6

........

r7177 | p_lindheimer | 2008-10-29 10:51:38 -0700 (Wed, 29 Oct 2008) | 1 line


Auto Check-in of any outstanding patches

........

r7196 | mickecarlsson | 2008-10-30 23:25:31 -0700 (Thu, 30 Oct 2008) | 1 line


Fixed type in code fro fw_fop

........

r7228 | mickecarlsson | 2008-11-05 09:14:56 -0800 (Wed, 05 Nov 2008) | 1 line


Changed some enclosed text string with proper enclosures so that localization with apostrophe will work

........

r7255 | lazytt | 2008-11-12 07:57:37 -0800 (Wed, 12 Nov 2008) | 1 line


ref #3358

........

r7300 | mickecarlsson | 2008-11-23 01:15:27 -0800 (Sun, 23 Nov 2008) | 1 line


Fixes #3409, dashboard display wrong statistics and color when disk storage is above 1Tb

........

r7301 | mickecarlsson | 2008-11-23 06:11:19 -0800 (Sun, 23 Nov 2008) | 1 line


Enclosed text strings for translation. Updated .pot file and swedish language

........

r7302 | mickecarlsson | 2008-11-23 06:26:47 -0800 (Sun, 23 Nov 2008) | 1 line


Enclosed text string for translation in core

........

r7306 | mickecarlsson | 2008-12-01 08:45:04 -0800 (Mon, 01 Dec 2008) | 1 line


Closes #932 adds permit/deny to sip and iax devices

........

r7307 | mickecarlsson | 2008-12-01 09:00:09 -0800 (Mon, 01 Dec 2008) | 1 line


Adds default 0.0.0.0/0.0.0.0 in deny and permit for sip and iax devices

........

r7308 | mickecarlsson | 2008-12-03 22:20:02 -0800 (Wed, 03 Dec 2008) | 1 line


Fixes #3426, sets code to follow tool tip. Thank you ryand

........

r7310 | mickecarlsson | 2008-12-06 06:07:17 -0800 (Sat, 06 Dec 2008) | 1 line


Closes #3224 removes hard coded database name

........

r7317 | mickecarlsson | 2008-12-15 10:55:17 -0800 (Mon, 15 Dec 2008) | 1 line


Closes #3443 adding check for uppercase file extensions

........

r7320 | ethans | 2008-12-17 16:31:52 -0800 (Wed, 17 Dec 2008) | 3 lines


Adds hook support into IVR page

........

r7322 | mickecarlsson | 2008-12-17 22:08:41 -0800 (Wed, 17 Dec 2008) | 1 line


Closes 3448 adding check for server side DND in normal paging

........

r7340 | mickecarlsson | 2008-12-30 14:22:14 -0800 (Tue, 30 Dec 2008) | 1 line


Closes #3448 finally fixes the DND in paging. Thank you jjshoe

........

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5

    • Property svnmerge-integrated changed from /modules/branches/2.4:1-5852,5908 /modules/branches/2.6:1-7080,7132,7158-7174,7222,7261 to /modules/branches/2.4:1-5852,5908 /modules/branches/2.6:1-7080,7132,7158-7174,7177,7179-7186,7191-7202,7204-7226,7228-7250,7252-7273,7279-7286,7289-7292,7294-7295,7297-7312,7317-7320,7322-7331,7333-7340
  • modules/branches/2.5/backup/bin/ampbackup.pl

    r7126 r7342  
    6363$User_Preferences{"ASTETCDIR"} = "/etc/asterisk"; 
    6464 
     65$User_Preferences{"CDRDBNAME"} = "asteriskcdrdb"; 
     66 
    6567$User_Preferences{"AMPPROVROOT"} = ""; 
    6668$User_Preferences{"AMPPROVEXCLUDE"} = ""; 
     
    114116# the WEB ROOT directory  
    115117$webroot = $User_Preferences{"AMPWEBROOT"}; 
    116  
    117 # Provisioning root(s) and exclude list, if phone configuratoins should be backed up 
     118# CDR database  
     119$cdrdatabase = $User_Preferences{"CDRDBNAME"}; 
     120 
     121# Provisioning root(s) and exclude list, if phone configurations should be backed up 
    118122# 
    119123$provroot = $User_Preferences{"AMPPROVROOT"}; 
     
    209213        if ( $Backup_CDR eq "yes" ){ 
    210214                system ("/bin/tar -Pcz -f /tmp/ampbackups.$Stamp/cdr.tar.gz $webroot/admin/cdr"); 
    211                 system ("mysqldump --add-drop-table -h $hostname -u $username -p$password --database asteriskcdrdb > /tmp/ampbackups.$Stamp/asteriskcdr.sql"); 
     215                system ("mysqldump --add-drop-table -h $hostname -u $username -p$password --database $cdrdatabase > /tmp/ampbackups.$Stamp/asteriskcdr.sql"); 
    212216        } 
    213217        if ( $Backup_FOP eq "yes" ){ 
  • modules/branches/2.5/backup/i18n/backup.pot

    r6860 r7342  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2008-09-27 15:00+0200\n" 
     11"POT-Creation-Date: 2008-11-23 14:54+0100\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    5858msgstr "" 
    5959 
     60#: schedule_functions.php:21 schedule_functions.php:46 
     61msgid "Are you sure you want to delete this File Set?" 
     62msgstr "" 
     63 
    6064#: schedule_functions.php:22 
    6165msgid "DELETE ALL THE DATA IN THIS SET" 
     
    7478msgstr "" 
    7579 
     80#: schedule_functions.php:51 
     81msgid "" 
     82"Are you sure you want to restore this COMPLETE file set?\\nDoing so will " 
     83"permanently over-write all FreePBX and Asterisk files\\nYou will lose all " 
     84"Your Call Detail Records and any Voicemail that was recorded between the " 
     85"BACKUP DATE and NOW!" 
     86msgstr "" 
     87 
    7688#: schedule_functions.php:52 
    7789msgid "Restore Entire Backup Set" 
     
    8294msgstr "" 
    8395 
     96#: schedule_functions.php:58 
     97msgid "" 
     98"Are you sure you want to Restore this file set?\\nDoing so will permanently " 
     99"delete any new voicemail you have in your mailbox\\nsince this backup on" 
     100msgstr "" 
     101 
    84102#: schedule_functions.php:59 
    85103msgid "Restore VoiceMail Files" 
     
    90108"Restore your Voicemail files from this backup set.  NOTE! This will delete " 
    91109"any voicemail currently in the voicemail boxes." 
     110msgstr "" 
     111 
     112#: schedule_functions.php:67 
     113msgid "" 
     114"Are you sure you want to Restore this file set?\\nNOTE! This will OVERWRITE " 
     115"any voicerecordings currently on the system. It will NOT delete new files " 
     116"not currently in the backup set" 
    92117msgstr "" 
    93118 
     
    103128msgstr "" 
    104129 
     130#: schedule_functions.php:74 
     131msgid "" 
     132"Are you sure you want to Restore this File Set?\\nDoing so will Permanently " 
     133"Over-Write all FreePBX and Asterisk Files!" 
     134msgstr "" 
     135 
    105136#: schedule_functions.php:75 
    106137msgid "Restore System Configuration" 
     
    114145msgstr "" 
    115146 
     147#: schedule_functions.php:79 
     148msgid "" 
     149"Are you sure you want to Restore the Operator Panel Files?\\nDoing so will " 
     150"Permanently Over-Write all Operator Panel Files!" 
     151msgstr "" 
     152 
    116153#: schedule_functions.php:80 
    117154msgid "Restore Operator Panel" 
     
    123160"any Operator Panel Changes you have made since this backup... ALL Itemes " 
    124161"will be reset to what they were at the time of this backup set.." 
     162msgstr "" 
     163 
     164#: schedule_functions.php:87 
     165msgid "" 
     166"Are you sure you want to Restore the CALL DETAIL FILES?\\nDoing so will " 
     167"Permanently DELETE all CALL RECORDS!" 
    125168msgstr "" 
    126169 
  • modules/branches/2.5/backup/i18n/sv_SE/LC_MESSAGES/backup.po

    r6860 r7342  
    88"Project-Id-Version: FreePBX backup\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2008-09-27 15:00+0200\n" 
    11 "PO-Revision-Date: 2008-09-27 15:10+0100\n" 
     10"POT-Creation-Date: 2008-11-23 14:54+0100\n" 
     11"PO-Revision-Date: 2008-11-23 15:09+0100\n" 
    1212"Last-Translator: Mikael Carlsson <mickecamino@gmail.com>\n" 
    1313"Language-Team: \n" 
     
    6464msgstr "SystemÃ¥terstÀllning" 
    6565 
     66#: schedule_functions.php:21 
     67#: schedule_functions.php:46 
     68msgid "Are you sure you want to delete this File Set?" 
     69msgstr "Är du sÀker pÃ¥ att du vill ta bort denna sÀkerhetskopia?" 
     70 
    6671#: schedule_functions.php:22 
    6772msgid "DELETE ALL THE DATA IN THIS SET" 
     
    8085msgstr "Ta bort denna sÀkerhetskopia" 
    8186 
     87#: schedule_functions.php:51 
     88msgid "" 
     89"Are you sure you want to restore this COMPLETE file set?\\n" 
     90"Doing so will permanently over-write all FreePBX and Asterisk files\\n" 
     91"You will lose all Your Call Detail Records and any Voicemail that was recorded between the BACKUP DATE and NOW!" 
     92msgstr "" 
     93"Är du sÀker pÃ¥ att du vill Ã¥terstÀlla denna FULLSTÄNDIGA sÀkerhetskopia?\\n" 
     94"Detta kommmer permanent skriva över alla filer för FreePBX och Asterisk\\n" 
     95"Du kommer att förlora alla samtalsloggar och röstmeddelande som har registrerats frÃ¥n det att sÀkerhetskopian togs och nu!" 
     96 
    8297#: schedule_functions.php:52 
    8398msgid "Restore Entire Backup Set" 
     
    90105terstÀll din kompletta sÀkerhetskopia och skriv över alla filer. NOTERA! Detta kommer att Ã¥terstÀlla ditt system till samma status det hade vid tiden för denna sÀkerhetskopia. ALLT KOMMER ATT SKRIVAS ÖVER!!" 
    91106 
     107#: schedule_functions.php:58 
     108msgid "" 
     109"Are you sure you want to Restore this file set?\\n" 
     110"Doing so will permanently delete any new voicemail you have in your mailbox\\n" 
     111"since this backup on" 
     112msgstr "" 
     113"Är du sÀker pÃ¥ att du vill Ã¥terstÀlla denna sÀkerhetskopia?\\n" 
     114"Detta kommer att permanent ta bort alla nya röstbesked som finns i röstbrevlÃ¥dorna\\n" 
     115"sedan denna sÀkerhestkopia togs den" 
     116 
    92117#: schedule_functions.php:59 
    93118msgid "Restore VoiceMail Files" 
     
    100125terstÀll dina röstbrevlÃ¥dor frÃ¥n denna kopia. NOTERA! Detta tar bort allt innehÃ¥ll som nu finns i röstbrevlÃ¥dorna." 
    101126 
     127#: schedule_functions.php:67 
     128msgid "" 
     129"Are you sure you want to Restore this file set?\\n" 
     130"NOTE! This will OVERWRITE any voicerecordings currently on the system. It will NOT delete new files not currently in the backup set" 
     131msgstr "" 
     132"Är du sÀker pÃ¥ att du vill Ã¥terstÀlla denna sÀkerhetskopia?\\n" 
     133"OBS! Detta kommer att skriva över de röstbesked som finns i systemet. Nyare filer Àn de som finns i sÀkerhetskopian kommer INTE att skrivas över." 
     134 
    102135#: schedule_functions.php:68 
    103136msgid "Restore System Recordings Files" 
     
    110143terstÀller dina systeminspelningar inklusive filerna för AutoAttendent . NOTERA! Detta kommer att SKRIVA ÖVER alla systeminspelningar i systemet, men kommer INTE att ta bort nya filer som inte finns i denna sÀkerhetskopia." 
    111144 
     145#: schedule_functions.php:74 
     146msgid "" 
     147"Are you sure you want to Restore this File Set?\\n" 
     148"Doing so will Permanently Over-Write all FreePBX and Asterisk Files!" 
     149msgstr "" 
     150"Är du sÀker pÃ¥ att du vill Ã¥terstÀlla denna sÀkerhetskopia?\\n" 
     151"Detta kommer att skriva över alla filer för FreePBX och Asterisk!" 
     152 
    112153#: schedule_functions.php:75 
    113154msgid "Restore System Configuration" 
     
    120161terstÀller din systemkonfiguration frÃ¥n denna sÀkerhetskopia. NOTERA! Detta kommer att SKRIVA ÖVER alla förÀndringar i ditt system du gjort efter denna sÀkerhetskopia... ALLT kommer att Ã¥terstÀllas till den status systemet hade vid tiden för denna sÀkerhetskopia." 
    121162 
     163#: schedule_functions.php:79 
     164msgid "" 
     165"Are you sure you want to Restore the Operator Panel Files?\\n" 
     166"Doing so will Permanently Over-Write all Operator Panel Files!" 
     167msgstr "" 
     168"Är du sÀker pÃ¥ att du vill Ã¥terstÀlla Operatörspanelen?\\n" 
     169"Detta kommer permanent skriva över alla förÀndringar gjorda efter denna sÀkerhestkopia!" 
     170 
    122171#: schedule_functions.php:80 
    123172msgid "Restore Operator Panel" 
     
    129178msgstr "à
    130179terstÀller operatörspanelen frÃ¥n denna sÀkerhetskopia. NOTERA! Detta kommer att SKRIVA ÖVER alla förÀndringar som skett i operatörspanelen sedan sÀkerhetskopian togs... ALLT kommer att Ã¥terstÀllas till den status operatörspanelen hade vid tiden för denna sÀkerhetskopia." 
     180 
     181#: schedule_functions.php:87 
     182msgid "" 
     183"Are you sure you want to Restore the CALL DETAIL FILES?\\n" 
     184"Doing so will Permanently DELETE all CALL RECORDS!" 
     185msgstr "" 
     186"Är du sÀker pÃ¥ att du vill Ã¥terstÀlla all samtalslogg?\\n" 
     187"Detta kommer att permanent ta bort alla loggar sedan datumen för sÀkerhetskopian!" 
    131188 
    132189#: schedule_functions.php:88 
  • modules/branches/2.5/backup/schedule_functions.php

    r6317 r7342  
    1919                if (is_dir($dir)) { 
    2020                        if (($file!=".") && ($file!="..") && ($file!="")){ 
    21                                 echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to delete this File Set?','config.php?type=$type&display=$display&action=deletedataset&dir=$dir')\">"; 
     21                                echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to delete this File Set?")."','config.php?type=$type&display=$display&action=deletedataset&dir=$dir')\">"; 
    2222                                echo _("DELETE ALL THE DATA IN THIS SET"); echo "<span>"; echo _("Delete this backup set and all data associated with this backup set..");echo "</span></a><br></li>"; 
    2323                                echo "<br>"; 
     
    4444                        } 
    4545                } else if (substr($dir, -6)=="tar.gz" ){ 
    46                         echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to delete this File Set?','config.php?type=$type&display=$display&action=deletefileset&dir=$dir&file=$file')\">"; 
     46                        echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to delete this File Set?")."','config.php?type=$type&display=$display&action=deletefileset&dir=$dir&file=$file')\">"; 
    4747                        echo _("Delete File Set"); echo "<span>"; echo _("Delete this backup set."); echo "</span></a><br></li>"; 
    4848                        echo "<br>"; 
    4949                        $tar_string="tar tfz \"$dir\" | cut -d'/' -f4"; 
    5050                        exec($tar_string,$restore_files,$error); 
    51                         echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to restore this COMPLETE file set?\n Doing so will permanently over-write all FreePBX and Asterisk files\n You will lose all Your Call Detail Records and any Voicemail that was recorded between the BACKUP DATE and NOW.','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=ALL&file=$file')\">"; 
     51                        echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to restore this COMPLETE file set?\\nDoing so will permanently over-write all FreePBX and Asterisk files\\nYou will lose all Your Call Detail Records and any Voicemail that was recorded between the BACKUP DATE and NOW!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=ALL&file=$file')\">"; 
    5252                        echo _("Restore Entire Backup Set");  
    5353                        echo "<span>";  
     
    5656                        echo "<br>"; 
    5757                        if (array_search('voicemail.tar.gz',$restore_files)){ 
    58                                echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to Restore this file set?\n Doing so will permanently delete any new voicemail you have in your mailbox\n since this backup on $file?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=VoiceMail&file=$file')\">"; 
     58                               echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore this file set?\\nDoing so will permanently delete any new voicemail you have in your mailbox\\nsince this backup on")." $file!','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=VoiceMail&file=$file')\">"; 
    5959                                echo _("Restore VoiceMail Files"); 
    6060                                echo "<span>";  
     
    6565 
    6666                        if (array_search('recordings.tar.gz',$restore_files)){ 
    67                                echo "<li><a class=\"info\" href=\"config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Recordings&file=$file\">"; 
     67                               echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore this file set?\\nNOTE! This will OVERWRITE any voicerecordings currently on the system. It will NOT delete new files not currently in the backup set")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Recordings&file=$file')\">"; 
    6868                                echo _("Restore System Recordings Files");  
    6969                                echo "<span>";  
     
    7272                        } 
    7373                        if (array_search('configurations.tar.gz',$restore_files)){ 
    74                                 echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to Restore this File Set\n Doing so will Permanently Over-Write all AMP and Asterisk Files?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Configurations&file=$file')\">"; 
     74                                echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore this File Set?\\nDoing so will Permanently Over-Write all FreePBX and Asterisk Files!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Configurations&file=$file')\">"; 
    7575                                echo _("Restore System Configuration"); echo "<span>"; echo _("Restore your system configuration from this backup set.  NOTE! This will OVERWRITE any System changes you have made since this backup... ALL Itemes will be reset to what they were at the time of this backup set.."); echo "</span></a><br></li>"; 
    7676                                echo "<br>"; 
    7777                        } 
    7878                        if (array_search('fop.tar.gz',$restore_files)){ 
    79                                 echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to Restore the Operator Panel Files\n Doing so will Permanently Over-Write all Operator Panel Files?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=FOP&file=$file')\">"; 
     79                                echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore the Operator Panel Files?\\nDoing so will Permanently Over-Write all Operator Panel Files!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=FOP&file=$file')\">"; 
    8080                                echo _("Restore Operator Panel");  
    8181                                echo "<span>";  
     
    8585                        } 
    8686                        if (array_search('cdr.tar.gz',$restore_files)){ 
    87                                 echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to Restore the CALL DETAIL FILES\n Doing so will Permanently DELETE  all CALL RECORDS.?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=CDR&file=$file')\">"; 
     87                                echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore the CALL DETAIL FILES?\\nDoing so will Permanently DELETE all CALL RECORDS!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=CDR&file=$file')\">"; 
    8888                                echo _("Restore Call Detail Report");  
    8989                                echo "<span>";  
  • modules/branches/2.5/core/functions.inc.php

    r7331 r7342  
    212212                        } 
    213213 
    214                         // Move all 'disallow=all' to the top to avoid errors 
     214                        // Move all 'disallow=all' and 'deny' to the top to avoid errors 
    215215                        // 
    216216                        $results2 = array(); 
     
    218218                                $options = explode("&", $element['data']); 
    219219                                foreach ($options as $option) { 
    220                                         if ($element['keyword'] == 'disallow' && $option == 'all') { 
     220                                        if (($element['keyword'] == 'disallow' && $option == 'all') | ($element['keyword'] == 'deny')) { 
    221221                                                array_unshift($results2,array('keyword'=>$element['keyword'],'data'=>$option)); 
    222222                                        } else { 
     
    475475        //static destinations 
    476476        $extens = array(); 
    477         $category = 'Terminate Call'
     477        $category = _("Terminate Call")
    478478        $extens[] = array('destination' => 'app-blackhole,hangup,1', 'description' => _("Hangup"), 'category' => $category); 
    479479        $extens[] = array('destination' => 'app-blackhole,congestion,1', 'description' => _("Congestion"), 'category' => $category); 
     
    23812381                        array($account,'callgroup',(isset($_REQUEST['callgroup']))?$_REQUEST['callgroup']:''), 
    23822382                        array($account,'pickupgroup',(isset($_REQUEST['pickupgroup']))?$_REQUEST['pickupgroup']:''), 
     2383                        array($account,'deny',(isset($_REQUEST['deny']))?$_REQUEST['deny']:''), 
     2384                        array($account,'permit',(isset($_REQUEST['permit']))?$_REQUEST['permit']:''),                    
    23832385                        array($account,'disallow',(isset($_REQUEST['disallow']))?$_REQUEST['disallow']:''), 
    23842386                        array($account,'allow',(isset($_REQUEST['allow']))?$_REQUEST['allow']:'') 
     
    24572459                        array($account,'port',($_REQUEST['port'])?$_REQUEST['port']:'4569'), 
    24582460                        array($account,'qualify',($_REQUEST['qualify'])?$_REQUEST['qualify']:'yes'), 
     2461                        array($account,'deny',(isset($_REQUEST['deny']))?$_REQUEST['deny']:''), 
     2462                        array($account,'permit',(isset($_REQUEST['permit']))?$_REQUEST['permit']:''),                    
    24592463                        array($account,'disallow',($_REQUEST['disallow'])?$_REQUEST['disallow']:''), 
    24602464                        array($account,'allow',($_REQUEST['allow'])?$_REQUEST['allow']:''), 
     
    30433047        } 
    30443048        if (trim($did) == '') { 
    3045                 echo "<script>javascript:alert('"._('Invalid DID, must be a non-blank DID')."')</script>"; 
     3049                echo "<script>javascript:alert('"._("Invalid DID, must be a non-blank DID")."')</script>"; 
    30463050                return false; 
    30473051        } 
     
    44064410                                        $device_icon = ($device_item['devicetype'] == 'fixed') ? 'images/telephone_key.png' : 'images/telephone_edit.png'; 
    44074411                                        $device_label  = '&nbsp;'; 
    4408                                         $device_label .=  _('Edit:'); 
     4412                                        $device_label .=  _("Edit:"); 
    44094413                                        $device_label .= '&nbsp;'.$device_item['id'].'&nbsp;'.$device_item['description']; 
    44104414 
     
    45874591                $tmparr['accountcode'] = array('value' => '', 'level' => 1); 
    45884592                $tmparr['mailbox'] = array('value' => '', 'level' => 1); 
     4593                $tmparr['deny'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 
     4594                $tmparr['permit'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 
    45894595                $currentcomponent->addgeneralarrayitem('devtechs', 'iax2', $tmparr); 
    45904596                unset($tmparr); 
     
    46084614                $tmparr['accountcode'] = array('value' => '', 'level' => 1); 
    46094615                $tmparr['mailbox'] = array('value' => '', 'level' => 1); 
     4616                $tmparr['deny'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 
     4617                $tmparr['permit'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 
    46104618                $currentcomponent->addgeneralarrayitem('devtechs', 'sip', $tmparr); 
    46114619                unset($tmparr); 
     
    46954703                                if ($deviceInfo['device_user'] != 'none') { 
    46964704                                        $editURL = $_SERVER['PHP_SELF'].'?type=setup&display=users&skip=0&extdisplay='.$deviceInfo['user']; 
    4697                                         $tlabel =  $deviceInfo['devicetype'] == 'adhoc' ? sprintf(_('Edit Default User: %s'),$deviceInfo['user']) : sprintf(_('Edit Fixed User: %s'),$deviceInfo['user']); 
     4705                                        $tlabel =  $deviceInfo['devicetype'] == 'adhoc' ? sprintf(_("Edit Default User: %s"),$deviceInfo['user']) : sprintf(_("Edit Fixed User: %s"),$deviceInfo['user']); 
    46984706                                        $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/user_edit.png"/>&nbsp;'.$tlabel.'</span>'; 
    46994707                                        $currentcomponent->addguielem('_top', new gui_link('edit_user', $label, $editURL, true, false), 0); 
  • modules/branches/2.5/core/page.general.php

    r7238 r7342  
    137137        </td><td align="right"> 
    138138        <select name="RECORDING_STATE" tabindex="<?php echo ++$tabindex;?>"> 
    139                 <option value="ENABLED"  <?php  echo ($RECORDING_STATE == 'ENABLED' ? 'SELECTED' : '')?>><?php echo _("Enabled")?> 
    140                 <option value="DISABLED"   <?php  echo ($RECORDING_STATE == 'DISABLED'  ? 'SELECTED' : '')?>><?php echo _("Disabled")?> 
     139                <option value="DISABLED"  <?php  echo ($RECORDING_STATE == 'DISABLED' ? 'SELECTED' : '')?>><?php echo _("Enabled")?> 
     140                <option value="ENABLED"   <?php  echo ($RECORDING_STATE == 'ENABLED'  ? 'SELECTED' : '')?>><?php echo _("Disabled")?> 
    141141        </select> 
    142142        </td></tr> 
  • modules/branches/2.5/dashboard/page.index.php

    r7294 r7342  
    202202        $out .= "<h4>"._("Disks")."</h4>"; 
    203203        foreach ($sysinfo->filesystems() as $fs) { 
    204                 $out .= draw_graph($fs["mount"], "GB", number_format($fs["used"]/1024/1024, 2), number_format($fs["size"]/1024/1024,2), strpos( $fs["options"],"ro" )!==false ? array(0=>"graphok"):null); 
     204                $out .= draw_graph($fs["mount"], "GB", number_format($fs["used"]/1024/1024, 2,".",""), number_format($fs["size"]/1024/1024,2,".",""), strpos( $fs["options"],"ro" )!==false ? array(0=>"graphok"):null); 
    205205        } 
    206206         
  • modules/branches/2.5/ivr/page.ivr.php

    r6945 r7342  
    286286 
    287287                <tr><td colspan=2><hr /></td></tr> 
    288                 <tr><td colspan=2>       
     288                <tr><td colspan=2> 
     289 
    289290                        <input name="increase" type="submit" value="<?php echo _("Increase Options")?>"> 
    290291                        &nbsp; 
     
    320321                echo "<input type='hidden' name='nbroptions' value=$nbroptions />\n"; 
    321322        }  
     323 
     324        global $module_hook; 
     325        echo $module_hook->hookHtml; 
    322326?> 
    323327        <input name="increase" type="submit" value="<?php echo _("Increase Options")?>"> 
  • modules/branches/2.5/music/page.music.php

    r7272 r7342  
    157157        $pattern = ''; 
    158158        $handle=opendir($path_to_dir) ; 
    159         $extensions = array('mp3','wav'); // list of extensions to match 
     159        $extensions = array('mp3','MP3','wav','WAV'); // list of extensions to match 
    160160         
    161161        //generate the pattern to look for. 
     
    205205 
    206206                        // If we are dealing with an MP3, we need to decode it to a wav file 
    207                         if (strpos($origmohfile,'.mp3') !== false)  {  
     207                        if (strpos($origmohfile,'.mp3') | strpos($origmohfile,'.MP3') !== false)  {  
    208208                                $mpg123cmd = "mpg123 -w \"".substr($origmohfile,0,strrpos($origmohfile,".")).".wav\" \"".$origmohfile."\" 2>&1 "; 
    209209                                exec($mpg123cmd, $output, $returncode); 
     
    211211                        $newmohfile = $path_to_dir."/wav_".$newname.".wav"; 
    212212                        //asdf 
    213                         $soxcmd = "sox \"".substr($origmohfile,0,strrpos($origmohfile,".")).".wav\""; 
     213                        $soxcmd = "sox \"".$origmohfile."\""; 
    214214                        $soxcmd .= " -r 8000 -c 1 \"".$newmohfile."\""; 
    215215                        if($volume){ 
     
    260260                // so we have two "original" files to delete 
    261261                // 
    262                 if (strpos($origmohfile,'.mp3') !== false)  { 
     262                if (strpos($origmohfile,'.mp3') | strpos($origmohfile,'.MP3') !== false)  { 
    263263                        $rmcmd="rm -f \"". substr($origmohfile,0,strrpos($origmohfile,".")).".wav\""; 
    264264                        exec($rmcmd); 
  • modules/branches/2.5/paging/functions.inc.php

    r6527 r7342  
    286286                        $ext->add($extpaging, "_PAGE.", 'AVAIL', new ext_chanisavail('${DB(DEVICE/${EXTEN:4}/dial)}', 'js')); 
    287287                        $ext->add($extpaging, "_PAGE.", 'SKIPCHECK', new ext_noop('Seems to be available (state = ${AVAILSTATUS}')); 
     288                        $ext->add($extpaging, "_PAGE.", '', new ext_gotoif('$["${DB(DND/${DB(DEVICE/${EXTEN:4}/user)})}" = "YES"]', 'skipself'));                        
    288289                                 
    289290                        $ext->add($extpaging, "_PAGE.", '', new ext_macro('autoanswer','${EXTEN:4}'));