My doorbell did this when next door got the same one. When someone rang their bell, ours tolled (with a somewhat naff tune ). But if ours was pressed it rang the tune we had allocated to it.
You might have to take the bit with the button down, open it and change the frequency, it worked with ours.