Verapamil
Verapamil is, however, a substrate for the efflux transporter P-glycoprotein (P-gp) in the blood–brain barrier.
Cluster headache is associated with abnormal diurnal rhythms of hormones such as cortisol, testosterone, growth hormone, and endorphins.
Verapamil blocked P- and at higher concentrations possibly N- and Q-type Ca2+ channels. The human T-type calcium channel is also blocked by verapamil.
HERG potassium channel blocker. It is possible that verapamil also acts on HERG potassium channels in the CNS.
In conclusion, the possible modes of action of verapamil in cluster headache are legion but most likely due to an effect on either the low (T-type) or the high voltage-activated Ca2+ channels (L-, N-, P, Q-type). Although generally described as an L-type calcium blocker, verapamil has possible effects on a range of other Ca2+ channels present at the most likely pathogenic center, the hypothalamus. At this point, we are thus not able to point to a specific action underlying the efficacy of verapamil in cluster headache.
Magnesium
A direct impact of magnesium on the function of the efflux transport protein P-glycoprotein at the level of the blood-brain barrier has also been demonstrated:
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

Magnesium blocks L-type calcium channel and N-type channel:
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

Magnesium blocks L and T-type Ca2+ channels:
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

Mg2+ exerts a direct action on HERG potassium channels:
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

Magnesium is a critical element in 325+ biochemical reactions in the human body.
Recent research, in France and several other European countries, gives a clue concerning the role of magnesium plays in the transmission of hormones (such as insulin, thyroid, estrogen, testosterone, DHEA, etc.), neurotransmitters (such as dopamine, catecholamines, serotonin, GABA, etc.), and minerals and mineral electrolytes.
This research concludes that it is magnesium status that controls cell membrane potential and through this means controls uptake and release of many hormones, nutrients and neurotransmitters. It is magnesium that controls the fate of potassium and calcium in the body. If magnesium is insufficient potassium and calcium will be lost in the urine and calcium will be deposited in the soft tissues (kidneys, arteries, joints, brain, etc.).
Magnesium protects the cell from aluminum, mercury, lead, cadmium, beryllium and nickel. Evidence is mounting that low levels of magnesium contribute to the heavy metal deposition in the brain that precedes Parkinson's, multiple sclerosis and Alzheimer's. It is probable that low total body magnesium contributes to heavy metal toxicity in children and is a participant in the etiology of learning disorders.
Is Verapamil a mimic of Magnesium?
As Calcium channel blocker, YES