› VitalPBX Community Support › General Discussion › After Update to new version 2.4.1-3 voicemail plays busy greeting when the phone is not in use › Reply To: RE: After Update to new version 2.4.1-3 voicemail plays busy greeting when the phone is not in use
-
- April 16, 2020 at 8:16 pm
Posted by: @jrosettoWill this get overwritten when applying changes or upgading to a new version? If so, is there a way to override it permanently?
Make a new file called:
extensions__19-baseplan_change.confand put all of this in:
[sub-leave-vm]
exten => s,1,NoOp(Leave Voicemail)
same => n,Set(VM_OPTIONS=${IF($["${CALL_STATUS}"="BUSY"]?b:u)})
same => n,Set(VM_OPTIONS=${IF($["${DB(${TENANT}/extensions/${CALL_DESTINATION}/skip_vm_instructions)}"="yes"]?${VM_OPTIONS}s:${VM_OPTIONS})})
same => n,GotoIf($["${DB(${TENANT}/extensions/${CALL_DESTINATION}/vmenabled)}" = "yes"]?:vm_disabled)
same => n,Set(MAILBOX=${DB(${TENANT}/extensions/${CALL_DESTINATION}/voicemail)})
same => n,Answer()
same => n,Gosub(sub-vm,s,1(${MAILBOX},${VM_OPTIONS}))
same => n(vm_disabled),Return()This way your code will come first and you don’t have to edit anything inside original extensions__20-baseplan.conf
0