Displaying 3 results from an estimated 3 matches for "svtest2".
Did you mean:
svtest
2016 Nov 27
2
Non-global variable that follows channel?
...s 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 reliable.
Code:
[svtest1]
exten => s,1,Answer()
same => n,Verbose(1,Answered channel:${CHANNEL})
same => n,Dial(Local/s at svtest2,,g)
same => n,Verbose(1,***In channel:${CHANNEL} sharedVar:
${SHARED(sharedVar,Local/s at svtest2)} )
same => n,Hangup()
[svtest2]
exten => s,1,NoOp()
same => n,Set(SHARED(sharedVar,Local/s at svtest2)="I have been set
in svtest2")
same => n,Verbose(1,***In...
2016 Nov 23
2
Non-global variable that follows channel?
Related to http://lists.digium.com/pipermail/asterisk-users/2016-November/290384.html,
at the moment I'm passing one variable via DIAL.
Now I'd like to pass a whole bunch, and my idea was to rather than
having a great string of
b(synctest3b^setVar^1(something)^2(more things)^3(etc))
and then get them with ARG1..ARGn etc, I could bundle the whole lot
into a HASH and then unbundle them at
2016 Nov 27
2
Non-global variable that follows channel?
...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 ${CHANNEL(name)}")
same => n,Verbose(1,***In channe...