[asterisk-users] couldn't allocate a port for RTP instance
Joshua C. Colp
jcolp at sangoma.com
Fri Apr 14 04:39:23 CDT 2023
On Fri, Apr 14, 2023 at 6:30 AM Fourhundred Thecat <400thecat at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230414/435b507c/attachment.html>
More information about the asterisk-users
mailing list