Call gets hanged up with "I am sorry, your simultaneous call limit reached. Goodbye." message

Hi folks,

I would like to ask for quick help, after the module update of our PBX server, the incoming call gets terminated with “I am sorry, your simultaneous call limit reached. Goodbye.” message.

I made the incoming call with the destination setting of regular extension, Queue, Conference bridge, I get the same message as soon as the session is established.

I checked with our SIP trunk provider, and the trunk registration is set to normal, and I have 12 concurrent call settings and it is not exceeding, so I doubt the trunk setting is the root cause of the issue.

Probably rolling back of the server image is the safe bet to remedy my issue, but I am curious whether anyone experiencing a similar symptom or not.

Any feedback would be highly appreciated!!!


Environment:

  • OS: CentOS Linux release 7.7.1908
  • Asterisk version: 13.24.1
  • FreePBX version: 14.0.13.26

Updated Modules

  • Follow Me 14.0.1.23 will be upgraded to online version 14.0.1.24

  • FreePBX Framework 14.0.13.23 will be upgraded to online version 14.0.13.26

  • IVR 14.0.9.6 will be upgraded to online version 14.0.9.8

  • Presence State 14.0.1.9 will be upgraded to online version 14.0.1.10

  • Asterisk SIP Settings 14.0.27.22 will be upgraded to online version 14.0.27.23

  • Time Conditions 14.0.2.18 will be upgraded to online version 14.0.2.19

  • User Control Panel 14.0.3.8 will be upgraded to online version 14.0.3.9

  • User Management 14.0.9 will be upgraded to online version 14.0.10

  • Voicemail 14.0.6.10 will be upgraded to online version 14.0.6.11

  • Core 14.0.28.34 will be upgraded to online version 14.0.28.48

  • Certificate Manager will be upgraded to online version 14.0.7

After Edge feature is enabled (but no change)

  • Core 14.0.28.48 will be upgraded to online version 14.0.28.52
  • CID Superfecta 14.0.26 will be upgraded to online version 14.0.27

Can you provide a call trace of a failed call:
https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-AsteriskLogs-PartII

1 Like

Hi Lorne,
Thank you, here is the snippet from /var/log/asterisk full.
I made a call from outside, it seems PBX is establishing the session but terminate the call due to the “call limit”…

