A method of serving media by a media server at a layer2 access network to a user equipment, UE, the UE being part of a hot billing class of users, the method comprising: if an online charging gateway flag for the UE indicates that real-time charging is not required for the UE, the media server serves the media without real-time charging; wherein serving the media without real-time charging comprises: periodically generating, by the media server at the layer2 access network, a delivery log comprising traffic use for an on-going session with the UE for every first time interval; transmitting, by the media server, the delivery log periodically every second time interval to a media data function in a content delivery network; receiving, at the media data function, the delivery log; transmitting, by the media data function, a user traffic information from the delivery log to a billing center; receiving, by the media data function, account status information from the billing center, wherein the account status information is received if the UE exceeds a user account metric; and transmitting, by the media data function, session termination information based on the account status information; receiving, by the media server, session termination information from the media data function; and terminating, by the media server, the on-going session with the UE. if an online charging gateway flag for the UE indicates that real-time charging is not required for the UE, the media server serves the media without real-time charging; wherein serving the media without real-time charging comprises: periodically generating, by the media server at the layer2 access network, a delivery log comprising traffic use for an on-going session with the UE for every first time interval; transmitting, by the media server, the delivery log periodically every second time interval to a media data function in a content delivery network; receiving, at the media data function, the delivery log; transmitting, by the media data function, a user traffic information from the delivery log to a billing center; receiving, by the media data function, account status information from the billing center, wherein the account status information is received if the UE exceeds a user account metric; and transmitting, by the media data function, session termination information based on the account status information; periodically generating, by the media server at the layer2 access network, a delivery log comprising traffic use for an on-going session with the UE for every first time interval; transmitting, by the media server, the delivery log periodically every second time interval to a media data function in a content delivery network; receiving, at the media data function, the delivery log; transmitting, by the media data function, a user traffic information from the delivery log to a billing center; receiving, by the media data function, account status information from the billing center, wherein the account status information is received if the UE exceeds a user account metric; and transmitting, by the media data function, session termination information based on the account status information; receiving, by the media server, session termination information from the media data function; and terminating, by the media server, the on-going session with the UE.