Fix for checking delivery status - header decode was using wrong function.