Accessing a variable from one context to another context in dialplan


#1

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.


#2

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


#3

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


#4

You can also declare the variable as global variable.


#5

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