search for: function_shared

Displaying 3 results from an estimated 3 matches for "function_shared".

2016 Nov 27
2
Non-global variable that follows channel?
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 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() sam...
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?
...you might use the SHARED() variables which are kind of global accessible by the channel ID. > So you might call your Gosub with only the (unique) reference name of the variables you wish to pass and then call it from your Gosub. > -> https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_SHARED > > > Greetings, > Max > > > Am 23.11.2016 um 13:06 schrieb 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 wh...