Well, I don't have any empty barrels so I don't think that's it, I even put my chest at the end of my wall and the cobble barrel right next to the router. It seems to be truly random. Also, I tried setting it to barrels only but then items that don't have a barrel get stuck in the router.