View Issue Details

IDProjectCategoryView StatusLast Update
0000164VitalPBX[All Projects] Feature Requestpublic2020-04-10 11:42
ReporterpitzkeyAssigned Tomrivera 
Status assignedResolutionopen 
PlatformVitalPBXOSCentosOS Version7
Product Version 
Target VersionFixed in Version 
Summary0000164: Time or Seasonal Based Music on Hold
DescriptionHello guys,

We came across several use cases where users would like seasonal (or time) based MOH. We can do that manually changing it upon a season change, but it would be great if we can automate it.

I was thinking of the following to allow setting up a seasonal based MOH:

- Create 4 different MOH categories. Spring, Summer, Fall & Winter.
- Build some type MOH class group creator, that allows you to tie a time group with a MOH category or multiple time groups with multiple categories. Let's call this new group "Seasonal MOH"
- Every time you place or receive a call, it calls that new context, sets a variable MOHSeason and returns. [1]
- Then in the GUI every place you can now select from a dropdown which MOH category to use, it should also give the option to select that "MOH Group", our case: "Seasonal MOH" [2]

exten => s,1,Noop(Setting MOH Class based on season)
exten => s,n,Set(_MOHSeason=${IFTIME(*|*|20-20|mar-jun?spring:default)})
exten => s,n,Set(_MOHSeason=${IFTIME(*|*|21-21|jun-sep?summer)})
exten => s,n,Set(_MOHSeason=${IFTIME(*|*|22-21|sep-dec?fall)})
exten => s,n,Set(_MOHSeason=${IFTIME(*|*|22-19|dec-mar?winter)})
exten => s,n,Return()

exten => s,n,Set(_MOH_CLASS=${MOHSeason})

I did not test it, but I would be more than happy to test and provide feedback.

Thank you
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-04-10 11:42 pitzkey New Issue
2020-04-10 11:42 pitzkey Status new => assigned
2020-04-10 11:42 pitzkey Assigned To => mrivera