[2020-02-29 13:07:01] VERBOSE[15855][C-00000002] netsock2.c: Using SIP RTP TOS bits 184
[2020-02-29 13:07:01] VERBOSE[15855][C-00000002] netsock2.c: Using SIP RTP CoS mark 5
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn-e164-us:1] Set("SIP/Trunk_Junction-00000002", "CALLERID(number)=ssssssssss") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn-e164-us:2] Goto("SIP/Trunk_Junction-00000002", "from-pstn,dddddddd23,1") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (from-pstn,dddddddd23,1)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:1] Set("SIP/Trunk_Junction-00000002", "__DIRECTION=INBOUND") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:2] Gosub("SIP/Trunk_Junction-00000002", "sub-record-check,s,1(in,dddddddd23,dontcare)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:1] GotoIf("SIP/Trunk_Junction-00000002", "0?initialized") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:2] Set("SIP/Trunk_Junction-00000002", "__REC_STATUS=INITIALIZED") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:3] Set("SIP/Trunk_Junction-00000002", "NOW=1583003221") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:4] Set("SIP/Trunk_Junction-00000002", "__DAY=29") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:5] Set("SIP/Trunk_Junction-00000002", "__MONTH=02") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:6] Set("SIP/Trunk_Junction-00000002", "__YEAR=2020") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:7] Set("SIP/Trunk_Junction-00000002", "__TIMESTR=20200229-130701") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:8] Set("SIP/Trunk_Junction-00000002", "__FROMEXTEN=unknown") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:9] Set("SIP/Trunk_Junction-00000002", "__MON_FMT=wav") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:10] NoOp("SIP/Trunk_Junction-00000002", "Recordings initialized") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:11] ExecIf("SIP/Trunk_Junction-00000002", "0?Set(ARG3=dontcare)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:12] Set("SIP/Trunk_Junction-00000002", "REC_POLICY_MODE_SAVE=") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:13] ExecIf("SIP/Trunk_Junction-00000002", "0?Set(REC_STATUS=NO)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:14] GotoIf("SIP/Trunk_Junction-00000002", "2?checkaction") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (sub-record-check,s,17)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@sub-record-check:17] GotoIf("SIP/Trunk_Junction-00000002", "1?sub-record-check,in,1") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (sub-record-check,in,1)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [in@sub-record-check:1] NoOp("SIP/Trunk_Junction-00000002", "Inbound Recording Check to dddddddd23") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [in@sub-record-check:2] Set("SIP/Trunk_Junction-00000002", "FROMEXTEN=unknown") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [in@sub-record-check:3] ExecIf("SIP/Trunk_Junction-00000002", "10?Set(FROMEXTEN=ssssssssss)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [in@sub-record-check:4] Gosub("SIP/Trunk_Junction-00000002", "recordcheck,1(dontcare,in,dddddddd23)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("SIP/Trunk_Junction-00000002", "Starting recording check against dontcare") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [recordcheck@sub-record-check:2] Goto("SIP/Trunk_Junction-00000002", "dontcare") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [recordcheck@sub-record-check:3] Return("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [in@sub-record-check:5] Return("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:3] Set("SIP/Trunk_Junction-00000002", "CHANNEL(tonezone)=us") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:4] Set("SIP/Trunk_Junction-00000002", "__FROM_DID=dddddddd23") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:5] Set("SIP/Trunk_Junction-00000002", "returnhere=1") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:6] Gosub("SIP/Trunk_Junction-00000002", "app-blacklist-check,s,1()") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:1] GotoIf("SIP/Trunk_Junction-00000002", "0?check-blocked") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:2] GotoIf("SIP/Trunk_Junction-00000002", "0?check-blocked") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:3] GotoIf("SIP/Trunk_Junction-00000002", "0?check-blocked:check") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (app-blacklist-check,s,5)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:5] GotoIf("SIP/Trunk_Junction-00000002", "0?blacklisted") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:6] Set("SIP/Trunk_Junction-00000002", "CALLED_BLACKLIST=1") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:7] Return("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:7] Set("SIP/Trunk_Junction-00000002", "CDR(did)=dddddddd23") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:8] GotoIf("SIP/Trunk_Junction-00000002", "0?") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:9] ExecIf("SIP/Trunk_Junction-00000002", "0 ?Set(CALLERID(name)=ssssssssss)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:10] Set("SIP/Trunk_Junction-00000002", "CHANNEL(musicclass)=none") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:11] Set("SIP/Trunk_Junction-00000002", "__MOHCLASS=none") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:12] Set("SIP/Trunk_Junction-00000002", "__REVERSAL_REJECT=FALSE") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:13] GotoIf("SIP/Trunk_Junction-00000002", "1?post-reverse-charge") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (from-pstn,dddddddd23,15)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:15] NoOp("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:16] Macro("SIP/Trunk_Junction-00000002", "privacy-mgr,3,10") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:1] Set("SIP/Trunk_Junction-00000002", "KEEPCID=ssssssssss") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:2] Set("SIP/Trunk_Junction-00000002", "TESTCID=ssssss5259.000000") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:3] ExecIf("SIP/Trunk_Junction-00000002", "0?Set(CALLERID(num)=)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:4] PrivacyManager("SIP/Trunk_Junction-00000002", "3,10") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] app_privacy.c: CallerID number present: Skipping
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:5] GotoIf("SIP/Trunk_Junction-00000002", "0?fail") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:6] GosubIf("SIP/Trunk_Junction-00000002", "1?app-blacklist-check,s,1()") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:1] GotoIf("SIP/Trunk_Junction-00000002", "0?check-blocked") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:2] GotoIf("SIP/Trunk_Junction-00000002", "0?check-blocked") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:3] GotoIf("SIP/Trunk_Junction-00000002", "0?check-blocked:check") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (app-blacklist-check,s,5)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:5] GotoIf("SIP/Trunk_Junction-00000002", "0?blacklisted") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:6] Set("SIP/Trunk_Junction-00000002", "CALLED_BLACKLIST=1") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@app-blacklist-check:7] Return("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:7] Set("SIP/Trunk_Junction-00000002", "CALLERID(num-pres)=allowed_passed_screen") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-privacy-mgr:8] MacroExit("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:17] NoOp("SIP/Trunk_Junction-00000002", "CallerID Entry Point") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dddddddd23@from-pstn:18] Goto("SIP/Trunk_Junction-00000002", "ext-queues,dd23,1") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (ext-queues,dd23,1)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [dd23@ext-queues:1] Macro("SIP/Trunk_Junction-00000002", "user-callerid,") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:1] Set("SIP/Trunk_Junction-00000002", "TOUCH_MONITOR=1583003221.2") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:2] Set("SIP/Trunk_Junction-00000002", "AMPUSER=ssssssssss") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("SIP/Trunk_Junction-00000002", "0?report") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("SIP/Trunk_Junction-00000002", "1?Set(REALCALLERIDNUM=ssssssssss)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:5] Set("SIP/Trunk_Junction-00000002", "AMPUSER=") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("SIP/Trunk_Junction-00000002", "0?limit") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:7] Set("SIP/Trunk_Junction-00000002", "AMPUSERCIDNAME=") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:8] ExecIf("SIP/Trunk_Junction-00000002", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:9] GotoIf("SIP/Trunk_Junction-00000002", "1?report") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (macro-user-callerid,s,15)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:15] NoOp("SIP/Trunk_Junction-00000002", "Macro Depth is 1") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:16] GotoIf("SIP/Trunk_Junction-00000002", "1?report2:macroerror") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (macro-user-callerid,s,17)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:17] GotoIf("SIP/Trunk_Junction-00000002", "0?continue") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:18] ExecIf("SIP/Trunk_Junction-00000002", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:19] Set("SIP/Trunk_Junction-00000002", "__TTL=64") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:20] GotoIf("SIP/Trunk_Junction-00000002", "1?continue") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (macro-user-callerid,s,36)
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:36] Set("SIP/Trunk_Junction-00000002", "CALLERID(number)=ssssssssss") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:37] Set("SIP/Trunk_Junction-00000002", "CALLERID(name)=CNAME") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:38] GotoIf("SIP/Trunk_Junction-00000002", "0?cnum") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:39] Set("SIP/Trunk_Junction-00000002", "CDR(cnam)=CNAME") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:40] Set("SIP/Trunk_Junction-00000002", "CDR(cnum)=ssssssssss") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:41] Set("SIP/Trunk_Junction-00000002", "CHANNEL(language)=en") in new stack
[2020-02-29 13:07:01] VERBOSE[15797] asterisk.c: Remote UNIX connection
[2020-02-29 13:07:01] VERBOSE[17635] asterisk.c: Remote UNIX connection disconnected
[2020-02-29 13:07:01] VERBOSE[15797] asterisk.c: Remote UNIX connection
[2020-02-29 13:07:01] VERBOSE[17641] asterisk.c: Remote UNIX connection disconnected
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:42] Set("SIP/Trunk_Junction-00000002", "CDR(userfield)=Trunk(TX/RX):,0
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:43] Answer("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:01] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:44] Wait("SIP/Trunk_Junction-00000002", "1") in new stack
[2020-02-29 13:07:02] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:45] Gosub("SIP/Trunk_Junction-00000002", "macro-user-callerid,lang-playback,1(hook_1)") in new stack
[2020-02-29 13:07:02] VERBOSE[17629][C-00000002] pbx.c: Executing [lang-playback@macro-user-callerid:1] GosubIf("SIP/Trunk_Junction-00000002", "1?macro-user-callerid,en,hook_1():macro-user-callerid,en,hook_1()") in new stack
[2020-02-29 13:07:02] VERBOSE[17629][C-00000002] pbx.c: Executing [en@macro-user-callerid:3] Playback("SIP/Trunk_Junction-00000002", "beep&im-sorry&your&simul-call-limit-reached&goodbye") in new stack
[2020-02-29 13:07:02] VERBOSE[17629][C-00000002] file.c: <SIP/Trunk_Junction-00000002> Playing 'beep.ulaw' (language 'en')
[2020-02-29 13:07:03] VERBOSE[17629][C-00000002] file.c: <SIP/Trunk_Junction-00000002> Playing 'im-sorry.ulaw' (language 'en')
[2020-02-29 13:07:04] VERBOSE[17629][C-00000002] file.c: <SIP/Trunk_Junction-00000002> Playing 'your.ulaw' (language 'en')
[2020-02-29 13:07:04] VERBOSE[17629][C-00000002] file.c: <SIP/Trunk_Junction-00000002> Playing 'simul-call-limit-reached.ulaw' (language 'en')
[2020-02-29 13:07:07] VERBOSE[17629][C-00000002] file.c: <SIP/Trunk_Junction-00000002> Playing 'goodbye.ulaw' (language 'en')
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [en@macro-user-callerid:4] Return("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [lang-playback@macro-user-callerid:2] Return("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-user-callerid:46] Macro("SIP/Trunk_Junction-00000002", "hangupcall,") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("SIP/Trunk_Junction-00000002", "1?theend") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("SIP/Trunk_Junction-00000002", "0?Set(CDR(recordingfile)=)") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:4] NoOp("SIP/Trunk_Junction-00000002", " montior file= ") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("SIP/Trunk_Junction-00000002", "1?skipagi") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (macro-hangupcall,s,7)
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:7] Hangup("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/Trunk_Junction-00000002' in macro 'hangupcall'
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] app_macro.c: Spawn extension (macro-user-callerid, s, 46) exited non-zero on 'SIP/Trunk_Junction-00000002' in macro 'user-callerid'
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Spawn extension (ext-queues, dd23, 1) exited non-zero on 'SIP/Trunk_Junction-00000002'
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [h@ext-queues:1] Macro("SIP/Trunk_Junction-00000002", "hangupcall,") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("SIP/Trunk_Junction-00000002", "1?theend") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("SIP/Trunk_Junction-00000002", "0?Set(CDR(recordingfile)=)") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:4] NoOp("SIP/Trunk_Junction-00000002", " montior file= ") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("SIP/Trunk_Junction-00000002", "1?skipagi") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx_builtins.c: Goto (macro-hangupcall,s,7)
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Executing [s@macro-hangupcall:7] Hangup("SIP/Trunk_Junction-00000002", "") in new stack
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/Trunk_Junction-00000002' in macro 'hangupcall'
[2020-02-29 13:07:08] VERBOSE[17629][C-00000002] pbx.c: Spawn extension (ext-queues, h, 1) exited non-zero on 'SIP/Trunk_Junction-00000002'

