An IMS-based Middleware Solution for Energy-Efficient and Cost-Effective Mobile Multimedia Services