3 posts / 0 new
Last post
AdrianSimpson
AdrianSimpson's picture
Joined: 2019/03/13
Points: 20

Hi All,

We are installing a PBX for a customer that used to have shorcut/feature button on thier phone simply to put the system in to night mode / day mode.

We would like to replicate this - I know the feature code for the day / night mode is an IVR system which you have to listen to then press X etc... - I just wondered if there was more of a direct route / feature code to press and simply put into either mode.

Would i need to produce my own script?

Any response appreciated.

Thanks
Adrian

volodya
volodya's picture
Joined: 2017/01/05
Points: 190

Hello Adrian,

Please check this forum thread if you want to have use single button to switch between modes: https://www.thirdlane.com/forum/custom-hint-presencestate-for-blf.

In case if you need to have dedicated button for each mode, you can create simple scripts like the one bellow:
exten => s,1,Answer
exten => s,n,Set(result=${TL_SET_OFFICEMODE(${tenant},night)})
exten => s,n,Hangup

AdrianSimpson
AdrianSimpson's picture
Joined: 2019/03/13
Points: 20

HI Volodya,

Thanks for this, I have made 2 scripts, and added a UK voice file instead of the tl/daymode

exten => s,1,Answer
exten => s,n,Set(result=${TL_SET_OFFICEMODE(${tenant},day)})
exten => s,n,Playback(tl/day-mode)
exten => s,n,Hangup

Worked perfectly, thanks again