search for: setvars

Displaying 20 results from an estimated 693 matches for "setvars".

Did you mean: setvar
2009 Aug 20
2
eval and evironments: call local function in a global function
Hi, in my project I want the user to be able to write hook functions that are in turn called in my main code. I'd like the user's hooks to be able to call some function that set a variable outside their running environment. The trick is that this variable is not global, but defined on runtime before calling the hooks, and I don't want to leave any trace (i.e. global variables)
2004 Nov 28
1
SetVar ALERT_INFO
Hello, I've got my dialplan configured to do a double ring when a customer service call comes in, and a normal ring when an extension is dialed directly. When a customer service call is transferred, I want to ring to revert back to normal. In the local extension macro, I have the following ; make sure ring is set to default exten => s,n,NoOp(${ALERT_INFO}) exten =>
2003 Sep 05
1
Bug in my head or bug in the code?
I am having Yet Another Regular Expression problem, but this one might not be my fault, or at least it might not be obviously my fault. :-) exten => 2212,1,SetVar(FOO=123456**) exten => 2212,2,SetVar(BAR=$[${FOO:-1:1} = *]) This script continues with a value of 0 in BAR. Similarly, none of the following changes made a difference in that result, which is expected since the * is not
2009 Jun 04
3
PHP/AGI/SetVar Issue
Is there a limitation to the number of variables you can set from a PHP agi script? I have a simple example and I can't get it to let me set more than 1. I am pretty sure I am just missing something, but I've searched all over an can't find the answer. Here is the extensions.conf part: exten => _XXXXXXXXXX,1,AGI,diallocal.agi exten => _XXXXXXXXXX,n,NoOp(${ISLOCALCONTEXT})
2005 Jul 14
5
Polycom Auto-Answer problems
CVS Head from 07/07/2005 I'm trying to make an IP-501 auto answer a call. exten => 301,1,SetVar(_ALERT_INFO="Ring_Ans") exten => 301,2,SetVar(ALERT_INFO="Ring_Ans") # Tried both combinations exten => 301,3,Dial(SIP/5001,15) exten => 301,4,Hangup Sip.cfg for Polycom phone <alertInfo voIpProt.SIP.alertInfo.2.value="Ring_Ans"
2010 Jun 19
2
Using SetVar with System() is it possible?
Hi Guys, Is it possible to harvest the output of system into a SetVar(variable)? exten => s,n,SetVar(var=system(*asterisk -rx "sip show channels" | grep -c "(ulaw)")* * * *??? any problem with the syntax? * * * * * *Thanks,* * * -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Dec 01
1
setvar from chan_dahdi.conf
Would someone be able to give an example of a working use of setvar from chan_dahdi.conf? I am trying to create a custom variable like I use in sip.conf but I have been completely unsuccessful getting any variable set using setvar to appear for a DAHDI channel. I am running 1.8.11-cert8 and am using the newer format (but I have tried using the older [channels] format). Here is an example:
2023 Jan 17
1
PR to test for users of Qx devices (blazer and nutdrv_qx)
Jim Klimov via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> > > Cheers, > > One PR waiting to get into 2.8.1 release timeframe is https://github.com/networkupstools/nut/pull/1652 stemming from issue https://github.com/networkupstools/nut/issues/1279 > > The gist of it is that "battery.voltage" and "battery.charge" were not always reported
2023 Jan 17
1
PR to test for users of Qx devices (blazer and nutdrv_qx)
Jim Klimov via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> > > Cheers, > > One PR waiting to get into 2.8.1 release timeframe is https://github.com/networkupstools/nut/pull/1652 stemming from issue https://github.com/networkupstools/nut/issues/1279 > > The gist of it is that "battery.voltage" and "battery.charge" were not always reported
2004 May 24
1
SetVar - bellcode and cisco phone
I am trying to have the ring types different for internal and external incoming calls. I have followed the guide on the wiki, the SetVar executes, in extensions.conf I have it as s,1, Yet it doesn't work? When the phone rings, the ring type is the one I chose on the phone, it rings same tone for both when I test. Using Asterisk Stable. Anyone got this working and can
2007 Jan 24
0
iax.conf setvar= like sip.conf setvar=?
Hi All, I'm running 1.2.9.1, is setvar= implemented in iax.conf in a later version of asterisk? If so, which one? Thanks. JR -- JR Richardson Engineering for the Masses
2011 Jan 13
1
SetVar Warning
I had lines 3 and 4 and added line 1 and 2 to extensions.conf exten => 106,1,SetVar(CALLFILENAME=${TIMESTAMP}_${CALLERID(num)}) exten => 106,2,Monitor(wav,${CALLFILENAME},m) exten => 106,3,hint,SIP/106 exten => 106,4,Macro(stdexten,106,${HINT}) I received this warning: WARNING[31463]: pbx.c:1832 pbx_extension_helper: No application 'SetVar' for extension
2011 Jan 20
2
Accessing a 'user' variable via. dialplan.
Hi, I know you can access various sip variables via 'Set(sstatus=${SIPPEER(201,status)})' (for example) to get the status of the sip user - but what about variables? I have a user that has setvar=123456 in their users.conf (sip.conf if you prefer). I can read it with a 'sip show peer 201' - but that gives everything and parsing that isn't really an option. Anyone know how
2003 Aug 25
2
SetVar on sample.call
Hi all!! Does anyone have a short example or even better - a working AGI script that uses "GET VARIABLE' from a /var/spool/asterisk/outgoing call that uses "SetVar"? Here's what I've tried with no luck so far: sample.call ================= Channel: SIP/1000 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Application: Agi Data: playTasks.agi Callerid: Nightly Processor
2005 Mar 21
6
Fax receive issues and NVFaxDetect
Hello All, I am looking to get asterisk to receive faxes but I really don't know where to go from here, any help pointing me in the right direction would be great. What I would really like is for this second line to answer faxes, but if a user typing in an extension it goes to that extension but I need to get the fax working first. Error I get when I turn on Fax conf... pbx.c:1945
2005 Oct 05
0
Asterisk 1.0.9-BRIstuffed-0.2.0-RC8o memory leak when using call files ?
Hi all, I'm using Asterisk 1.0.9-BRIstuffed-0.2.0-RC8o on box A with a TE410P (EuroISDN cpe) connected to another similar asterisk box B acting as EuroISDN master. I'm performing some load tests by contiously feeding up to concurrent 30 call files to /var/spool/asterisk/outgoing/ on box A which inititate via a dialplan context/extension a outbound call (redirected via chan_local) to
2003 Oct 20
1
Setvar SIP_CODEC
Hello, I have a couple of 7960 and a quad T1 card on my asterisk box. I want to let the phones to use g729 when they "talk" to each other, but to use g711 when I'm going to route the call out of my network using the T1 card. Everything works just fine between the phones, but in order to be able to make calls through T1 I have to disallow the g729. For this purpose I have the
2010 Oct 24
2
Chan variables for peer
Hi all, I used to configure each of my sip clients with a unique identifier via setvar. These clients were all configured as "friends." However, now that I've got some Polycom phones, which MUST be "peers," I am unable to define this variable. For example, this works: [friend-client] context = default accountcode = pcc type = friend username = username secret =
2004 Oct 05
0
Using Macro's that cause loops, on purpose and using h, exten in default twice
Please see my extensions below. I will try to type you through this. In default, an extension 5149053538 is matched on. This fires a macro that determines what time is it, and resets a variable which is then used to call another macro to place a call. if the call is answered, and the far end hangs up, the dial macro exits, then the routing macro exits, and you are back to default. at this point
2005 Sep 15
1
Originate not understanding 2 vars in setvars
Hi, I'm currently trying to originate a call with 2 variables set. I tried doing it via manager API and call File and both failed, because the vars were not separated. I'm using Asterisk 1.2_beta1 on this machine Can anyone here verify wether this is a bug or just a stupid error on my part? This is the callfile I tried to use, after the manager way failed: Channel: