Displaying 20 results from an estimated 6000 matches similar to: "GotoIf($["${CALLERID(number)}"
2010 Dec 30
4
call is not going to Voicemail with "1,n"
I've tried to simplified the dial plan and use "n" instead of numbers but I've noticed it is not executing my voicemail if I substitute number with "n"
In the example below when the call is not answered, it does not go to voicemail; call just hangup.
exten => 1,1,Playback(transfer)
exten => 1,n,Dial(${sales_support}&IAX2/iaxy-322,20,jrw)
exten =>
2012 Aug 23
1
GotoIf redirection to label not working correctly
I run a hotdesking system based on the example from Asterisk: The Definitive Guide. Calls come into the [hotdesk] context, which verifies the phone has a logged in user and sends the call to users,${EXTEN},1 if there is a user logged in. The [users] context then includes several other contexts for internal/external call handling, as follows:
[users]
include => internal
include =>
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 =>
2006 Jan 20
1
instant fallback to zap in case of sip/iax/xyz-failure
i would like to carry some oversea pstn-destinations via sip to providers
like stanaphone, however, in case of a network-failure or if the provider
is not available, i want to fallback to the zap-channels so the call is
carried out to the pstn directly.
the usual approach would be to check the dialstatus(e.g.NOANSWER).
however, asterisk tries >60seconds to reach that peer(even when the ip
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
2004 Nov 28
3
soxmix
Does soxmix works with asterisk ver. 0.9?
I have ver. sox-12.17.5 on Gentoo but the option "m" does not combine
two WAV files (In and Out) into one file. I have two separate files
in /monitor folder.
exten => 711,1,SetVar(CALLFILENAME=${EXTEN:1}-${TIMESTAMP})
exten => 711,2,Monitor(wav,${CALLFILENAME},m)
exten => 711,3,Dial(${sales_support},20,r)
exten =>
2007 Apr 25
1
asterisk answering machine
I'm learning asterisk, and decided to make myself an answering machine
out of it. Seems pretty straightforward to use an agi (perl) to do what
I want.
What I want is:
Answer the phone.
check for time of the day
If TOD is during the time I sleep I announce i'm sleeping & prompt
caller to dial1 (or whatever) to connect to my extension & then go to
voicemail if busy/una,
2012 Sep 20
1
XMPP sendtodialplan
I've been working on an interactive XMPP interface so users at my office can interact with the timeclock and queues by XMPP (in addition to IVR menu, which has been running just fine for quite a while before the XMPP interface). I'm using sendtodialplan=yes to handling the incoming unsolicited messages, and typically will have at least one point of interaction where Asterisk requests
2009 Jul 06
5
Dial cmd help
I have a dial cmd buried amongst a series of others in a macro
like so: exten => s,n,Dial(SIP/1${ARG1}@sip_peer,60,T)
Reason for adding a "1" is all the others in the macro don't
want the "1" so this was easiest at the time. Now I need to
send NA long distance through this macro. All the other dial
cmds will just work, but this one is going to try to dial
11NXXNXXXXXX
2008 Jul 18
5
GotoIf Problem
Everybody,
I have a fall though context that, among other things, tests to see if
someone it trying to pick up a non-existent parked call (Defined from 90
to 99). I have the following:
[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
2009 May 09
1
Special Dialplan
Hello ppl,
I want to make a special dial plan for routing calls to a peer which
has an pin protection.
Normally if you want to call through that peer you must first enter
pin for example 1234#
and after that you hear the tone from line and after that you can dial
desired numbers.
I tried something like that, but doesn't worked. Did somebody have some clues?
exten =>
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.
2011 Feb 13
1
Call Files, Variable passing
Hi,
I am having trouble passing variables via the call files, here is my call
file via the php:
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Events: off\r\n");
fputs($oSocket, "Username: $strUser\r\n");
fputs($oSocket, "Secret: $strSecret\r\n\r\n");
fputs($oSocket, "Action: originate\r\n");
fputs($oSocket,
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 =>
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 =>
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
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)}"
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
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
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'