Accessing a variable from one context to another context in dialplan

hello dear friends! I defined a variable in one context and I need to access that variable in another context. Can anyone help me how to access. Thanks in advance.

you can get value of variable using ${MYVAR} this format.

I did it doesn’t work . those two context don’t have any relation they both are separate.

You can also declare the variable as global variable.

Variables belong to channels, not to contexts. There should be no problem accessing across contexts providing the same channel is used.