similar to: Asterisk Gotoif / last called

Displaying 20 results from an estimated 110 matches similar to: "Asterisk Gotoif / last called"

2007 Feb 22
1
GotoIf DURATION
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Helvetica, Arial, sans-serif">Hi,<br> <br> I am
2010 Dec 29
2
GotoIf CALLERID(num)
I'm testing GotoIf($["${CALLERID(num) but I'm missing something as it is not working: [office-open] exten => s,1,Wait(1) exten => s,2,Answer() ; for Caller ID is 471-5665, always signal congestion: exten => s,3,GotoIf($["${CALLERID(num)}" = "4715665"]?4:6) exten => s,4,Playtones(congestion) exten => s,5,Congestion(5) exten =>
2003 Oct 23
0
GotoIf Problems
I have the following in my extensions.conf: exten => 21,1,NoOp(${CALLERIDNUM}) exten => 21,2,GotoIf($[${CALLERIDNUM} = ""]?21|4:21|9) exten => 21,4,Playback(/etc/asterisk/interactive-services/no-callerid) exten => 21,5,Wait(1) exten => 21,6,Playback(/etc/asterisk/interactive-services/no-callerid) exten => 21,7,Wait(1) exten => 21,8,Goto(10,4) exten =>
2004 Aug 27
0
regex and gotoif question
Hi all, Did anyone manage to make the GotoIf command work with regular expression ? I would like to make the following thing: ${DTMSeq} contains a menu choice. Only 1, 2 and 3 are allowed menu choices. If DTMFSeq contains 1 or 2 or 3 => OK, Goto 4 else Goto 2 I've tried the follwoing syntax but it is alway going to 2 whatever the value of DTMFSeq: exten =>
2005 Jan 06
1
Gotoif question
Is there a way to combine these lines into one? exten => s,2,GotoIf($["${CALLERIDNUM:0:3}" = "800"]?s|108) exten => s,3,GotoIf($["${CALLERIDNUM:0:3}" = "866"]?s|108) exten => s,4,GotoIf($["${CALLERIDNUM:0:3}" = "877"]?s|108) exten => s,5,GotoIf($["${CALLERIDNUM:0:3}" = "888"]?s|108) Thanks --John
2005 Sep 05
3
GotoIf sample...
hi everyone. can anyone provide me concrete examples on how to use the GotoIf application? can't figure out how to use it in my dialplan coz im having errors....thanks! : ) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was
2005 Oct 14
1
match a set of numbers in GoToIf against a variable
Hello all, Okay when you are done laughing at the simplicity of this question could someone show me please what I have wrong in the following statement? GoToIf($[${numdial} != [1-9] ]?15:3); What this is supposed to do is if numdial is not a single digit from 1 to 9 inclusive goto 15, if it is a singledigit from 1 to 9 inclusive goto 3. Should be pretty simple but not working for me, always
2006 Apr 07
2
gotoif
Here is a section of my dialplan (macro) exten => s,200,Wait(1) exten => s,201,read(holdopt|screen-onhold|1) exten => s,202,GotoIf($[${holdopt} = 1 ]?4) exten => s,203,GoTo(200) it's simple really it loops telling you the caller is on hold until you press 1 and then it sends you off to another area. The problem right now is that if the read() times out i get these warnings...
2006 Apr 07
1
regexp in gotoif
Hello! this is a short one: in a gotoif-statement i would like to match a variable to a number, where the number could have digits from 2-6. asterisk only seems to be capable to match such a digit-range when used in the extension, but not in a regexp, at least the following query doesn't work: exten => _X.,1,GotoIf($[${EXTEN} : 234[2-6]]?jump:) obviously asterisk has a problem with
2006 Jun 27
1
Error in config sample for GoToIf?
My teeth are on edge after this one. A couple of perfectly good hours of my life, and I still don't know what's going on. . . . The extensions.conf.sample that comes with the current SVN trunk has this line, in an example that shows how to use ChanIsAvail: exten => s,n,GoToIf([${AVAILSTATUS} = "1"]?autoanswer:fail) I couldn't get this to work unless I surrounded the
2007 Feb 01
0
extensions.conf gotoif and label
Hello, I got a little interogation about these 3 points. I want to write something like this sample in my extension.conf. I have tested and it works but I don't know if it is a good way to make a menu. I don't want to put number as it is boring to maintain. Does anyone know if there is some problem to write like this? exten => 7890,1,Wait(1) exten =>
2007 Feb 01
1
Please help parse this GotoIf line
I wish to have my Grandstream GXP-2000 phones make a different distinctive ring for internal calls ( Internal ) or if the incoming call has no caller id 'NOCID'. The Grandstream phones calls allow 3 distinctive rings depending on the caller id. I have one set up and working for 'Internal' calls but unfortunately the same tone will ring if caller id is absent on a call. My
2007 Dec 26
0
Fwd: Gotoif Time
the schedule of my server this configured with -6:00, and this correct one with the normal hour of my country, I made the change but I don't work me [general] static=yes writeprotect=no autofallthrough=yes clearglobalvars=no [in] include =>scheduleofservice|08:00-18:00|mon-fri|*|* include =>outsideofschedule|18:00-23:59|*|*|* include =>outsideofschedule|00:00-07:59|*|*|* include
2013 May 05
1
GotoIf DIALSTATUS - not working
What am I doing wrong? Goif dialstatus: busy CONGESTION not working. exten => _7NXXXXXX,1,Dial(SIP/7780${EXTEN:1}@pstn-5665,60,tr) exten => _7NXXXXXX,n,GotoIf($[$["${DIALSTATUS}" = "BUSY"] | $["${DIALSTATUS}" = "CONGESTION"]]?line2) exten => _7NXXXXXX,n(line2),Dial(SIP/9780${EXTEN:1}@pstn-1270,60,tr) exten => _7NXXXXXX,n,Hangup() When I try to
2013 Jun 14
1
GotoIf($["${CALLERID(number)}
I'm trying to to to "dial1" if caller id match: but dial plan execute 220,n(dial1) regardless exten => 220,n,GotoIf($["${CALLERID(number)}" = "7804792668"]?dial1) exten => 220,n(dial1),Dial(${sales_support}&${accounting}&${family},25,m(penguin)w) exten => 220,n, I was under impression that if condition is met it will jump to
2014 Jul 02
1
Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) doesn't work...
Greetings, I'm hoping that an extra pair of eyes might help me to solve a challenge... Anyone have any idea why the following would not work? I'm trying to test for a callerid value that is 4 digits in length.. exten => s,1,NoOp(CLID is ${CALLERID(all)}) exten => s,n,Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) exten => s,n,NoOp(Value is False) exten => s,n,Hangup
2006 Feb 08
2
SV: GotoIf number exists in file. How can i do this?
Oh. So how can I do this? If I write something in PHP, how do I make it output to an Asterisk variabel? I need to set a variable in asterisk to TRUE or FALSE based on the result of the PHP-script. ________________________________ Fra: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] P? vegne av Morgan Gilroy Sendt: 8. februar 2006 15:28 Til:
2010 Nov 03
1
Gotoif changed in 1.8?
Hi Gang, I'm testing 1.8.0 on one of my machines and this snippet "chokes" on line 7 (works fine with 1.4.30) [tb-account-balance] exten => s,1,Set(BALCOUNT=0) exten => s,n,NoOp(Verbose(acct ${digitacc} pwd ${digitpwd} )) exten => s,n(runagi),Set(TEST_RETURN="NONE") exten =>
2009 Jul 15
1
ResetCDR after GotoIf doesn't set dst correctly, Is this a bug?
(Both on Asterisk 1.2 and 1.4) I was struggling to find out why my CDR was recording dst = h after a call hangup. It was working fine until I added a GotoIf statement before ResetCDR to calculate some value for userfield column. Today I tested and found out that if ResetCDR is put after GotoIf (or after if in AEL), it doesn't record correct value in dst column, and isntead puts 'h'
2008 Apr 15
1
gotoif syntax error
Asterisk is reporting the following error: [Apr 15 16:58:32] WARNING[14759] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected ':', expecting $end; Input: : Always ^ here is the dialplan: exten => OUT,1,Gotoif($[$["${DB(AMPUSER/${ARG1}/recording)}" : "out=([^|]+)"] = Always]?r,1) exten =>