Reply To: RE: After Update to new version 2.4.1-3 voicemail plays busy greeting when the phone is not in use

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

    mo10
    Moderator
    none
    Up
    0
    Down
    Posted by: @jrosetto

    @ing-joserivera26

    Will 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.conf

    and 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