as man can't stop talking dogs can't stop barking but if its barking irritating you .you can give some food to eat so that he can be silent for some time.
As one member says it is the way and only means a do emotes and we have to read their mood and react accordingly! I know one case where the unusual barking of a street dog which initially irritated the sleeping people of a locality was actually its notice to the resident of a entry of a few dacoits in the area!And its bark prevented it!!!