Under the /etc/asterisk/extensions_additional.conf [macro-user-callerid] section, I see exten => en,n(hook_1),Playback(beep&im-sorry&your&simul-call-limit-reached&goodbye), perhaps this is called after the evaluation of ${DB(AMPUSER/${AMPUSER}/concurrency_limit)}?

I am wondering where the concurrency_limit is set in FreePBX. (is there a way to check the current setting via asterisk console???)

[macro-user-callerid]
include => macro-user-callerid-custom
exten => lang-playback,1,GosubIf($[${DIALPLAN_EXISTS(macro-user-callerid,${CHANNEL(language)})}]?macro-user-callerid,${CHANNEL(language)},${ARG1}():macro-user-callerid,en,${ARG1}())
exten => lang-playback,n,Return()

exten => s,1,Set(TOUCH_MONITOR=${UNIQUEID})
exten => s,n,Set(AMPUSER=${IF($["${AMPUSER}" = ""]?${CALLERID(number)}:${AMPUSER})})
exten => s,n,Set(HOTDESCKCHAN=${CUT(CHANNEL,/,2)})
exten => s,n,Set(HOTDESKEXTEN=${CUT(HOTDESCKCHAN,-,1)})
exten => s,n,Set(HOTDESKCALL=0)
exten => s,n,ExecIf($["${DB(EDEVICE/${HOTDESKEXTEN}/user)}"="DummyUser"]?Set(HOTDESKCALL=1))
exten => s,n,ExecIf($[${HOTDESKCALL}=1]?Set(CALLERID(name)=${DB(EDEVICE/${HOTDESKEXTEN}/location)}))
exten => s,n,GotoIf($["${CUT(CHANNEL,@,2):5:5}"="queue" | ${LEN(${AMPUSERCIDNAME})}]?report)
exten => s,n,ExecIf($["${REALCALLERIDNUM:1:2}" = ""]?Set(REALCALLERIDNUM=${CALLERID(number)}))
exten => s,n,Set(AMPUSER=${DB(DEVICE/${REALCALLERIDNUM}/user)})
exten => s,n,GotoIf($["${AMPUSER}" = "none"]?limit)
exten => s,n,Set(AMPUSERCIDNAME=${DB(AMPUSER/${AMPUSER}/cidname)})
exten => s,n,ExecIf($["${ARG2}" != "EXTERNAL" & ${DB_EXISTS(AMPUSER/${AMPUSER}/cidnum)} & "${AMPUSER}" != "${DB(AMPUSER/${AMPUSER}/cidnum)}"]?Set(__CIDMASQUERADING=TRUE))
exten => s,n,GotoIf($["${AMPUSERCIDNAME:1:2}" = ""]?report)
exten => s,n,Set(AMPUSERCID=${IF($["${ARG2}" != "EXTERNAL" & "${DB_EXISTS(AMPUSER/${AMPUSER}/cidnum)}" = "1"]?${DB_RESULT}:${AMPUSER})})
exten => s,n,Set(__DIAL_OPTIONS=${IF($["${DB_EXISTS(AMPUSER/${AMPUSER}/dialopts)}" = "1"]?${DB_RESULT}:${DIAL_OPTIONS})})
exten => s,n,Set(CALLERID(all)="${AMPUSERCIDNAME}" <${AMPUSERCID}>)
exten => s,n,Set(HOTDESCKCHAN=${CUT(CHANNEL,/,2)})
exten => s,n,Set(HOTDESKEXTEN=${CUT(HOTDESCKCHAN,-,1)})
exten => s,n,Set(HOTDESKCALL=0)
exten => s,n,ExecIf($["${DB(EDEVICE/${HOTDESKEXTEN}/user)}"="DummyUser"]?Set(HOTDESKCALL=1))
exten => s,n,ExecIf($[${HOTDESKCALL}=1]?Set(CALLERID(name)=${DB(EDEVICE/${HOTDESKEXTEN}/location)}))
exten => s,n,ExecIf($[${HOTDESKCALL}=1]?Set(CALLERID(all)="${DB(EDEVICE/${HOTDESKEXTEN}/location)}" < ${DB(EDEVICE/${HOTDESKEXTEN}/cid)} >))
exten => s,n,ExecIf($["${DB(DEVICE/${ARG2}/tech)}"="custom"]?Set(CALLERID(all)=${IF($[${LEN(${DB(AMPUSER/${ARG2}/outboundcid)})}]?${DB(AMPUSER/${ARG2}/outboundcid)}:${ARG2})}))
exten => s,n,GotoIf($["${ARG1}"="LIMIT" & ${LEN(${AMPUSER})} & ${DB_EXISTS(AMPUSER/${AMPUSER}/concurrency_limit)} & ${DB(AMPUSER/${AMPUSER}/concurrency_limit)}>0 & ${GROUP_COUNT(${AMPUSER}@concurrency_limit)}>=${DB(AMPUSER/${AMPUSER}/concurrency_limit)}]?limit)
exten => s,n,ExecIf($["${ARG1}"="LIMIT" & ${LEN(${AMPUSER})}]?Set(GROUP(concurrency_limit)=${AMPUSER}))
exten => s,n(report),Noop(Macro Depth is ${MACRO_DEPTH})
exten => s,n,GotoIf($["${MACRO_DEPTH}" = "" | ${MACRO_DEPTH} < 6 ]?report2:macroerror)
exten => s,n(report2),GotoIf($[ "${ARG1}" = "SKIPTTL" | "${ARG1}" = "LIMIT" ]?continue)
exten => s,n,ExecIf($["${CALLEE_ACCOUNCODE}" = ""]?Set(__CALLEE_ACCOUNCODE=${DB(AMPUSER/${IF($["${MACRO_CONTEXT}"="macro-exten-vm"]?${ARG2}:${MACRO_EXTEN})}/accountcode)}))
exten => s,n(report3),Set(__TTL=${IF($["foo${TTL}" = "foo"]?64:$[ ${TTL} - 1 ])})
exten => s,n,GotoIf($[ ${TTL} > 0 ]?continue)
exten => s,n,Wait(${RINGTIMER})
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n,Gosub(macro-user-callerid,lang-playback,1(hook_0))
exten => s,n,Macro(hangupcall,)
exten => s,n(macroerror),Noop(Macro Limit Reached. Aborting Call)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n,Gosub(macro-user-callerid,lang-playback,1(hook_2))
exten => s,n,Macro(hangupcall,)
exten => s,n(limit),Answer
exten => s,n,Wait(1)
exten => s,n,Gosub(macro-user-callerid,lang-playback,1(hook_1))
exten => s,n,Macro(hangupcall,)
exten => s,n,Congestion(20)
exten => s,n(continue),Set(CALLERID(number)=${CALLERID(number):0:40})
exten => s,n,Set(CALLERID(name)=${CALLERID(name):0:40})
exten => s,n,GotoIf($["${CALLERID(name)}" = ""]?cnum)
exten => s,n,Set(CDR(cnam)=${CALLERID(name)})
exten => s,n(cnum),Set(CDR(cnum)=${CALLERID(num)})
exten => s,n,Set(CHANNEL(language)=${MASTER_CHANNEL(CHANNEL(language))})

