Displaying 20 results from an estimated 1153 matches for "gotoif".
2008 Jul 18
5
GotoIf Problem
...[not-in-service]
exten => _X.,1,Wait(1)
exten => _X.,n,ResetCDR()
; **************************************************
; Check to see if the mis-dialed number was a parking
; slot. If so, jump to the not-parked context
; **************************************************
exten => _X.,n,GotoIf($["${EXTEN}" = "90"]?not-parked,s,1)
exten => _X.,n,GotoIf($["${EXTEN}" = "91"]?not-parked,s,1)
exten => _X.,n,GotoIf($["${EXTEN}" = "92"]?not-parked,s,1)
exten => _X.,n,GotoIf($["${EXTEN}" = "93"]?not-parked,s...
2010 Feb 04
3
Gotoif Question
Hi Gang,
I'm working on a lumenvox app and am having "fun" with the
Gotoif's on speech/DTMF recognition. If you're using DTMF to enter a number
instead of speech to enter a numeric value, the engine will often return a
"confidence score" of 1000 instead of 1-999. Therefore this Gotoif fails:
exten => s,n,GotoIf($["${SPEECH_SCORE(0)}" <...
2007 May 17
2
Quadbri Cellular Issue
...uting Set("SIP/200-09fc1698", "DIAL_NUMBER=637574972") in new
stack
-- Executing Set("SIP/200-09fc1698", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/200-09fc1698", "DIAL_TRUNK_OPTIONS=tr") in new
stack
-- Executing GotoIf("SIP/200-09fc1698", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,8)
-- Executing Set("SIP/200-09fc1698", "GROUP()=OUT_2") in new stack
-- Executing Macro("SIP/200-09fc1698", "user-callerid|SKIPTTL") in new
stack...
2007 Mar 13
3
How to match wild card inside a GoToIf?
How can I match wildcards inside a GoToIf?
I have something like this, but it doesn't work:
[default]
exten => _2XXXXXXXX,1,Macro(outcall,${EXTEN})
[macro-outcall]
exten => s,1,GotoIf($["${ARG1}" = "220408XXX"]?2:3)
exten => s,2,Hangup
Any ideas?
Regards,
Ricardo.
2007 May 30
3
Dial plan inquiry using GotoIf()
Hi all,
I'm looking for some rudimentary insight on GotoIf() which seems to be
failing on me in my dial plan. All I basically wish to do is block a
particular caller. Sounds easy enough, but my ternary operator/plan
currently is not properly being implemented. Can anyone spot where I'm
being a momo?
All extensions get forwarded to the following macro:...
2005 Mar 08
2
GotoIf with Authenticate
Quick question...Im authenticate all exten except this one(2006). If I call from ext 2006 I still have to authenticate. If I call form any other ext I have to authenticate. Any suggestions?
Thanks
extex => s,1,GotoIf($[${EXTEN} = "2006"]?3)
exten => s,2,Authenticate(731)
exten => s,3,GotoIf($[foo${ECID${CALLERIDNUM}} = foo]?4)
exten => s,4,SetCallerID(${ECID${CALLERIDNUM}})
exten => s,5,Goto(6)
exten => s,6,GotoIf($[foo${OUTCID_${ARG1}} = foo]?6)
exten => s,7,SetCallerID(${OU...
2006 Oct 26
3
dialplan issue - 1& 0 should be evaluated false
...d same when 2 is pressed a "no" is passed.
When the values are both set to "yes" from previous contexts in the
dialplan; the evaluation of the AND operation in the following expression is
true and works fine jumping to the correct priority within the context,
exten => s,3,Gotoif($[${test11} = yes]& $[${test12} = yes]?7:4)
Debug output
-- Goto (test-check,s,1)
-- Executing NoOp("SIP/123-e131", "yes") in new stack
-- Executing NoOp("SIP/123-e131", "yes") in new stack
-- Executing GotoIf("SIP/123-e131", "...
2009 Sep 23
3
Simple dialplan issue
...;t. I'm
not sure why. To me they look identical and it has me stumped.
This works:
[to-test]
exten => _X., 1, SetCallerPres(allowed)
exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb)
exten => _X., 3, Ringing
exten => _X., 4, Dial(SIP/9330 at a-test,20,ro)
exten => _X., 5, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9)
exten => _X., 6, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?7)
exten => _X., 7, Dial(SIP/9330 at a-test2,20,ro)
exten => _X., 8, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9)
exten => _X., 9, Hangup
This...
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 => GROUP,1,Gotoif($[$["${DB(AMPUSER/${ARG1}/recording)}" :
"out=([^|]+)"] = Always]?r,1)
exten => IN,1,Gotoif($[$["${DB(AMPUSER/${ARG1}/recording)}" : "in=([^|]+...
2005 Jun 29
5
Problems with OR Logic in the GotoIf Statement
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3034 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050629/596126bc/smime.bin
2013 Apr 10
2
my "blacklist" is not working
In my blacklist I have: database show
...
/blacklist/Manitoba : advertising
...
[incoming]
; First, lets take care of telemarketers
exten => 4,1,GotoIf(${BLACKLIST()}?blacklisted,s,1)
exten => 4,n,Set(goaway=${CALLERID(number):0:2})
exten => 4,n,GotoIf($["${goaway}" = "V4" ]?blacklisted,s,1)
exten => 4,n,GotoIf($["${goaway}" = "V3" ]?blacklisted,s,1)
...
I just received a call from the same telemar...
2010 Nov 03
1
Gotoif changed in 1.8?
...ten => s,n(runagi),Set(TEST_RETURN="NONE")
exten =>
s,n,AGI(acctbal.agi,${ABA},${digitacc},${digittype},${digitport},${CHANNEL(l
anguage)},${outtype})
exten => s,n,NoOp(Verbose(bal AGI RETURNED ${TEST_RETURN} ))
exten => s,n,Set(BALCOUNT=$[${BALCOUNT} + 1])
exten => s,n,Gotoif($[${BALCOUNT} > 3]?tb-account-balance,s,reset_bc)
exten => s,n,Gotoif($["${TEST_RETURN}" = "OK"]?tb-account-balance,s,ok)
exten => s,n,Gotoif($["${TEST_RETURN}" = "NONE"]?tbstart,s,play-main)
exten => s,n,Gotoif($["${TEST_RETURN}" = &...
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' there. If GotoIf removed,
it works fine.
Is this is a bug,...
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...
2006 Nov 10
2
Outgoing problem on PRI
...long but trixbox does add many macros and stuff
put I do have suspicions about what can cause the zap channel to get a
Hungup request as it seems from below that is the case :
-- Executing Macro("SIP/146-b78060b0",
"dialout-trunk|3|6536595||")in new stack
-- Executing GotoIf("SIP/146-b78060b0", "1?3:2") in new stack
-- Goto (macro-dialout-trunk,s,3)
-- Executing Macro("SIP/146-b78060b0", "user-callerid") in new stack
-- Executing GotoIf("SIP/146-b78060b0", "0?report") in new stack
-- Executing...
2015 Apr 07
5
Asterisk Inbound calls, multiple SIP accounts, calledID
...ny1**-00000797*", "
> *pseudodid="NodePhone"<sip:** sip:Company2*") in new stack
> -- Executing [s at incoming:4] *Set*("*SIP/**Company1**-00000797*", "
> *pseudodid=** sip:Company2*") in new stack
> -- Executing [s at incoming:5] *GotoIf*("*SIP/**Company1**-00000797*", "
> *0?internal,33,1:6*") in new stack
> -- Goto (incoming,s,6)
> -- Executing [s at incoming:6] *GotoIf*("*SIP/**Company1**-00000797*", "
> *0?internal,88,1:7*") in new stack
> -- Goto (incoming,s,7)...
2005 Mar 22
1
Help Debugging my code?
Hey, I'm currently using the GotoIf application to set it so if
certain caller ID's call my number, it will transfer it to my cell
phone, here is the code I have so far. I get an error message that
states "call rejected by 198.22.67.70: No such context/extention."
when I call the number from my house number. Anyway, he...
2005 Jul 11
1
ASterisk@home + Broadvoice = Almost working installation...
...conf to
include customizations
include => ext-did
include => from-pstn-timecheck ; this has to be included otherwise it overrides
ext-did
[from-pstn-timecheck]
exten => .,1,Goto(s,1) ; catch-all matching for calls that have DID info (if a
DID route hasn't matched them)
exten => s,1,GotoIf($[${IN_OVERRIDE} = forcereghours]?from-pstn-reghours,s,1
exten => s,2,GotoIf($[${IN_OVERRIDE} = forceafthours]?from-pstn-afthours,s,1
exten => s,3,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?from-pstn-reghours,s,1
exten => s,4,Goto(from-pstn-afthours,s,1)
[from-pstn-reghours]
exten => s,1,Got...
2007 Aug 19
4
GotoIf not working with ${EXTEN} for me in 1.4.8
I am using GotoIf all over the place in 1.4.8 but for some reason, the
following in my dial plan:
#############################################################
exten => _1NXXNXXXXXX,1,GotoIf([${EXTEN} = "15554441212"]?100)
exten => _1NXXNXXXXXX,n,Dial(SIP/provider1/${EXTEN},60)
exten => _1NXXNXXX...
2010 Jun 11
2
Call ended after 31 seconds
...logger.c: -- Executing [s at macro-dialout-trunk-predial-hook:1] MacroExit("SIP/3000-00006d07", "") in new stack
[Jun 11 15:50:46] DEBUG[26071] app_macro.c: Executed application: Macro
[Jun 11 15:50:46] VERBOSE[26071] logger.c: -- Executing [s at macro-dialout-trunk:17] GotoIf("SIP/3000-00006d07", "0?bypass|1") in new stack
[Jun 11 15:50:46] DEBUG[26071] app_macro.c: Executed application: GotoIf
[Jun 11 15:50:46] VERBOSE[26071] logger.c: -- Executing [s at macro-dialout-trunk:18] GotoIf("SIP/3000-00006d07", "0?customtrunk") in...