Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit 46xxsettings file using conditions

Status
Not open for further replies.

kieranmc

MIS
May 18, 2004
75
GB
Hi all

I want to disable the logoff feature on some of our phones. I know can remove it in the 46xxsettings file by setting OPSTAT to 110, however I want to be selective as to which phones lose the feature. I have read the documentation and it tells me that I can add the stations to groups and then use conditions to apply settings to those groups:
IF $GROUP SEQ 10 goto GROUP10
IF $GROUP SEQ 11 goto GROUP11
# GROUP10
SET OPSTAT 110
GOTO END
# GROUP11
SET OPSTAT 111
GOTO END
# END
However, when I try this it appears to ignore the IF statement. I suspect that it is not recognising the name "$GROUP" and therefore not able to check the condition. It applies OPSTAT 111 by default.

I have added the stations to groups using both Site admin (ch stat, page 3, IP Phone Group ID) and dialpad command (MUTE 47687)

Is $GROUP the wrong name for this? Or am I doing something else wrong???
 
unsure but look at this.

################# OPTION ACCESS SETTINGS #################
##
## This setting restricts access to certain user options.
## OPSTAT is not supported on 96xx or 16cc SIP phones.
##
## When OPSTAT is set to 000, the user options
## are not accessible.
##
## When OPSTAT is set to 001, the user can only access
## the Log-Off Option.
##
## When OPSTAT is set to 010, the user can only access
## view-only options. The user cannot change any setting.
##
## When OPSTAT is set to 011, the user can only access
## view-only options and the Log-Off Option.
##
## When OPSTAT is set to 100, the user can access
## all options except the view-only options and
## the Log-Off option.
##
## When OPSTAT is set to 101, the user can access
## all options except the view-only options.
##
## When OPSTAT is set to 110, the user can access
## all the options except the Log-Off option.
##
## When OPSTAT is set to 111, the user can invoke
## any or all of the user options.
##
## SET OPSTAT 111
##

APSS (SME)
ACSS (SME)
 
Yeh, SET OPSTAT 111 is the setting to allow logoff; SET OPSTAT 110 is the setting to disable it, but this applies across the board to all stations. My problem Monty is that I want to apply it selectively and hoped to be able to do that using the IF statements and conditions. If you look down near the end of the 46xxsettings file, you can see the syntax for doing this as there is a Per Model Settings area which will apply different settings to different models, but I can't get it to work on a group basis

Thanks
 
The file is read from the top down. Make sure you write the file with that in mind. Also, did you change the phone (and you have to on each phone) to the correct group?
 
do you not just need to remove the # before group10 and group11

as the # is obviously stopping the settings file hitting this group??

APSS (SME)
ACSS (SME)
 

Monty - the double # is for a comment, but the single # is the beginning of a block called after the GOTO command. In this case I've called the blocks GROUP10 and GROUP11

David - I made one phone a member of Group 100 in page 3 of the station settings, and another phone a member of Group 101. After rebooting both phones, they both still have the log off facility. Here's the area of my 46xxsettings file relating to the Options Settings in full. It's the first and only reference to the OPSTAT setting in the file

################# OPTION ACCESS SETTINGS #################
##
## This setting restricts access to certain user options.
## OPSTAT is not supported on 96xx or 16cc SIP phones.
##
## When OPSTAT is set to 000, the user options
## are not accessible.
##
## When OPSTAT is set to 001, the user can only access
## the Log-Off Option.
##
## When OPSTAT is set to 010, the user can only access
## view-only options. The user cannot change any setting.
##
## When OPSTAT is set to 011, the user can only access
## view-only options and the Log-Off Option.
##
## When OPSTAT is set to 100, the user can access
## all options except the view-only options and
## the Log-Off option.
##
## When OPSTAT is set to 101, the user can access
## all options except the view-only options.
##
## When OPSTAT is set to 110, the user can access
## all the options except the Log-Off option.
##
## When OPSTAT is set to 111, the user can invoke
## any or all of the user options.
##
IF $Group SEQ 10 GOTO GROUP10
IF $Group SEQ 11 GOTO GROUP11
GOTO END
##
##
# GROUP10
SET OPSTAT 110
GOTO END
##
# GROUP11
SET OPSTAT 111
GOTO END
##
##
# END
##
##
 
Really Really daft question but what type of handsets are they
?

APSS (SME)
ACSS (SME)
 
4622 and 4610 Monty. They say the only daft questions are the ones that don't get asked!! :)
 
The group setting this checks is physical on the phone. Not in the station form. On a 96xx phone you would press and hold the mute button (about 2-3 sec.), then enter craft. arrow down till you see the group option. Your commend after the mute may be something else depending on the model phone.
 
Just to clarify this a bit, the 46xxsetting file is being check before the phone even knows anything about the CM.

It is checking this on the TFTP/HTTP server, the phone does not have an extension yet, and so, nothing on the station form can have any impact at this stage of the game.

The Group option is set on each physical phone, depending on how many you have, you may want to look at other options.

I would recommend this only for small groups of phones.

And I believe that the 46xx phones are mute, then 73738#.
Hope this helps.
 
Well, I've cracked it now. On the one hand I was doing the right thing, but embarrassingly I was also committing a school boy error.

The programming I put into the 46xxsettings file is correct and works. I was also assigning the phones to a group at the dialpad using MUTE 47687 (GROUP) which is correct. However, my school boy error was that each time I rebooted the phone (MUTE 73739) I was stupidly electing to Reset Values, so the phone was losing the Group setting that I had just entered. Because I also had the same group setting in the CM station settings, it was picking it up again on full reboot but as David points out it has already read the 46xxsettings file before it gets to the CM station settings. So when I checked the Group on the phone post reboot it appeared to be right and this was causing my confusion

Problem solved, lesson learned, tech embarrassed

Thanks guys ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top