search for: setglobalvar

Displaying 20 results from an estimated 82 matches for "setglobalvar".

2005 Feb 12
0
Outbound calls on a busy Zap/1: BUSY vs. CHANUNAVAIL
...AIL so it would then try any other trunks that I have configured. Further, I don't want simply change the logic to try the IAX on a DIALSTATUS=BUSY because then a truely busy destination number would get re-dialed three times. Thanks for any help, John [macro-dial-pstn-iax] ; exten => s,1,SetGlobalVar(FOUNDME=ANSWER) exten => s,2,Dial(${PSTN}/${ARG1},${ARG2}) exten => s,3,SetGlobalVar(FOUNDME=${DIALSTATUS}) exten => s,4,GotoIf($[${DIALSTATUS} = CHANUNAVAIL]?5:19) ; exten => s,5,GotoIf($[${LEN(${ARG1})} = 10]?7:6) exten => s,6,GotoIf($[${LEN(${ARG1})} = 7]?9:11) exten => s,7,Set...
2004 Oct 05
1
difference between dtmf digit 8 and 9
Hello, this is an example extensions.conf. [default] exten => 500,1,Answer exten => 8,1,SetGlobalVar(firstdigit=8) exten => 8,2,Goto(process,s,1) exten => 9,1,SetGlobalVar(firstdigit=9) exten => 9,2,Goto(process,s,1) I call extension 500 and send dtmf digit 9. This is printed to the CLI: -- Executing Answer("Zap/20-1", "") in new stack -- Accepting call fro...
2006 Mar 07
1
Setting Vaaibles
...on CentOS 3.4 with an Xlite softphone. I have two xlite phones on diffent computers. One logs in as xlite1 and the other as SNOM. My dial plan is as follows Exten => 200,1,Dial(${OnCall},10) Exten => 201,1,Set(OnCall=SIP/SNOM) Exten => 202,1,Set(OnCall=SIP/xlite1) (I have tried Set and SetGlobalVar). When I use Set I get the following in the CLI -- Executing Set("SIP/snom-a645", "OnCall=SIP/SNOM") in new stack == Auto fallthrough, cahnnel 'SIP/snom\a645 status is 'UNKNOWN' If I dial ext. 201 or 202 I get call failed: 603 declined on the xlite phone. When I da...
2004 Nov 30
0
No voice when I dial out
...The public number rings. I pickup and hear nothing, while on 601 it keeps ringing. (BTW, is it right to say "ringing" on the active phone?) The *CLI> doesn't show me anything useful: Executing Macro("SIP/601-8238", "dial-pstn|88097880|") in new stack Executing SetGlobalVar("SIP/601-8238", "FOUNDME=ANSWER") in new stack Setting global variable 'FOUNDME' to 'ANSWER' Executing Dial(SIP/601-8238", "ZAP/4/w88097880|") in new stack Called 4/w88097880 Zap/4-1 is ringing Zap/4-1 is ringing Zap/4-1 is ringing Hungup 'Zap/...
2006 May 29
4
How to enable call waiting on Sip Phones
How do you enable call waiting on sip phones? Ive looked and googled and can only find call waiting pstn phones butnot for sip. Is their a way of setting this up within the dailplan?
2006 May 22
1
behaviour depending on count of used lines
...shing the call I want to decrement the variable again, of course. My extension set looks like this way: [general] static=yes writeprotect=no LINES => 0 [E1] exten => 33006712,1,GotoIf($[${LINES} >= 10]?101:201) exten => 33006712,101,Dial(mISDN/g:E1/34507725) exten => 33006712,201,SetGlobalVar(LINES=$[ ${LINES} +1 ]) exten => 33006712,202,Dial(SIP/192.168.0.65:5080&SIP/192.168.0.65:5090) exten => 33006712-ANSWER,203,Answer() exten => 33006712-HANGUP,204,SetGlobalVar(LINES=$[ ${LINES} -1]) exten => 33006712,205,SetGlobalVar(LINES=$[ ${LINES} -1 ]) exten => 33006712,206,...
2006 Feb 01
3
Dumb Dialout Question
I'm still trying to learn some parts of Asterisk, so sorry in advance for the dumb question! How do I set up an extension to dial out to the PSTN through my ZAP interfaces? I want the ability to have a ring group that will ring all of the phones in an office and then ring cell phones if nobody answers. I'm sure this is simple to do but I'm at a loss. I have tried the following
2004 Dec 01
0
extension and PSTN connection
...en => _9008X.,1,Macro(dial-pstn,${EXTEN},${LONGTIMEOUT}) exten => _90204X.,1,Congestion include => inhouse exten => i,1,Background(invalid) ; "That's not valid, try again" exten => i,2,Background(silence/1) exten => i,3,Goto(s,1) [macro-dial-pstn]; exten => s,1,SetGlobalVar(FOUNDME=ANSWER) exten => s,2,Dial(${PSTN}/w${ARG1},${ARG2}) exten => s,3,NoOp(${DIALSTATUS}) exten => s,4,Goto(s-${DIALSTATUS},1) exten => s,103,NoOp(${DIALSTATUS}) exten => s,104,Goto(s-${DIALSTATUS},1) exten => s-BUSY,1,BackGround(the-party-you-are-calling) exten => s-BUSY,2,...
2006 Jan 10
1
busydetect
Hi, I'm struggling to get busydetect to work. I'm using asterisk 1.2.1 and a digium TDM04B (4 port FXO) card. I've set busydetect=yes, busycount=6 and busypattern=300,200 in zapata.conf and i've modified zondata.c with a busy setting of 620+480, 300/200 which is the busysignal received from Korea Telecom. Asterisk isn't detecting the busy signal and doesn't hangup.
2009 May 20
1
Macro with DIALSTATUS
...hat i can set a variable when a call is placed (call is placed via a call file to another extension first). Basically i don't want to dial a number where a call is already bridged and thats why i am setting a variable. [macro-afterdial]; exten => s,1,Goto(s-${ARG1},1) exten => s-ANSWER,1,SetGlobalVar(NUM${ARG2} = "ACTIVE") exten => 30,3,Dial(SIP/provider/${num}|15|gM(afterdial^${DIALSTATUS}^1)) exten => 30,4,SetGlobalVar(NUM1 = "foo") Asterisk execute the Macro but on the cli i can see, but dialstatus is somehow not passed to the macro: Executing [s at macro-after...
2003 Oct 23
1
Extended logic syntax
Hi. Can anyone help me with the following: [globals] OFFICEHOURS .................................... [internal] exten => *80,2,SetGlobalVar(OFFICEHOURS=100) exten => *80,2,SetGlobalVar(OFFICEHOURS=200) .................................... [incoming] exten => s,1,GotoIf($[${OFFICEHOURS} = 100}]?incoming-officehours:incoming-officehours-off 1. Am I using the right sytanx when I set the global variable OFFICEHOURS 2. Am I us...
2004 Jan 02
1
Asterisk Gotoif / last called
...all your help :) p.s i dunno if asterisk comes with a last caller function, and theres probs heaps better ways to do it, but if u wana do it all i did was ;line 2 and 3, makes a variable last-call2001 = whoever called, and sets the time. exten => 2001,1,Dial(SIP/2001,20) exten => 2001,2,SetGlobalVar(last-call${EXTEN}=${CALLERIDNUM}) exten => 2001,3,SetGlobalVar(2001date=${DATETIME}) exten => 2001,4,Voicemail(u2001) exten => 2001,104,Voicemail(b2001) exten => 2001,105,Hangup ; say your last call ; gets the callerid and then plays last-call'callerid' exten => 128,1,Answe...
2005 Mar 17
3
Undocumented "exten" syntax?
Over at http://www.voip-info.org/wiki-Asterisk+tips+911, I see these extensions.conf lines: exten => s,1,SetVar(SET_EMERG_FLAG=0) exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK}) exten => s,n,SetGlobalVar(EMERGENCY=1) exten => s,n,SetVar(SET_EMERG_FLAG=1) exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM}) exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} = 1]?inprogress) Now, I have several questions: * What is the "n" priority and how can they use it for several dif...
2005 Feb 11
4
Setting a "Forward" to an external number on your phone
Hi! Maybe I have just been looking on the wrong pages but there is a question that is very important for me. I already studied some Demo-Dialplans and made some basic experiences with Asterisk. But what I need to find out is how I can handle this. I am leaving my office and I want to tell asterisk to forward calls now to my mobile phone by just hitting a key (on my IP-Phone) or by using a
2013 Nov 27
3
issue with speech in IVR
hello list i have an IVR menu in asterisk 1.4 like below exten => 600,1,Ringing() exten => 600,n,Wait(2) exten => 600,n,Goto(home,s,1) [home] exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/) exten => s,n,Background(${sounds_path}music1) exten => s,n,Background(${sounds_path}music2) exten => s,n,Background(${sounds_path}music3) exten => s,n,WaitExten(5) exten => s,n,goto(home,s,1) exten => i,1,Playback(${sounds_path}error) exten =...
2007 Feb 09
1
Outbound Call Transfer Problem
...=> _.,1,Congestion [from-sip] include => parkedcalls exten => _6XX,1,Dial(SIP/${EXTEN},30,T) exten => _6XX,2,Voicemail(u${EXTEN}) exten => _6XX,102,Voicemail(b${EXTEN}) exten => _6XX,103,Hangup exten => _04.,1,Macro(dial-mobile,${EXTEN}) [macro-dial-mobile] exten => s,1,SetGlobalVar(NumToDial=${ARG1}) exten => s,2,SetGlobalVar(theCHANNEL=ZAP/3) exten => s,3,Dial(${theCHANNEL}/${NumToDial},60,T) exten => s,4,Goto(s-${DIALSTATUS},1) exten => s,104,Goto(s-CHANUNAVAIL,1) exten => s-CHANUNAVAIL,1,SetGlobalVar(theCHANNEL=SIP/iinet) exten => s-CHANUNAVAIL,2,Playbac...
2003 Dec 14
1
Error loading modem driver
...] == Registered application 'ResponseTimeout' [Ringing] == Registered application 'Ringing' [SayNumber] == Registered application 'SayNumber' [SayDigits] == Registered application 'SayDigits' [SetAccount] == Registered application 'SetAccount' [SetGlobalVar] == Registered application 'SetGlobalVar' [SetLanguage] == Registered application 'SetLanguage' [SetVar] == Registered application 'SetVar' [StripMSD] == Registered application 'StripMSD' [Suffix] == Registered application 'Suffix' [Wait] ==...
2004 Sep 25
3
Queue and Agent functionality
I've seen alot of posts lately on Queue and Agent functionality, and alot of hacks to make them do different things that most call center managers want. In the sake of doing this one time, I'd like to develop a single list of request so we can consolidate a feature request for the Queue/Agent system. Here are the ones that I run into the most: 1. Queue should know the status of agents
2006 Oct 17
4
IVR problem
All, I'm not able to play background files since this morning. I'm seeing this error message in the logs: [Oct 17 10:23:56] WARNING[4572] file.c: File custom/asterisk-prospectus_IVR-main-day does not exist in any format [Oct 17 10:23:56] WARNING[4572] file.c: Unable to open custom/asterisk-prospectus_IVR-main-day (format 0x4 (ulaw)): Permission denied [Oct 17 10:23:56] WARNING[4572]
2005 Feb 18
3
Help asterisk startup errors
...== Registered application 'SayDigits' [SayAlpha] == Registered application 'SayAlpha' [SayPhonetic] == Registered application 'SayPhonetic' [SetAccount] == Registered application 'SetAccount' [SetAMAFlags] == Registered application 'SetAMAFlags' [SetGlobalVar] == Registered application 'SetGlobalVar' [SetLanguage] == Registered application 'SetLanguage' [SetVar] == Registered application 'SetVar' [StripMSD] == Registered application 'StripMSD' [Suffix] == Registered application 'Suffix' [Wait] ==...