search for: setvar

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

2009 Aug 20
2
eval and evironments: call local function in a global function
...leave any trace (i.e. global variables) after the main code has finished. I thought that the following would work but it doesn't. I guess I got too messy with environment and enclosures: # global function defined by the user fun.global <- function(){ message('fun.global') setVar(5) # } # my main code main <- function(){ message('main') # define a function to set some local variable setVar <- local({ l.var <- 0 function(value){ message('setVar') l.var <<- value } }) .workspace <- environmen...
2004 Nov 28
1
SetVar ALERT_INFO
...n 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 => s,n,NoOp(${_ALERT_INFO}) exten => s,n,SetVar(ALERT_INFO=) exten => s,n,SetVar(_ALERT_INFO=) exten => s,n,NoOp(${ALERT_INFO}) exten => s,n,NoOp(${_ALERT_INFO}) When a call is transferred, here's what I see on the console -- Executing NoOp("Zap/1-1", "Bellcore-r3") in new stack -- Executing NoOp("Za...
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 listed in README.variables as a character that must be escaped: exten...
2009 Jun 04
3
PHP/AGI/SetVar Issue
...e 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}) exten => _XXXXXXXXXX,n,NoOp(${ISLOCALDID}) Here is the part from the agi that sets the variables: echo ' EXEC SetVar ISLOCALCONTEXT="'.$row['context'].'"'; echo ' EXEC SetVar ISLOCALDID="'.$row['did'].'"'; If I run it is as, ISLOCALCONTEXT gets set, but not ISLOCALDID: -- Executing NoOp("SIP/3333-081d2c38", "CONTEXT2") in new...
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" voIpProt.SIP.alertInfo.1...
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: http://lists.digium.com/pipermail/as...
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] form...
2023 Jan 17
1
PR to test for users of Qx devices (blazer and nutdrv_qx)
...b 0.1) 0.44 Using protocol: Voltronic 0.07 battery_number: 20 battery_number, settable range: 1..9 bypass_alarm: enabled battery_alarm: enabled bypass_when_off: disabled alarm_control: enabled converter_mode: disabled eco_mode: disabled battery_open_status_check: enabled bypass_forbidding: disabled setvar(bypass_when_off, disabled) bypass_when_off is already disabled setvar: FAILED max_bypass_volt: 264 max_bypass_volt, settable range: 231..276 min_bypass_volt: 110 min_bypass_volt, settable range: 110..209 max_bypass_freq: 64.0 max_bypass_freq, settable range: 61.0..64.0 min_bypass_freq: 56.0 min_byp...
2023 Jan 17
1
PR to test for users of Qx devices (blazer and nutdrv_qx)
...b 0.1) 0.44 Using protocol: Voltronic 0.07 battery_number: 20 battery_number, settable range: 1..9 bypass_alarm: enabled battery_alarm: enabled bypass_when_off: disabled alarm_control: enabled converter_mode: disabled eco_mode: disabled battery_open_status_check: enabled bypass_forbidding: disabled setvar(bypass_when_off, disabled) bypass_when_off is already disabled setvar: FAILED max_bypass_volt: 264 max_bypass_volt, settable range: 231..276 min_bypass_volt: 110 min_bypass_volt, settable range: 110..209 max_bypass_freq: 64.0 max_bypass_freq, settable range: 61.0..64.0 min_bypass_freq: 56.0 min_byp...
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 point me in the right direction? Ouput o...
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 (vo...
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 to access 'variables' (and maybe the contents) directly? Thanks If you have received this comm...
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 <(999) 888-777> SetVar: taskID=300 //This ID is queried from my mysq...
2005 Mar 21
6
Fax receive issues and NVFaxDetect
...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 ast_pbx_run: Timeout, but no rule 't' in context 'from-Sipmedia2' Fax Conf in extensions.conf top [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,7,rxfax(${FAXFILE}) exten => s,103,SetVar(EMAILADDR=my@email.us) exten => s,104,Goto(7) [from-Sipmedia2] ;second line in or Fax line exten => s,1,Answer exten => fax,2,Goto(fax,2901,1) [fax] exten => 2901,1,Macro(f...
2005 Oct 05
0
Asterisk 1.0.9-BRIstuffed-0.2.0-RC8o memory leak when using call files ?
...the call success/failure to the callfile generator process. TIA for any hints, Bruno callfile: TESTT05100514541601721 Channel: Local/TESTT05100514541601721:041234567890@test-dial Context: test Extension: s Priority: 1 CallerId: 01722270201 MaxRetries: 0 WaitTime: 35 RetryTime: 10 Account: TEST SetVar: SMID1=TESTT05100514541601 SetVar: SMID2=721 SetVar: SMID3= SetVar: SMINFO=TESTINFO SetVar: SMOADC=+491722270201 SetVar: SMADC=+491234567890 SetVar: SMRETRYCNT=3 extensions.conf: [general] TRUNKTEST=Zap/r1 [test-dial] ;exten => _TEST.,1,SetCallerPres(prohib) exten => _TEST.,1,SetCallerPres(...
2003 Oct 20
1
Setvar SIP_CODEC
...ard. 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 following configuration using yesterday's cvs. [sip.conf] disallow=all allow=g729 allow=ulaw [extensions.conf] exten => 123456,1,SetVar,SIP_CODEC=ulaw exten => 123456,2,Dial(${TRUNK}/${EXTEN}) The problem is with the SetVar function, the debug shows that the function is executed, but after that, * sends the media capability to the phone with g729 as preferred codec. Is there any work around? or simply setVar wasn't meant...
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 se...
2004 Oct 05
0
Using Macro's that cause loops, on purpose and using h, exten in default twice
...9053538 match in default, which starts the whole process over. this works for the first time the far end hangs up, but not the second time. Any insight? [default] include => AnswerDIDs [AnswerDIDs] ;Test Numnber in Montreal exten => 5149053538,1,macro(time-routing) exten => 5149053538,2,SetVar(bar=0) exten => 5149053538,3,NoOp($bar}) exten => 5149053538,102,SetVar(bar=1) exten => 5149053538,103,NoOp(${bar}) ;exten => 5149053538,1,goto(custserv,${EXTEN},1) ;exten => 1000,1,Goto(melbourne,s,1) ;exten => 1000,1,Playback(hold-or-dial-0) exten => 1000,1,Goto(custserv,...
2005 Sep 15
1
Originate not understanding 2 vars in setvars
...terisk 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: local/21@outbounddial/n MaxRetries: 0 RetryTime: 60 WaitTime: 30 Context: outbound Extension: s Priority: 1 SetVar: actionID=54547-1126771509609|AgiIP=192.168.10.249 The part of the extension.conf it should work with is this: [outbound] exten => s,1,Agi(agi://${AgiIP}:1234/outbound.agi?actionId=${actionId}) Asterisk dials out, as it should, but when the call is answered I get the following message in CLI...