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 to what you > want to

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 do with more clarificatio

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 anyone

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 figured it out. > > Now, this

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 ideal

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 i