Lebanese and Syrian armies say they have been communicating to ease the escalating border violence.