[asterisk-bugs] [JIRA] (ASTERISK-29497) Add conditional branch applications

N A (JIRA) noreply at issues.asterisk.org
Wed Feb 2 11:38:06 CST 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257947#comment-257947 ] 

N A commented on ASTERISK-29497:
--------------------------------

Cross-posting from the asterisk-users list:

> > -----Original Message-----
> > From: asterisk-users <asterisk-users-bounces at lists.digium.com> On Behalf
> > Of Dovid Bender
> > Sent: Thursday, December 23, 2021 12:11 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-
> > users at lists.digium.com>
> > Subject: Re: [asterisk-users] Exec two commands with ExecIf
> > 
> > Anyone know why this never made it into Asterisk?
> 
> I believe it was deemed not to be of interest to the community.

Assuming that the dates in that ticket refer to 2021 (I see only months and 
days, not years), I don't recall any discussion taking place with the 
community about it, so that seems to me like a surprising explanation.

After all, if GotoIf(), ExecIf() and While() are "deemed to be of interest", 
and therefore exist, why would a simple If() be deemed not to be of interest?

And, taking it from the other point of view, even if many people genuinely 
think "meh, I don't think I'd use this", then surely they just avoid using it, 
as I suspect the majority of people do with DumpChan() (for example, to take a 
pretty obscure, yet still available, command at random).

In short, what's the drawback to making If() available for those who would use 
it?

Personally, I would very much like to see an If() statement made available.


Antony.

> Add conditional branch applications
> -----------------------------------
>
>                 Key: ASTERISK-29497
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29497
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Applications/NewFeature
>    Affects Versions: 18.5.0
>            Reporter: N A
>            Assignee: N A
>
> Adds the If, EndIf, and ExitIf applications to allow for conditional execution, similar to While/EndWhile/ExitWhile except that it executes the branch, if true, only once.



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



More information about the asterisk-bugs mailing list