[asterisk-bugs] [JIRA] (ASTERISK-25194) Incorrect GotoIf Behavoir

newborn (JIRA) noreply at issues.asterisk.org
Wed Jun 24 04:20:33 CDT 2015


newborn created ASTERISK-25194:
----------------------------------

             Summary: Incorrect GotoIf Behavoir
                 Key: ASTERISK-25194
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25194
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: . I did not set the category correctly.
    Affects Versions: 1.8.32.1
            Reporter: newborn


Seems that application GotoIf does not work correctly.

The dialplan:

NoOp(-- Current calls on ${GLOBAL(OUTBOUND_TRUNK2)} is ${MATH(${GROUP_COUNT(pstn_trunk_in)}+${GROUP_COUNT(pstn_trunk_out)},int)});
    GotoIf($["${MATH(${GROUP_COUNT(pstn_trunk_in)}+${GROUP_COUNT(pstn_trunk_out)},int)}">="${GLOBAL(MAXCALLS_TRUNK2)}"]?msk02);

Output:

[Jun 24 19:03:31]     -- Executing [74952325217 at outbound-dial-external:1] NoOp("SIP/lyncserver-0000005f", "-- Current calls on SIP/provider is 3") in new stack
[Jun 24 19:03:31]     -- Executing [74952325217 at outbound-dial-external:2] GotoIf("SIP/lyncserver-0000005f", "1?msk02") in new stack
[Jun 24 19:03:31]     -- Goto (outbound-dial-external,74952325217,7)


dialplan show globals

...
MAXCALLS_TRUNK2=30
...

So Asterisk think that 30 is greater or equal than 3. Is this correct?




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list