On Fri, Apr 14, 2023 at 6:30 AM Fourhundred Thecat <400the...@gmx.ch> wrote:

>
> thank you, I found the problem:
>
> I had this in extensions.conf:
>
>    same => n,GotoIf($[ "${DIALSTATUS}" = "BUSY" ]?6:7)
>
> and then I added one line above that, and forgot to adjust the numbers.
> So basically, the rule was going in an cycle.
>
> Is there a better way than to use hardcoded numbers for GotoIf ?
>

Yes. Use labels[1][2][3].

[1]
https://wiki.asterisk.org/wiki/display/AST/Goto+Application+and+Priority+Labels
[2]
https://wiki.asterisk.org/wiki/display/AST/Contexts,+Extensions,+and+Priorities#Contexts,Extensions,andPriorities-Applicationcalls
[3]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Application_GotoIf

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to