Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Jonathan H
Thanks. I did a while ago, but I couldn't make it "fit" what I wanted to do. Maybe with my increase Asterisk knowledge now I'll take another look. Thanks! On 27 November 2016 at 18:27, Richard Mudgett wrote: > Have you looked into ARI [1]? I think it would be a closer fit

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Richard Mudgett
On Sun, Nov 27, 2016 at 11:13 AM, Jonathan H wrote: > Thanks, Richard - your code does indeed work reliably 100% of the > time, and thank you for that explanation. > > I do think the docs at > https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Function_SHARED > could

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Jonathan H
Thanks, Richard - your code does indeed work reliably 100% of the time, and thank you for that explanation. I do think the docs at https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Function_SHARED could do with more clarification. BTW, there were a couple of typos in your code, so for

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Richard Mudgett
On Sun, Nov 27, 2016 at 8:07 AM, Jonathan H wrote: > 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

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Jonathan H
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

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Max Grobecker
Hi, is channel variable inheritance working for your setup? Passing variables to other channels can normally simply be done by naming the variable with one or two prefixed undersorces to make it available to the channel that is created from that one defining the variable. But I have no idea if

[asterisk-users] Non-global variable that follows channel?

2016-11-23 Thread Jonathan H
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