Displaying 2 results from an estimated 2 matches for "__my_caller".
2016 Nov 27
2
Non-global variable that follows channel?
...in your code, so for anyone who
wants to copy/paste, here's Richard's code WITH the curly braces (
Set(SHARED(sharedVar,MY_CALLER) should be
Set(SHARED(sharedVar,${MY_CALLER}) )
[svtest1]
exten => s,1,Answer()
same => n,Verbose(1,Answered channel:${CHANNEL})
same => n,Set(__MY_CALLER=${CHANNEL(name)})
same => n,Dial(Local/s at svtest2,,g)
same => n,Verbose(1,***In channel:${CHANNEL} sharedVar:${SHARED(sharedVar)})
same => n,Hangup()
[svtest2]
exten => s,1,NoOp()
same => n,Set(SHARED(sharedVar,${MY_CALLER})="I have been set in
svtest2 by ${CH...
2016 Nov 27
2
Non-global variable that follows channel?
Thanks, Max.
Yes, of course, you are right, and I am an idiot because I was tired
and putting underscores before the variable name when I read it back!
Then I forgot to post the followup email to say I had figured it out.
Now, this SHARED was not something I was aware of, but looked like an
ideal solution to passing variables BACK from to the parent channel.
However, it does not seem to be very