Displaying 20 results from an estimated 800 matches similar to: "if statement with true value that contains a colon"
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.
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.com/pub/rafael-saraiva/52/aab/230>
2016 Jul 01
2
[PATCH 1/6] lib: string: add function strtolower()
On Fri, 01 Jul 2016, Markus Mayer <mmayer at broadcom.com> wrote:
> Add a function called strtolower() to convert strings to lower case
> in-place, overwriting the original string.
>
> This seems to be a recurring requirement in the kernel that is
> currently being solved by several duplicated implementations doing the
> same thing.
>
> Signed-off-by: Markus Mayer
2016 Jul 09
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
On 08/07/16 23:43, Markus Mayer wrote:
> Add a collection of generic functions to convert strings to lowercase
> or uppercase.
>
> Changing the case of a string (with or without copying it first) seems
> to be a recurring requirement in the kernel that is currently being
> solved by several duplicated implementations doing the same thing. This
> change aims at reducing this
2019 Feb 20
3
branching in extensions.conf?
Is there any less cumbersome way of doing conditionalized/branching in
extensions.conf other than something like:
exten => s,n,GotoIf($["${SIP}" = "PJSIP" ]?pjsip)
exten => s,n,Dial(${ARG2},20,TtWw)
exten => s,n,Goto(afterdial)
exten => s,n(pjsip),Dial(${PJSIP_DIAL_CONTACTS(${STRREPLACE(ARG2,"PJSIP/","")})},20,TtWw)
exten =>
2009 Mar 09
0
Crash when reloading AEL
Hello list,
I have this strange problem whenever I try to make an "ael reload" from the
Asterisk CLI. The command gives the following result and crashes:
voip-1*CLI> ael reload
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).
root at voip-1:/etc/asterisk#
As far as I can see, aelparse can't find any errors in my configuration,
following
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,
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
2006 Jan 06
0
--- AEL 2 --- Try it out!
Hello--
I've just written and submitted a new module for asterisk, to the
asterisk bug database.
See http://bugs.digium.com/view.php?id=6021
There is a file there you can download, AEL2v0.3.patch.bz2
and I created a wiki page: http://www.voip-info.org/wiki/view/Asterisk+AEL2
Why did I do it? Because I was very impressed with AEL, but the current
AEL compiler isn't real good at
2016 Jul 13
1
[PATCH v3 0/7] lib: string: add functions to case-convert strings
On Sat, Jul 09, 2016 at 09:11:05PM -0700, Markus Mayer wrote:
> On 9 July 2016 at 20:13, Chris Metcalf <cmetcalf at mellanox.com> wrote:
> > On 7/8/2016 6:43 PM, Markus Mayer wrote:
> >>
> >> This series introduces a family of generic string case conversion
> >> functions. This kind of functionality is needed in several places in
> >> the kernel.
2015 May 12
0
AEL keyword IfTime with variable on time range
You should try it and find out if it works. If it does, let us know.
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
2016 Jun 30
6
[PATCH 0/6] lib: string: add function strtolower()
This series introduces a new generic function strtolower(), which
converts strings to lowercase in-place, overwriting the original
string. This kind of functionality is needed in several places in the
kernel. Right now, everybody seems to be implementing their own copy of
this function. So, we replace several custom "strtolower"
implementations with this new library function.
Another
2016 Jul 11
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
On 9 July 2016 at 08:30, Markus Mayer <markus.mayer at broadcom.com> wrote:
> On 9 July 2016 at 05:04, Luis de Bethencourt <luisbg at osg.samsung.com> wrote:
>> On 08/07/16 23:43, Markus Mayer wrote:
>>> Add a collection of generic functions to convert strings to lowercase
>>> or uppercase.
>>>
>>> Changing the case of a string (with or
2019 Feb 20
2
branching in extensions.conf?
On Wed, 2019-02-20 at 11:46 -0700, John Kiniston wrote:
> Use the IF function to evaluate and change the dial command directly.
Thanks for taking the time, but that doesn't actually answer the
question I asked. It in fact answers the caveat I specifically
mentioned:
> Granted the particular above example could probably be better
> written to simply modify $ARG2 based on ${SIP}
2016 Jun 30
0
[PATCH 1/6] lib: string: add function strtolower()
Add a function called strtolower() to convert strings to lower case
in-place, overwriting the original string.
This seems to be a recurring requirement in the kernel that is
currently being solved by several duplicated implementations doing the
same thing.
Signed-off-by: Markus Mayer <mmayer at broadcom.com>
---
include/linux/string.h | 1 +
lib/string.c | 14 ++++++++++++++
2
2016 Jul 01
0
[PATCH 1/6] lib: string: add function strtolower()
On 1 July 2016 at 03:52, Jani Nikula <jani.nikula at linux.intel.com> wrote:
> On Fri, 01 Jul 2016, Markus Mayer <mmayer at broadcom.com> wrote:
>> Add a function called strtolower() to convert strings to lower case
>> in-place, overwriting the original string.
>>
>> This seems to be a recurring requirement in the kernel that is
>> currently being
2016 Jul 01
0
[PATCH 1/6] lib: string: add function strtolower()
On Fri, 01 Jul 2016, Markus Mayer <markus.mayer at broadcom.com> wrote:
> On 1 July 2016 at 03:52, Jani Nikula <jani.nikula at linux.intel.com> wrote:
>> On Fri, 01 Jul 2016, Markus Mayer <mmayer at broadcom.com> wrote:
>>> Add a function called strtolower() to convert strings to lower case
>>> in-place, overwriting the original string.
>>>
2016 Jul 08
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
Add a collection of generic functions to convert strings to lowercase
or uppercase.
Changing the case of a string (with or without copying it first) seems
to be a recurring requirement in the kernel that is currently being
solved by several duplicated implementations doing the same thing. This
change aims at reducing this code duplication.
The new functions are
void strlcpytoupper(char *dst,
2016 Jul 01
1
[PATCH 1/6] lib: string: add function strtolower()
On Fri, Jul 01 2016, Markus Mayer <mmayer at broadcom.com> wrote:
> Add a function called strtolower() to convert strings to lower case
> in-place, overwriting the original string.
>
> This seems to be a recurring requirement in the kernel that is
> currently being solved by several duplicated implementations doing the
> same thing.
>
> Signed-off-by: Markus Mayer