'0306
'---------------------------------------------------------------------------------------------
' STL, general gateway for audio
' 
' 02.00  Apr 08 2010  AD  started from Andrew RTP_STL V1.24
'                         + added new web UI
'                         + added standard BRTP
'                         + added appstatus page
'                         c chged usb failover fixed, just ON/OFF available
'                         + added keep alive "disabled", no send, no reply
'                         ! fixed no pld update without USB pen on decoder side
'                         ! fixed USB audio holes sometime
' 02.01  Jun 12 2010  AD  c chged buffer to msecs, song module C8.05 introduced
'                         c added external ADC option
' 02.02  Jul 23 2010  AD  c chged loopback as default mixer (0x4000) always
'                         + added RTP statistics
'                         + added Exstreamer 500 support
'                         + added Reflector-based reboot
' 02.03  Jul 27 2010  PK  ! fixed #61.14: long string expressions causing audio dropouts
'        Jul 30 2010  PK  ! fixed input selection on Ex500 (WEB UI)
' 02.04  Aug 10 2010  AD  + added SNMP alarm system
'                         + added SNMP Walk parameters as per BNA request spec.
'                         + added relay ON while OUT On/Off options
'                         ! fixed input states must not be displayed for device with no inputs
'                         ! fixed activation of relays in "send on level" and "send on inputX"
'                                 done immediate (no timeout)
'                         + added minor alarm for no incoming stream
' 02.05  Aug 13 2010  AD  ! fixed ON while OUT audio ON/OFF behaviour
'                         ! fixed bug #061.15
' 02.06  Sep 07 2010  AD  ! fixed bug #061.18, relay 1 set to On while OUT audio OFF,
'                                 _MSG_1.mp3 was locking app. in a loop.
' 02.07  Sep 28 2010  AD  ! fixed bug #061.20, stream 2 (com2) reused in init
' 02.08  Oct 28 2010  AD  ! fixed bug #061.01, UDP/TCP port - no check for value range
'                         c chged stream numbers changed to 8 and 9 for usb playlist / mesgs
'                         ! fixed bug #061.22, _MSG_x.MP3 feature works not properly
'                         c chged status page update method
' 02.09  May 20 2011  AD  ! fixed 061.25 fixed continuous restart on bad RTP payload 19
'                         ! fixed 061.28 status page not updated on stream back
'                         ! fixed 061.29 redundant syslogs on failover with no usb key
'                         + added 061.31 input sources updated for all devices
'                         + added 061.24 support for Annuncicom 1000
'                         + added 061.33 startup string for display
'                         + added 061.34 volume offset adjustment, WEB UI field, vu-meter
'                                 correction.
' 02.10  Jun 24 2011  AD  ! fixed bad mode offset (setup 956->856), BRTP not working.
'                         ! fixed #061.35, IE6.0 audio html select's not working properly.
'                         ! fixed invalid css color in ie6,0 for db bar.
'                         c chged hw type detection, added support for ht 32,33,36,37,38,
'                                 detection changed to don't save eeprom every time
'                                 but only on config mismatch, added also Ann 155 checks.
'                         + added #061.37, port numbers all to 3030
'                         + added #061.36 low bitrate option, 16Khz stereo PCM
' 02.11  Jul 28 2011  AD  ! fixed brtp channel > 1 not working (regression 2.10).
'                         ! fixed keep alive sent broadcast (regression 2.10).
'                         ! fixed non immediate remote input update.
'                         ! fixed web UI visual details and appstatus page input source field.
'                         ! fixed javascript error on IE6.0
' 02.12  Aug 24 2011  AD  c chged stl_config.html, html/js code minified as much as possible,
'                                 redesign of the fields in a single table, removed long list 
'                                 of dynamic tags, removed redundant data requests.
'                         c chged reduced blank/comments lines where possible, to fast-up the
'                                 main loop.
'                         c chged removed some "always false" condition checks in the main 
'                                 loop.
'                         c chged BRTP keep-alive check every 2 seconds, not at every 
'                                 loop iteration.
'                         c chged BRTP keep-alive send interval changed from 4 to 10 seconds. 
'                         c chged BRTP signature check mechanism using a longword.
'                         c chged detection method for low buffer level and 
'                                 "no incoming stream" alarm.
'                         ! fixed delayed <relay ON while remote input ON> using HQ FD and 
'                                 50 msec keep-alive period.
' 03.00  Oct 11 2011 KS   c chged Version number set to next major number in ipam101 branch 
'                                 This to show IPAM101 compatibility in package name
' 03.01  Feb 20 2012 AD   merged changes from 2.13
'                         + added "Contact sync" feature, for a delayed output activation.
'                         ! fixed UI issue, output stream column header visible in TD.
'                         ! fixed #061.40 added help/manual information.
'                         ! fixed #061.41 bad behavior of cancel button.
' 03.02  Apr 04 2012 AD   + added hw/module type check for implications.
'                         + added IPAM type info on WEB UI and updated HW type list.
'                         ! fixed #061.45 "Audio Input" section to be hidden on DEC only
'                                 devices.
'                         c chged #061.49 VLSI, 44.1Khz disabled (not supported) in FD.
'                         c chged #061.42 IPAM101/2 digital audio inputs and "External ADC".
'                                 should be hidden from the allowed UI input source options.
'                         c chged only available inputs/relays are displayed in the web UI.
'                         c chged low buffer level detection mechanism (using msecs).
'                         + added com handle safe-check for devices without serial port.
' 03.03  Jul 09 2012 AD   + added hw discovery for Annuncicom 60.
'                         c chged mail messages background unset (default) always.
'                         ! fixed syntax errors on web UI.
'                         ! fixed removed some undesired syslogs.
' 03.04  Mar 08 2013 AD   ! fixed #61.52, changed web UI as standard abcl style.
'        Jun 18 2013 AD   + added #61.59, add QoS parameter in WEB UI network settings.
'                         + added #61.58, add CBR option for MP3 encoding.
' 03.05  Jul 10 2013 AD   c chged to use song module version 10.00.
'        Jul 12 2013 AD   c chged disabled 8Khz PCM 16bit mono (see b.t. #053.90).
'                         + added configurable bitreservoir on CBR (see b.t. #061.62).
'                         + added runtime volume in dB on appstatus page for debug purposes.
' 03.06  Nov 08 2013 AD   c chged to use song module version 10.01.
'                         ! fixed encoder-only local loopback not working.
' 03.06a Jan 28 2016 SG   c added latest SG module to solve A/D Gain issue
'---------------------------------------------------------------------------------------------

