It seems from the history that you are having pus discharge from ear with crusting.
These symptoms indicate middle ear infection
in the form of otitis media
. Since the discharge is yellowish and foul smelling indicating it is suppurative infection.
Hence this requires immediate treatment with systemic and local antibiotics to prevent complications like perforation of ear drum and intra cranial extension of infection.