Re: [asterisk-users] Exec two commands with ExecIf

2021-12-23 Thread Antony Stone
On Thursday 23 December 2021 at 22:16:26, John Harragin wrote: > gotoif accomplishes exactly what you want (except the one line part). Goto() and GotoIf() always remind me of programming in BASIC in the 1980s. Antony. -- "In fact I wanted to be John Cleese and it took me some time to realise

Re: [asterisk-users] Exec two commands with ExecIf

2021-12-23 Thread Antony Stone
sion > us...@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 ref

Re: [asterisk-users] Exec two commands with ExecIf

2021-12-23 Thread Eric Wieling
The dialplan is a very complicated config file. It is often repetitive and ugly. Don't expect it to work like an actual programming language. If you want that, use an AGI. In this case, just call it an "Asterisk-ism" and move on. You'll find plenty more of them. On 12/23/21 01:37, Dovid

Re: [asterisk-users] Exec two commands with ExecIf

2021-12-23 Thread Dovid Bender
on-Commercial Discussion > us...@lists.digium.com> > > Subject: Re: [asterisk-users] Exec two commands with ExecIf > > > > On Thu, 23 Dec 2021, Dovid Bender wrote: > > > > > Is there any way of using ExecIf to run two commands instead of 1? e.g. > > >

Re: [asterisk-users] Exec two commands with ExecIf

2021-12-22 Thread Steve Edwards
On Thu, 23 Dec 2021, Dovid Bender wrote: Is there any way of using ExecIf to run two commands instead of 1? e.g. instead of Exten 123,1,ExecIf($["FOO" == "BAR"]?BackGround(you-owe)) Exten 123,1,ExecIf($["FOO" == "BAR"]?SayNUmber(100")) I would ideally like to do it in one line. 1) gotoi

[asterisk-users] Exec two commands with ExecIf

2021-12-22 Thread Dovid Bender
Hi, I didn't see any documentation for this so I assume it can't be done but I figured I would check here first. Is there any way of using ExecIf to run two commands instead of 1? e.g. instead of Exten 123,1,ExecIf($["FOO" == "BAR"]?BackGround(you-owe)) Exten 123,1,ExecIf($["FOO" == "BAR"]?SayNUm