Near-barrier heavy-ion fusion: Role of boundary conditions in coupling of channels