exten => h,1,Macro(hangupcall,)

exten => en,1(hook_0),Playback(im-sorry&an-error-has-occurred&with&call-forwarding)
exten => en,n,Return()
exten => en,n(hook_1),Playback(beep&im-sorry&your&simul-call-limit-reached&goodbye)
exten => en,n,Return()
exten => en,n(hook_2),Playback(im-sorry&an-error-has-occurred)
exten => en,n,Return()

exten => ja,1(hook_0),Playback(im-sorry&call-forwarding&jp-no&an-error-has-occured)
exten => ja,n,Return()
exten => ja,n(hook_1),Playback(beep&im-sorry&simul-call-limit-reached)
exten => ja,n,Return()
exten => ja,n(hook_2),Playback(im-sorry&an-error-has-occured)
exten => ja,n,Return()

;--== end of [macro-user-callerid] ==--;


[macro-outbound-callerid]
include => macro-outbound-callerid-custom
exten => s,1,Noop(${REALCALLERIDNUM})
exten => s,n,Noop(${KEEPCID})
exten => s,n,Noop(${OUTKEEPCID_${ARG1}})
exten => s,n,ExecIf($["${CALLINGNAMEPRES_SV}" != ""]?Set(CALLERPRES(name-pres)=${CALLINGNAMEPRES_SV}))
exten => s,n,ExecIf($["${CALLINGNUMPRES_SV}" != ""]?Set(CALLERPRES(num-pres)=${CALLINGNUMPRES_SV}))
exten => s,n,Set(HOTDESCKCHAN=${CUT(CHANNEL,/,2)})
exten => s,n,Set(HOTDESKEXTEN=${CUT(HOTDESCKCHAN,-,1)})
exten => s,n,Set(HOTDESKCALL=0)
exten => s,n,ExecIf($["${DB(EDEVICE/${HOTDESKEXTEN}/user)}"="DummyUser"]?Set(HOTDESKCALL=1))
exten => s,n,ExecIf($[${HOTDESKCALL}=1]?Set(CALLERID(name)=${DB(EDEVICE/${HOTDESKEXTEN}/location)}))
exten => s,n,Set(ALLOWTHISROUTE=NO)
exten => s,n,ExecIf($["${EMERGENCYROUTE}" = "YES"]?Set(ALLOWTHISROUTE=YES))
exten => s,n,ExecIf($[${HOTDESKCALL}= 1 & ${ALLOWTHISROUTE} = NO ]?Hangup())
exten => s,n,ExecIf($["${REALCALLERIDNUM:1:2}" = ""]?Set(REALCALLERIDNUM=${CALLERID(number)}))
exten => s,n,ExecIf($[$["${CIDMASQUERADING}" = "TRUE"] & $[$["${AMPUSER}" = ""] | $["${AMPUSER}" = "${DB(AMPUSER/${FROMEXTEN}/cidnum)}"]]]?Set(AMPUSER=${FROMEXTEN}))
exten => s,n(start),GotoIf($[ $["${REALCALLERIDNUM}" = ""] | $["${KEEPCID}" != "TRUE"] | $["${OUTKEEPCID_${ARG1}}" = "on"] ]?normcid)
exten => s,n,Set(USEROUTCID=${CALLERID(name)} <${REALCALLERIDNUM}>)
exten => s,n,GotoIf($["${CIDMASQUERADING}" = "TRUE"]?normcid)
exten => s,n,GotoIf($["${DB(AMPUSER/${REALCALLERIDNUM}/device)}" = "" & "${DB(DEVICE/${REALCALLERIDNUM}/user)}" = ""]?bypass)
exten => s,n(normcid),Set(USEROUTCID=${DB(AMPUSER/${AMPUSER}/outboundcid)})
exten => s,n(bypass),Set(EMERGENCYCID=${DB(DEVICE/${REALCALLERIDNUM}/emergency_cid)})
exten => s,n,ExecIf($[${HOTDESKCALL}= 1]?Set(EMERGENCYCID=${DB(EDEVICE/${HOTDESKEXTEN}/emergency_cid)}))
exten => s,n,Set(TRUNKOUTCID=${OUTCID_${ARG1}})
exten => s,n,GotoIf($["${EMERGENCYROUTE:1:2}" = "" | "${EMERGENCYCID:1:2}" = ""]?trunkcid)
exten => s,n,Set(CALLERID(all)=${EMERGENCYCID})
exten => s,n,GotoIf($["${CALLERID(name)}" = ""]?cnum)
exten => s,n,Set(CDR(outbound_cnam)=${CALLERID(name)})
exten => s,n(cnum),Set(CDR(outbound_cnum)=${CALLERID(num)})
exten => s,n(exit),MacroExit()
exten => s,n(trunkcid),ExecIf($[${LEN(${TRUNKOUTCID})} != 0]?Set(CALLERID(all)=${TRUNKOUTCID}))
exten => s,n(usercid),ExecIf($[${LEN(${USEROUTCID})} != 0]?Set(CALLERID(all)=${USEROUTCID}))
exten => s,n,ExecIf($[${LEN(${TRUNKCIDOVERRIDE})} != 0 | ${LEN(${FORCEDOUTCID_${ARG1}})} != 0]?Set(CALLERID(all)=${IF($[${LEN(${FORCEDOUTCID_${ARG1}})}=0]?${TRUNKCIDOVERRIDE}:${FORCEDOUTCID_${ARG1}})}))
exten => s,n,ExecIf($["${QCALLBACK}" = "1" & ${LEN(${FORCEDOUTCID_${ARG1}})} = 0]?Set(CALLERID(all)=${REALCALLERIDNUM}))
exten => s,n,Set(TIOHIDE=no)
exten => s,n(hidecid),ExecIf($["${CALLERID(name)}"="hidden"]?Set(CALLERPRES(name-pres)=prohib_passed_screen))
exten => s,n,ExecIf($["${CALLERID(name)}"="hidden"]?Set(CALLERPRES(num-pres)=prohib_passed_screen))
exten => s,n,ExecIf($["${TIOHIDE}"="yes"]?Set(CALLERPRES(name-pres)=prohib_passed_screen))
exten => s,n,ExecIf($["${TIOHIDE}"="yes"]?Set(CALLERPRES(num-pres)=prohib_passed_screen))
exten => s,n,Set(CDR(outbound_cnum)=${CALLERID(num)})
exten => s,n,Set(CDR(outbound_cnam)=${CALLERID(name)})

;--== end of [macro-outbound-callerid] ==--;

Found issue, I had a custom [macro-user-callerid] setting in extensions_override_freepbx.conf file, that was causing the issue. I will look into the change but so far the system works as normal by removing it.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.