Re: couldn't allocate a port for RTP instance

"Joshua C. Colp" <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <CAM0A2Z2NVnqvr96Yg4z0m39Ug0i8DCy-ffo4Bu+u9dQP_WdanQ@mail.gmail.com>
On Fri, Apr 14, 2023 at 6:30 AM Fourhundred Thecat <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.