Hi.
I know i can set variables using Set(MYVAR=VALUE) thanks fine.
My problem is this.
[incoming-pstn]
…
…
…
exten=>s,n,Set(Variable1=${CALLERID(Num)})
…
…
…
exten=>s,n,ChannelRedirect(${BRIDGEPEER},from-internal,201,1)
[from-internal]
…
…
…
exten=>_XXX,n,NoOp(Incoming call from ${Variable1})
At this point, when the call is ChannelRedirected to from-internal,201,1
the variable i previously set, now is EMPTY. Why?
I try adding _ in front, like this Set(_Variable1=${CALLERID(Num)})
I try adding __ in front, like this Set(__Variable1=${CALLERID(Num)})
But it keep empty. How can i set a Variable then if i run ChannelRedirect the variable keep it value?
Thanks!