the following LUA script can be used to over write a diversion header from CUCM.

M={}

  function M.outbound_INVITE(msg)

    msg:applyNumberMask("Diversion", "4078222000")

  end

return M

this same script can also be used for other SIP headers as well such as "P-Asserted-Identity"