Re: couldn't allocate a port for RTP instance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




On Fri, Apr 14, 2023 at 6:30 AM Fourhundred Thecat <400thecat@xxxxxx> 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 

[Index of Archives] [Asterisk Announcements] [Asterisk App Development] [Asterisk SS7] [PJ SIP] [Gnu Gatekeeper] [IETF Sipping] [Info Cyrus] [ALSA User] [Fedora Linux Users] [Linux SCTP] [DCCP] [Gimp] [Yosemite News] [Deep Creek Hot Springs] [Yosemite Campsites] [ISDN Cause Codes] [Asterisk Books]

(追記) (追記ここまで)
Powered by Linux

AltStyle によって変換されたページ (->オリジナル) /