How can I maintain control over a Dybbuk for over an hour?

A Dybbuk has Magic Resistance (advantage on saving throws against spells and other magical effects), and can cast Dimension Door at will.

This means it can get out of a Magic Circle pretty quickly, it breaks the control from Summon Greater Demon quickly as well, or at least quick enough that you can’t cast Planar Binding on it, even if you do know its true name.

Assuming it is summoned by Summon Greater Demon, how can its spellcasting be negated for long enough to bind it, or have a chance at binding it? Can it be summoned another way and controlled for over an hour? The lower the level of casters needed, and lower numbers of them, the better.