############################################################  
##                                                        ##
## AVAYA 16XX IP TELEPHONE SOFTWARE UPGRADE CONFIGURATION ##
## 			For IP Office	                  ##
##                 *** October 13, 2008 ***               ##
##                                                        ##
##                                                        ##
##                                                        ##
############################################################
##                                                        ##
##                                                        ##
##                                                        ##
############################################################
##                                                        ##
## PHONE APPLICATION VERSION NUMBERS                      ##
##    1616 - Release 1.0.52.6                             ##
##    1608 - Release 1.0.52.6                             ##
##    1603 - Release 1.0.52.6                             ##
##                                                        ##
############################################################
#
#
############################################################
##            Check backup application version            ##           
############################################################

IF $MODEL4 SEQ 1616 goto BACKUPAPP1616
IF $MODEL4 SEQ 1608 goto BACKUPAPP1608
IF $MODEL4 SEQ 1603 goto BACKUPAPP1603
goto END

# BACKUPAPP1616
IF $BOOTNAME SEQ hb1616ua1_020.bin goto PHONEAPP1616
SET APPNAME hb1616ua1_020.bin
goto GETSET

# BACKUPAPP1608
IF $BOOTNAME SEQ hb1608ua1_020.bin goto PHONEAPP1608
SET APPNAME hb1608ua1_020.bin
goto GETSET

# BACKUPAPP1603
IF $BOOTNAME SEQ hb1603ua1_020.bin goto PHONEAPP1603
SET APPNAME hb1603ua1_020.bin
goto GETSET


############################################################
##            Check phone application version             ##           
############################################################

# PHONEAPP1616
SET APPNAME ha1616b10526vs.bin
SET BMAPPNAME GBM32_B_1_0_8.hex
goto GETSET

# PHONEAPP1608
SET APPNAME ha1608b10526vs.bin
goto GETSET

# PHONEAPP1603
SET APPNAME ha1603b10526vs.bin
goto GETSET


############################################################
##           Get additional configuration files           ##           
############################################################

# GETSET
GET 46xxsettings.txt
# END

