How to Monitor the Business Hours Mode State

This passage is to show you how to monitor the Business Hours mode on the IP BLF key with MyBPX. This work is based on version X.19.0.48 and X.20.0.21.

With the following customization, you can achieve:

1. Monitor the state of the Business Hours mode

2. Toggle the Business Hours mode by the BLF button

 

Customization Procedure in MyPBX

Download the putty: http://www.yeastar.com/download/tools/putty.exe

1.Enable the SSH service in Yeastar device (LAN setting> SSH enabled)

2.Enter Yeastar device’s server IP and SSH port(default is 8022)


3.Then configure the putty with enough lines:

4.Login the SSH with username/password: root/ys123456


5.Then input the commands:
cd /persistent/var/lib/asterisk/db/custom-cfg
6.Executive the command
vi extensions_custom.conf
7. copy the following content in the extensions_custom.conf

[en-force-to-outside]
exten = *81,1,Answer
exten = *81,n,Set(DB(OfficeHours/ForceToOutside)=1)
exten = *81,n,Set(DEVICE_STATE(Custom:AutoMode)=NOT_INUSE)
exten = *81,n,Set(DEVICE_STATE(Custom:NonBusinessHours)=NOT_INUSE)
exten = *81,n,Set(DEVICE_STATE(Custom:BusinessHours)=INUSE)
exten = *81,n,Wait(1)
exten = *81,n,Playback(beep)
exten = *81,n,Wait(1)
exten = *81,n,Hangup()
 
[dis-force-to-outside]
exten = *081,1,Answer
exten = *081,n,Set(DB(OfficeHours/ForceToOutside)=0)
exten = *081,n,Set(DEVICE_STATE(Custom:NonBusinessHours)=NOT_INUSE)
exten = *081,n,Set(DEVICE_STATE(Custom:BusinessHours)=NOT_INUSE)
exten = *081,n,Set(DEVICE_STATE(Custom:AutoMode)=INUSE)
exten = *081,n,Wait(1)
exten = *081,n,Playback(beep)
exten = *081,n,Wait(1)
exten = *081,n,Hangup()
 
[en-force-to-inside]
exten = *82,1,Answer
exten = *82,n,Set(DB(OfficeHours/ForceToOutside)=2)
exten = *82,n,Set(DEVICE_STATE(Custom:AutoMode)=NOT_INUSE)
exten = *82,n,Set(DEVICE_STATE(Custom:BusinessHours)=NOT_INUSE)
exten = *82,n,Set(DEVICE_STATE(Custom:NonBusinessHours)=INUSE)
exten = *82,n,Wait(1)
exten = *82,n,Playback(beep)
exten = *82,n,Wait(1)
exten = *82,n,Hangup()
 
[hintcontext]
include = park-hints
include = trunks-hintcontext
include = extensions-hintcontext
include = bh-hintcontext
 
[bh-hintcontext]
exten = *81,hint,Custom:BusinessHours
exten = *82,hint,Custom:NonBusinessHours
exten = *081,hint,Custom:AutoMode


8.Then press “esc”, then use command”:wq”and press” enter “to save the file
9. Reboot MyPBX to make the customization take effect.

 

Configuration on IP phones

Here we take Yealink phone as examples, you can set up as the following:

After you have configured, when the extension presses the BLF key *81, the BLF key will turn red, the BLF key for *82 and *081 will stay green. 

If you press BLF key *82, the BLF key for *81 and *081 will stay green. 

If you press BLF key *081, the BLF key for *81 and *82 will stay green.

 

-------------------------------------------

In addition, when the MyPBX is in Business Hours "AutoMode", you need to montor the state of the business hours time. You can upgrade the MyPBX to  X.20.0.21. Which allows you to monitor the time state in "AutoMode".

Firstly you need to have time table label, and then configure another BLF key with the label name on the IP phone like the figure below:

Therefore, When you are in Office-Hour time, the BLF key will turn red. If not, it will turn green. 

Have more questions? Submit a request

2 Comments

  • 0
    Avatar

    Will this also work on previous model MyPBX's?

    SOHO running Ver 7.18.0.22, or

    STD/Pro running Ver 2.18.0.22

  • 0
    Avatar

    Just to confirm,

    SOHO = V3 model

    STD/Pro = V4 models

Please sign in to leave a comment.