mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@41258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -246,7 +246,7 @@ static int macro_exec(struct ast_channel *chan, void *data)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* don't stop executing extensions when we're in "h" */
|
/* don't stop executing extensions when we're in "h" */
|
||||||
if (chan->_softhangup && strcasecmp(chan->macroexten,"h")) {
|
if (chan->_softhangup && strcasecmp(oldexten,"h") && strcasecmp(chan->macroexten,"h")) {
|
||||||
ast_log(LOG_DEBUG, "Extension %s, macroexten %s, priority %d returned normally even though call was hung up\n",
|
ast_log(LOG_DEBUG, "Extension %s, macroexten %s, priority %d returned normally even though call was hung up\n",
|
||||||
chan->exten, chan->macroexten, chan->priority);
|
chan->exten, chan->macroexten, chan->priority);
|
||||||
goto out;
|
goto out;
|
||||||
|
@@ -227,13 +227,6 @@ with equal precedence are grouped within { } symbols.
|
|||||||
This, the unary minus operator, is right associative, and
|
This, the unary minus operator, is right associative, and
|
||||||
has the same precedence as the ! operator.
|
has the same precedence as the ! operator.
|
||||||
|
|
||||||
! expr1
|
|
||||||
Return the result of a logical complement of expr1.
|
|
||||||
In other words, if expr1 is null, 0, an empty string,
|
|
||||||
or the string "0", return a 1. Otherwise, return a 0.
|
|
||||||
It has the same precedence as the unary minus operator, and
|
|
||||||
is also right associative.
|
|
||||||
|
|
||||||
expr1 : expr2
|
expr1 : expr2
|
||||||
The `:' operator matches expr1 against expr2, which must be a
|
The `:' operator matches expr1 against expr2, which must be a
|
||||||
regular expression. The regular expression is anchored to the
|
regular expression. The regular expression is anchored to the
|
||||||
@@ -251,12 +244,6 @@ with equal precedence are grouped within { } symbols.
|
|||||||
before the regex match is made, beginning and ending double quote
|
before the regex match is made, beginning and ending double quote
|
||||||
characters are stripped from both the pattern and the string.
|
characters are stripped from both the pattern and the string.
|
||||||
|
|
||||||
expr1 =~ expr2
|
|
||||||
Exactly the same as the ':' operator, except that the match is
|
|
||||||
not anchored to the beginning of the string. Pardon any similarity
|
|
||||||
to seemingly similar operators in other programming languages!
|
|
||||||
The ":" and "=~" operators share the same precedence.
|
|
||||||
|
|
||||||
expr1 ? expr2 :: expr3
|
expr1 ? expr2 :: expr3
|
||||||
Traditional Conditional operator. If expr1 is a number
|
Traditional Conditional operator. If expr1 is a number
|
||||||
that evaluates to 0 (false), expr3 is result of the this
|
that evaluates to 0 (false), expr3 is result of the this
|
||||||
@@ -276,12 +263,6 @@ or C derived languages.
|
|||||||
|
|
||||||
Examples
|
Examples
|
||||||
|
|
||||||
"One Thousand Five Hundred" =~ "(T[^ ]+)"
|
|
||||||
returns: Thousand
|
|
||||||
|
|
||||||
"One Thousand Five Hundred" =~ "T[^ ]+"
|
|
||||||
returns: 8
|
|
||||||
|
|
||||||
"One Thousand Five Hundred" : "T[^ ]+"
|
"One Thousand Five Hundred" : "T[^ ]+"
|
||||||
returns: 0
|
returns: 0
|
||||||
|
|
||||||
@@ -291,11 +272,6 @@ Examples
|
|||||||
"3075551212":"...(...)"
|
"3075551212":"...(...)"
|
||||||
returns: 555
|
returns: 555
|
||||||
|
|
||||||
! "One Thousand Five Hundred" =~ "T[^ ]+"
|
|
||||||
returns: 0 (because it applies to the string, which is non-null,
|
|
||||||
which it turns to "0", and then looks for the pattern
|
|
||||||
in the "0", and doesn't find it)
|
|
||||||
|
|
||||||
!( "One Thousand Five Hundred" : "T[^ ]+" )
|
!( "One Thousand Five Hundred" : "T[^ ]+" )
|
||||||
returns: 1 (because the string doesn't start with a word starting
|
returns: 1 (because the string doesn't start with a word starting
|
||||||
with T, so the match evals to 0, and the ! operator
|
with T, so the match evals to 0, and the ! operator
|
||||||
|
Reference in New Issue
Block a user