similar to: What happens to global and channel variables?

Displaying 20 results from an estimated 50000 matches similar to: "What happens to global and channel variables?"

2023 Jan 18
1
Global variables in global variables
Hi. I have a very old dialplan (ie: a dialplan for a very old version of Asterisk) which I've just transferred to Asterisk 16.28.0 The [globals] section of that dialplan includes: Kphones=SIP/KC470IP&SIP/KSnom870 Sphones=SIP/SYealinkT38G&SIP/SGC610IP Allphones=${Kphones}&${Sphones} In the old system, this results in ${Allphones} containing:
2023 Jan 08
1
Global variables in global variables
Hi. I have a very old dialplan (ie: a dialplan for a very old version of Asterisk) which I've just transferred to Asterisk 16.28.0 The [globals] section of that dialplan includes: Kphones=SIP/KC470IP&SIP/KSnom870 Sphones=SIP/SYealinkT38G&SIP/SGC610IP Allphones=${Kphones}&${Sphones} In the old system, this results in ${Allphones} containing:
2023 Jan 25
1
Global variables in global variables
Le 25/01/2023 à 17:56, Antony Stone a écrit : > On Wednesday 25 January 2023 at 16:46:14, Daniel wrote: > > On Sunday 01 January 2023 at 17:30:03, Antony Stone wrote: > >>> The [globals] section of that dialplan includes: >>> >>> Kphones=SIP/KC470IP&SIP/KSnom870 >>> Sphones=SIP/SYealinkT38G&SIP/SGC610IP >>>
2006 Mar 23
9
Tearing my hair out with Queues
Egads. Getting queues to work is like pulling teeth. extensions.conf: exten => q_main,1,Queue(oneeighty_main||||1) exten => 80014055,1,Dial(SIP/80014018,15,tr) exten => 80014057,1,Dial(SIP/80014018,15,tr) exten => 80014052,1,Dial(SIP/80014018,15,tr) queues.conf: [oneeighty_main] musiconhold = default joinempty = strict leavewhenempty = strict strategy = rrmemory retry = 0 member
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 (
2023 Jul 02
1
Get channel variables via ARI/AMI
>> There are SOME protocol level things accessible using CHANNEL[1] but that's it. >> [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_CHANNEL I am trying to use the CHANNEL function listed above from the AMI. Since it is not an AMI “action”, but rather a dialplan “function”, I’m trying to figure out how to call this from the AMI. Using a telnet session
2023 Jul 02
1
Get channel variables via ARI/AMI
On Sun, Jul 2, 2023 at 4:18 PM TTT <lists at telium.io> wrote: > >> There are SOME protocol level things accessible using CHANNEL[1] but > that's it. > > >> [1] > https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_CHANNEL > > > > > > I am trying to use the CHANNEL function listed above from the AMI. Since > it is not an AMI
2009 Apr 29
0
what happens if a function removes an external (global) variable ?
My program consists of a number of functions and a main script. It loops through many time series analyzing one at a time. I have declared a number of arrays and scalar variables in the main script namespace (using C++ terminology) because those data structures ar shared by many functions. let say "XX" is he name of a global array. I wonder what happens in the following cases: 1. a
2013 May 07
1
Get Channel Variables in AMI Event NewExten
Hi, I'm stucked in situation, and look for a work around if possible in Asterisk. I have a dialplan, [default] exten => 111222,n,Set(fu_callerid=141688xyxzz) exten => _X.,n,NoOp(Callerid ${fu_callerid}) exten => _X.,n,wait(2) exten => _X.,n,Answer() ? When, ?Answer Application is called AMI Event is triggered like this.. ? ? ? ? ? 'Event' => 'Newexten', ? ? ? ?
2023 Jul 02
1
Get channel variables via ARI/AMI
On Sun, Jul 2, 2023 at 4:39 PM TTT <lists at telium.io> wrote: > >> You use the AMI action Getvar[1] which allows channel variables and > dialplan functions. > > >> [1] > https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+ManagerAction_Getvar > > > > > I actually tried that, and although I get “success” I never get useful > data. For
2006 Apr 19
1
Sip channel variables
Hi, I am making a Dialplan in which I have to record some outgoing calls from some users and not from the others. I made to outgoing calls Macros, when that records calls (using Monitor()), and another that doesn't: [macro-outgoinglocal] and [macro-outgoinglocalrecord] Is it possible to have a user defined variable in sip.conf, so that before calling a Macro I can check the value of this
2005 Jun 24
2
Set global variables without extension..
Is it at all possible to set a Global Variable freely whenever a context gets used without having to enter an extension priority to use SetGlobalVar? This is really limiting the dialplan for me. Heres an example of what I would like to be able to do. [globals] AREACODE= [local] exten=_NXXXXXX,1,Dial(SIP/${AREACODE}${EXTEN}/blah) [anyoldcontext1] AREACODE=313 include=local [anyoldcontext2]
2006 May 31
1
Global variables - collision?
If I edit the value of a global variable in my dialplan, could there be a risk of collision between calls? More in details: could a global var be used to build a counter that will be incremented by every call that passes. I think when 2 calls come in almost sumiltaneously, they could both be incrementing and saving the same value... which is bad! Anybody knows how asterisk handles this? K
2023 Jan 26
1
Global variables in global variables
On Wednesday 25 January 2023 at 19:17:04, Daniel wrote: > Asterisk 20.1.0 > > [globals] > Sphones=SIP/SYealinkT38G&SIP/SGC610IP > Kphones=SIP/KC470IP&SIP/KSnom870 > Allphones=${Sphones}&${Kphones} > > -s*CLI> dialplan show globals > Allphones=SIP/KC470IP&SIP/KSnom870&SIP/SYealinkT38G&SIP/SGC610IP >
2023 Jul 02
1
Get channel variables via ARI/AMI
>> You use the AMI action Getvar[1] which allows channel variables and dialplan functions. >> [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+ManagerAction_Getvar I actually tried that, and although I get “success” I never get useful data. For example: action: Getvar actionid: act1 channel: PJSIP/Twilio-NA-W-2-In-00000025 Variable: channel(pjsip,call-id)
2009 May 17
1
SHARED() variables and <ZOMBIE> channel
Hi, I am using SHARED() function to push destination channel info (i.e. audio codec) into "source" channel, in order to record into a customer CDR field. My dialplan looks like: [default] exten => _X.,1,Set(_X-SRC_CHANNEL=${CHANNEL}) exten => _X.,n,Dial(SIP/user at domain.net,30,M(getCalledInfo)) exten => h,1,Set(CDR(DST_CODEC)=${SHARED(X-DST-CODEC,${CHANNEL})})
2023 Jun 26
1
Get channel variables via ARI/AMI
I am connecting to the ARI with subscribe all, so I can see channels being created. I now want to extract a variety of header variables (at the moment the from and to tag). I tried to read them from the ARI but Asterisk refuses since the channel is not in a stasis app. Is there a way to read these from either the ARI or AMI ? I'm trying not to modify the dialplan. Thanks Brian
2007 Jul 28
3
global variables and updates
Sorry if this appears twice - I originally sent it nearly 18 hours ago and never saw it .. I have a need to have a unique integer number that can be used by a dynamic meetme room (I am wanting to redirect a call into a meeting room, and need a unique number to make sure I don't put two people together !) I was going to use a global variable ${NEXTMEETME}, and add one every time I
2023 Jun 26
2
Get channel variables via ARI/AMI
On Mon, Jun 26, 2023 at 10:57 AM TTT <lists at telium.io> wrote: > I am connecting to the ARI with subscribe all, so I can see channels being > created. I now want to extract a variety of header variables (at the > moment the from and to tag). I tried to read them from the ARI but > Asterisk refuses since the channel is not in a stasis app. > > > > Is there a way
2007 Apr 17
2
Querying channel variables via the Manager API
Hello list, we are developing a new application that uses the Manager API in order to find a set of channels where variables are set in a predefined way. To do this, we currently send a Status command to obtain all available channels and then query them all, one by one, fot the status of a certain dialplan variable. As you can imagine, this gets rapidly pretty tedious as the number of