search for: iftime

Displaying 14 results from an estimated 14 matches for "iftime".

Did you mean: ftime
2009 Mar 09
0
Crash when reloading AEL
...n my configuration, following output is from aelparse: root at voip-1:/etc/asterisk# aelparse -n -q LOG: lev:4 file:ael2_parse line:543 func: main 29 contexts, 18 extensions, 532 priorities root at voip-1:/etc/asterisk# asterisk I've narrowed the error down to three contexts with a bunch of ifTime()-statements. If I delete or make the following contexts empty "ael reload" works just like it should. context contexta { _X. => { NoOp(Check where to send the call); ifTime(0:00-4:59|mon-fri|*|*) { Playback(prompts/SwitchClosedRT_); } else ifTime(5:00-6:29|mon-fr...
2009 Aug 13
4
Time of Day Routing
Hi everybody I have a logic question that is confusing me. ifTime(00:00-12:00|*|*|*) { Playback(welcome-morning); } else { ifTime(12:00-18:00|*|*|*) { Playback(welcome-afternoon); } else { Playback(welcome-evening);...
2015 May 12
1
AEL keyword IfTime with variable on time range
Sorry, I forget to tell I tried, but not works. *Context:* context ivr_temp2 { s => { Proceeding(); str_time_01 = '06:00-12:00|*|*|*'; // Manh? ifTime (${str_time_01}) { Playback(ura/bom_dia); } } } The error is showed on "ael reload". *Console errors:* rs0000sr304*CLI> ael reload Command 'ael reload' failed. [May 12 14:31:52] NOTICE[20773]: pbx_ael.c:164 pbx_load_module: Starting AEL load process. [May 12 14:31...
2015 May 12
2
AEL keyword IfTime with variable on time range
Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s => { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye); } } } thanks [image: Sua Foto] <rafaelsnsa at gmail.com>Rafael S. SaraivaPorto Alegre - RS | Mobile: (51) 8174-7956 <http://br.linkedin.co...
2008 Dec 23
6
Dailplan code for holiday detection?
This has been on my ToDo list far too long. I have a small call-center setup, with basic time of day/day of week validation before putting callers in the queues. With the holidays upon us, I need to add check to see if 'today' is a holiday so I do not put callers in unmanned queues. Due to how the agents work, I have to allow joinwhenempty. Does anyone have a snippet of dialplan code,
2015 May 12
0
AEL keyword IfTime with variable on time range
...now. Regards; John From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rafael dos Santos Saraiva Sent: Tuesday, May 12, 2015 11:58 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] AEL keyword IfTime with variable on time range Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s => { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye); } } } thanks <mailto:rafaelsnsa...
2006 Jan 06
0
--- AEL 2 --- Try it out!
...ad the file into asterisk. AEL2 is made to load the current ael files. But it adds some functionality, so the reverse (feeding ael2 files to the current ael compiler) may not be possible. I've added the "return" keyword, that will jump to the end of an extension. I've added the ifTime() statement, which uses GotoIfTime underneath. I've implemented the #include "filename" directive. The AEL2 compiler also causes $[ ] expressions to be checked. So I ask you this: how clean are your dialplans? Are you certain? And I also present you with this thought: to me, the e...
2019 Sep 13
2
if statement with true value that contains a colon
...ken as the delimiter for the false value. The only solution I came up with was some hackery to use STRREPLACE to replace the : with a % before the IF statement and then use STRREPLACE again after to change the % back to a :. i.e.: Set(dialexts=${STRREPLACE(dialexts,:,%)}); Set(dialexts=${IFTIME(8:00-22:00?${dialexts}&${MBDR}:${dialexts})}); Set(dialexts=${STRREPLACE(dialexts,%,:)}); Is there no better alternative? Cheers, b. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: Th...
2004 Oct 07
2
recent 's' and 'n' priorities and lables
Hi all, With the recent 's' and 'n' priorities, as well as the advantage of labels, dialplan management has become *much* simpler IMHO. However, I have one suggestion for possible improvement. In any of the Goto[If|IfTime] statements, the ability to do 's' + a number or label + a number would be _nice_. Example extensions.conf: exten => 1,1,NoOp(Start) exten => 1,n,GotoIf($[${SOMETEST}]?:s+2) exten => 1,n,NoOp(Do something) ; target if SOMETEST = 1 exten => 1,n,NoOp(Do some other stuff...
2007 May 02
2
allowing call to my pabx every 15 minutes
Hello all, I have a set up that answer my customer. and its working well, however, the number of call to technical dept is what i want to reduce. I want all call to get to voice prompt except that that enter when minutes is 15, 30, 45, 60(in multiples of 15 minutes). how can i achieve this and what application can i use to get this done. I will be glad, if someone can give me a hint on this.
2009 Apr 14
2
dynamic menus in dialplan
I have an application that needs to vary the menu choices available based upon the availability of an external resource at a given time. What I have in mind is a system that can uplink a user to one of many different satellites. Due to the nature of orbital mechanics a satellite may be out of range at any given time. I only want to present a menu of available satellites. I can query an
2006 Nov 16
2
installing asterisk for Ubuntu Synaptic
...d' [Busy] == Registered application 'Busy' [Congestion] == Registered application 'Congestion' [DigitTimeout] == Registered application 'DigitTimeout' [Goto] == Registered application 'Goto' [GotoIf] == Registered application 'GotoIf' [GotoIfTime] == Registered application 'GotoIfTime' [ExecIfTime] == Registered application 'ExecIfTime' [Hangup] == Registered application 'Hangup' [NoOp] == Registered application 'NoOp' [Progress] == Registered application 'Progress' [ResetCDR] == Regi...
2009 Dec 17
6
Feature Request: GotoIfTimeWithOffset
Hi, When I was testing an IVR, I realized I miss a function I would call GotoIfTimeWithOffset. Today, this IVR is using function AEL GotoIfTime in several places. The problem is if it's 11pm at the moment I'm testing this IVR, I can't nicely test the 9am or 2pm branch. GotoIfTimeWithOffset would get 2 incoming arguments : - the first is a time range (just like GotoIf...
2005 Jun 15
1
app_dial.c:977 dial_exec_full: Unable to create channel of type 'Zap' (cause 0)
...d' [Busy] == Registered application 'Busy' [Congestion] == Registered application 'Congestion' [DigitTimeout] == Registered application 'DigitTimeout' [Goto] == Registered application 'Goto' [GotoIf] == Registered application 'GotoIf' [GotoIfTime] == Registered application 'GotoIfTime' [ExecIfTime] == Registered application 'ExecIfTime' [Hangup] == Registered application 'Hangup' [NoOp] == Registered application 'NoOp' [Prefix] == Registered application 'Prefix' [Progress] == Register...