Ring Groups - not work

Direct call 309 to 310 - work

Direct call 309 to 310 - work

root@ats:~# asterisk -rvvvvvv
Asterisk 22.7.0, Copyright (C) 1999 - 2025, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Running as user 'asterisk'
Running under group 'asterisk'
Connected to Asterisk 22.7.0 currently running on ats (pid = 944)
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
  == Using SIP RTP Video TOS bits 136
  == Using SIP RTP Video TOS bits 136 in TCLASS field.
  == Using SIP RTP Video CoS mark 4
    -- Executing [310@from-internal:1] GotoIf("PJSIP/309-00000005", "0?ext-local,310,1:followme-check,310,1") in new stack
    -- Goto (followme-check,310,1)
    -- Executing [310@followme-check:1] Gosub("PJSIP/309-00000005", "followme-sub,310,1()") in new stack
    -- Executing [310@followme-sub:1] Set("PJSIP/309-00000005", "__FMFM=TRUE") in new stack
    -- Executing [310@followme-sub:2] GotoIf("PJSIP/309-00000005", "0?skipclid") in new stack
    -- Executing [310@followme-sub:3] Gosub("PJSIP/309-00000005", "macro-user-callerid,s,1()") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/309-00000005", "TOUCH_MONITOR=1770636461.31") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/309-00000005", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:3] Set("PJSIP/309-00000005", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:4] Set("PJSIP/309-00000005", "CHANEXTENCONTEXT=309-00000005") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/309-00000005", "CHANEXTEN=309-00000005") in new stack
    -- Executing [s@macro-user-callerid:6] Set("PJSIP/309-00000005", "CALLERID(number)=309") in new stack
    -- Executing [s@macro-user-callerid:7] Set("PJSIP/309-00000005", "AMPUSER=309") in new stack
    -- Executing [s@macro-user-callerid:8] Set("PJSIP/309-00000005", "HOTDESCKCHAN=309-00000005") in new stack
    -- Executing [s@macro-user-callerid:9] Set("PJSIP/309-00000005", "HOTDESKEXTEN=309") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/309-00000005", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:11] ExecIf("PJSIP/309-00000005", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/309-00000005", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("PJSIP/309-00000005", "0?report") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("PJSIP/309-00000005", "1?Set(REALCALLERIDNUM=309)") in new stack
    -- Executing [s@macro-user-callerid:15] Set("PJSIP/309-00000005", "AMPUSER=309") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/309-00000005", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:17] Set("PJSIP/309-00000005", "AMPUSERCIDNAME=external") in new stack
    -- Executing [s@macro-user-callerid:18] ExecIf("PJSIP/309-00000005", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:19] GotoIf("PJSIP/309-00000005", "0?report") in new stack
    -- Executing [s@macro-user-callerid:20] Set("PJSIP/309-00000005", "AMPUSERCID=309") in new stack
    -- Executing [s@macro-user-callerid:21] Set("PJSIP/309-00000005", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-user-callerid:22] Set("PJSIP/309-00000005", "CALLERID(all)="external" <309>") in new stack
    -- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/309-00000005", "0?Set(CUSDIAL=)") in new stack
    -- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/309-00000005", "0?Set(CALLERID(all)="external" <309>)") in new stack
    -- Executing [s@macro-user-callerid:25] GotoIf("PJSIP/309-00000005", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:26] ExecIf("PJSIP/309-00000005", "0?Set(GROUP(concurrency_limit)=309)") in new stack
    -- Executing [s@macro-user-callerid:27] ExecIf("PJSIP/309-00000005", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:28] NoOp("PJSIP/309-00000005", "Macro depricated!! To keep the same line numbers") in new stack
    -- Executing [s@macro-user-callerid:29] NoOp("PJSIP/309-00000005", "Macro depricated !!  To keep the same line numbers") in new stack
    -- Executing [s@macro-user-callerid:30] GotoIf("PJSIP/309-00000005", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:31] ExecIf("PJSIP/309-00000005", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [s@macro-user-callerid:32] Set("PJSIP/309-00000005", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:33] GotoIf("PJSIP/309-00000005", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,49)
    -- Executing [s@macro-user-callerid:49] Set("PJSIP/309-00000005", "CALLERID(number)=309") in new stack
    -- Executing [s@macro-user-callerid:50] Set("PJSIP/309-00000005", "CALLERID(name)=external") in new stack
    -- Executing [s@macro-user-callerid:51] GotoIf("PJSIP/309-00000005", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:52] Set("PJSIP/309-00000005", "__MCNUM=309") in new stack
    -- Executing [s@macro-user-callerid:53] Set("PJSIP/309-00000005", "__MCNAME=external") in new stack
    -- Executing [s@macro-user-callerid:54] Set("PJSIP/309-00000005", "__MCEXTEN=309") in new stack
    -- Executing [s@macro-user-callerid:55] Set("PJSIP/309-00000005", "__MCORGCHAN=PJSIP/309-00000005") in new stack
    -- Executing [s@macro-user-callerid:56] Set("PJSIP/309-00000005", "CDR(cnam)=external") in new stack
    -- Executing [s@macro-user-callerid:57] Set("PJSIP/309-00000005", "CDR(cnum)=309") in new stack
    -- Executing [s@macro-user-callerid:58] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [310@followme-sub:4] Set("PJSIP/309-00000005", "DIAL_OPTIONS=HhTtrI") in new stack
    -- Executing [310@followme-sub:5] Set("PJSIP/309-00000005", "CONNECTEDLINE(num,i)=310") in new stack
    -- Executing [310@followme-sub:6] Gosub("PJSIP/309-00000005", "sub-presencestate-display,s,1(310)") in new stack
    -- Executing [s@sub-presencestate-display:1] Goto("PJSIP/309-00000005", "state-available,1") in new stack
    -- Goto (sub-presencestate-display,state-available,1)
    -- Executing [state-available@sub-presencestate-display:1] Set("PJSIP/309-00000005", "PRESENCESTATE_DISPLAY=(Available)") in new stack
    -- Executing [state-available@sub-presencestate-display:2] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [310@followme-sub:7] Set("PJSIP/309-00000005", "CONNECTEDLINE(name)=KVN(Available)") in new stack
    -- Executing [310@followme-sub:8] Set("PJSIP/309-00000005", "FM_DIALSTATUS=NOT_INUSE") in new stack
    -- Executing [310@followme-sub:9] Set("PJSIP/309-00000005", "__EXTTOCALL=310") in new stack
    -- Executing [310@followme-sub:10] Set("PJSIP/309-00000005", "__PICKUPMARK=310") in new stack
    -- Executing [310@followme-sub:11] Gosub("PJSIP/309-00000005", "macro-blkvm-setifempty,s,1()") in new stack
    -- Executing [s@macro-blkvm-setifempty:1] GotoIf("PJSIP/309-00000005", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [s@macro-blkvm-setifempty:4] Set("PJSIP/309-00000005", "__BLKVM_CHANNEL=PJSIP/309-00000005") in new stack
    -- Executing [s@macro-blkvm-setifempty:5] Set("PJSIP/309-00000005", "SHARED(BLKVM,PJSIP/309-00000005)=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:6] Set("PJSIP/309-00000005", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:7] Return("PJSIP/309-00000005", "TRUE") in new stack
    -- Executing [310@followme-sub:12] GotoIf("PJSIP/309-00000005", "1?skipov") in new stack
    -- Goto (followme-sub,310,15)
    -- Executing [310@followme-sub:15] Set("PJSIP/309-00000005", "RRNODEST=") in new stack
    -- Executing [310@followme-sub:16] Set("PJSIP/309-00000005", "__NODEST=310") in new stack
    -- Executing [310@followme-sub:17] GosubIf("PJSIP/309-00000005", "0?sub-fmsetcid,s,1()") in new stack
    -- Executing [310@followme-sub:18] GotoIf("PJSIP/309-00000005", "1?skipprepend") in new stack
    -- Goto (followme-sub,310,20)
    -- Executing [310@followme-sub:20] Set("PJSIP/309-00000005", "RecordMethod=Group") in new stack
    -- Executing [310@followme-sub:21] Gosub("PJSIP/309-00000005", "sub-record-check,s,1(exten,310,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/309-00000005", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/309-00000005", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/309-00000005", "NOW=1770636461") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/309-00000005", "__DAY=09") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/309-00000005", "__MONTH=02") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/309-00000005", "__YEAR=2026") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/309-00000005", "__TIMESTR=20260209-142741") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/309-00000005", "__FROMEXTEN=309") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/309-00000005", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/309-00000005", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/309-00000005", "1?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/309-00000005", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/309-00000005", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/309-00000005", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/309-00000005", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] NoOp("PJSIP/309-00000005", "Exten Recording Check between 309 and 310") in new stack
    -- Executing [exten@sub-record-check:2] Set("PJSIP/309-00000005", "CALLTYPE=internal") in new stack
    -- Executing [exten@sub-record-check:3] ExecIf("PJSIP/309-00000005", "0?Set(CALLTYPE=)") in new stack
    -- Executing [exten@sub-record-check:4] Set("PJSIP/309-00000005", "CALLEE=dontcare") in new stack
    -- Executing [exten@sub-record-check:5] ExecIf("PJSIP/309-00000005", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:6] GotoIf("PJSIP/309-00000005", "0?callee") in new stack
    -- Executing [exten@sub-record-check:7] GotoIf("PJSIP/309-00000005", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [exten@sub-record-check:13] Set("PJSIP/309-00000005", "RECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:14] Set("PJSIP/309-00000005", "CALLERRECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:15] Set("PJSIP/309-00000005", "CALEERECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:16] GotoIf("PJSIP/309-00000005", "0?processnormal") in new stack
    -- Executing [exten@sub-record-check:17] ExecIf("PJSIP/309-00000005", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:18] ExecIf("PJSIP/309-00000005", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:19] ExecIf("PJSIP/309-00000005", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:20] ExecIf("PJSIP/309-00000005", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:21] ExecIf("PJSIP/309-00000005", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:22] ExecIf("PJSIP/309-00000005", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:23] Gosub("PJSIP/309-00000005", "recordcheck,1(dontcare,internal,310)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/309-00000005", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/309-00000005", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [exten@sub-record-check:24] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [310@followme-sub:22] GotoIf("PJSIP/309-00000005", "1?skipdring") in new stack
    -- Goto (followme-sub,310,25)
    -- Executing [310@followme-sub:25] Set("PJSIP/309-00000005", "STRATEGY=hunt") in new stack
    -- Executing [310@followme-sub:26] Set("PJSIP/309-00000005", "__RVOL=") in new stack
    -- Executing [310@followme-sub:27] GotoIf("PJSIP/309-00000005", "0?skipsimple") in new stack
    -- Executing [310@followme-sub:28] GotoIf("PJSIP/309-00000005", "0 ?skipsimple") in new stack
    -- Executing [310@followme-sub:29] Gosub("PJSIP/309-00000005", "macro-simple-dial,s,1(310,20)") in new stack
    -- Executing [s@macro-simple-dial:1] Set("PJSIP/309-00000005", "__EXTTOCALL=310") in new stack
    -- Executing [s@macro-simple-dial:2] Set("PJSIP/309-00000005", "RT=20") in new stack
    -- Executing [s@macro-simple-dial:3] Set("PJSIP/309-00000005", "CFUEXT=") in new stack
    -- Executing [s@macro-simple-dial:4] Set("PJSIP/309-00000005", "CFBEXT=") in new stack
    -- Executing [s@macro-simple-dial:5] Set("PJSIP/309-00000005", "CWI_TMP=") in new stack
    -- Executing [s@macro-simple-dial:6] Gosub("PJSIP/309-00000005", "macro-dial-one,s,1(20,HhTtrI,310)") in new stack
    -- Executing [s@macro-dial-one:1] Set("PJSIP/309-00000005", "DEXTEN=310") in new stack
    -- Executing [s@macro-dial-one:2] Set("PJSIP/309-00000005", "__MCEXTTOCALL=310") in new stack
    -- Executing [s@macro-dial-one:3] Set("PJSIP/309-00000005", "__MCMULTI=189d5ad043ed069b8f1acd94af03eb2c") in new stack
    -- Executing [s@macro-dial-one:4] ExecIf("PJSIP/309-00000005", "0?Set(__EXTTOCALL=310)") in new stack
    -- Executing [s@macro-dial-one:5] Set("PJSIP/309-00000005", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:6] GosubIf("PJSIP/309-00000005", "0?screen,1()") in new stack
    -- Executing [s@macro-dial-one:7] GosubIf("PJSIP/309-00000005", "0?cf,1()") in new stack
    -- Executing [s@macro-dial-one:8] GotoIf("PJSIP/309-00000005", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,11)
    -- Executing [s@macro-dial-one:11] GotoIf("PJSIP/309-00000005", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:12] GotoIf("PJSIP/309-00000005", "0?continue") in new stack
    -- Executing [s@macro-dial-one:13] Set("PJSIP/309-00000005", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:14] GotoIf("PJSIP/309-00000005", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,26)
    -- Executing [s@macro-dial-one:26] GotoIf("PJSIP/309-00000005", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,28)
    -- Executing [s@macro-dial-one:28] GotoIf("PJSIP/309-00000005", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:29] GosubIf("PJSIP/309-00000005", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("PJSIP/309-00000005", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("PJSIP/309-00000005", "DEVICES=310") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("PJSIP/309-00000005", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("PJSIP/309-00000005", "0?Set(DEVICES=10)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("PJSIP/309-00000005", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("PJSIP/309-00000005", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("PJSIP/309-00000005", "THISDIAL=PJSIP/310") in new stack
    -- Executing [dstring@macro-dial-one:8] GotoIf("PJSIP/309-00000005", "0?docheck") in new stack
    -- Executing [dstring@macro-dial-one:9] NoOp("PJSIP/309-00000005", "Debug: Found PJSIP Destination PJSIP/310") in new stack
    -- Executing [dstring@macro-dial-one:10] GotoIf("PJSIP/309-00000005", "0?doset") in new stack
    -- Executing [dstring@macro-dial-one:11] NoOp("PJSIP/309-00000005", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
    -- Executing [dstring@macro-dial-one:12] Set("PJSIP/309-00000005", "THISDIAL=PJSIP/310/sip:[email protected]:5060") in new stack
    -- Executing [dstring@macro-dial-one:13] ExecIf("PJSIP/309-00000005", "0?Set(DIALSTATUS=CHANUNAVAIL)") in new stack
    -- Executing [dstring@macro-dial-one:14] GotoIf("PJSIP/309-00000005", "0?skipset") in new stack
    -- Executing [dstring@macro-dial-one:15] Set("PJSIP/309-00000005", "DSTRING=PJSIP/310/sip:[email protected]:5060&") in new stack
    -- Executing [dstring@macro-dial-one:16] Set("PJSIP/309-00000005", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:17] GotoIf("PJSIP/309-00000005", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:18] ExecIf("PJSIP/309-00000005", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:19] Set("PJSIP/309-00000005", "DSTRING=PJSIP/310/sip:[email protected]:5060") in new stack
    -- Executing [dstring@macro-dial-one:20] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [s@macro-dial-one:30] GotoIf("PJSIP/309-00000005", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:31] GotoIf("PJSIP/309-00000005", "0?skiptrace") in new stack
    -- Executing [s@macro-dial-one:32] GosubIf("PJSIP/309-00000005", "1?ctset,1():ctclear,1()") in new stack
    -- Executing [ctset@macro-dial-one:1] Set("PJSIP/309-00000005", "DB(CALLTRACE/310)=309") in new stack
    -- Executing [ctset@macro-dial-one:2] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [s@macro-dial-one:33] Set("PJSIP/309-00000005", "D_OPTIONS=HhTtrIU(macro-auto-blkvm)") in new stack
    -- Executing [s@macro-dial-one:34] GosubIf("PJSIP/309-00000005", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [s@macro-dial-one:35] NoOp("PJSIP/309-00000005", "Blind Transfer: , Attended Transfer: , User: 309, Alert Info: ") in new stack
    -- Executing [s@macro-dial-one:36] ExecIf("PJSIP/309-00000005", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:37] ExecIf("PJSIP/309-00000005", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:38] ExecIf("PJSIP/309-00000005", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:39] ExecIf("PJSIP/309-00000005", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [s@macro-dial-one:40] ExecIf("PJSIP/309-00000005", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [s@macro-dial-one:41] GosubIf("PJSIP/309-00000005", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [s@macro-dial-one:42] ExecIf("PJSIP/309-00000005", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial-one:43] GosubIf("PJSIP/309-00000005", "0?qwait,1()") in new stack
    -- Executing [s@macro-dial-one:44] Set("PJSIP/309-00000005", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:45] Set("PJSIP/309-00000005", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:46] GotoIf("PJSIP/309-00000005", "0?usegoto,1") in new stack
    -- Executing [s@macro-dial-one:47] GotoIf("PJSIP/309-00000005", "0?godial") in new stack
    -- Executing [s@macro-dial-one:48] Gosub("PJSIP/309-00000005", "sub-presencestate-display,s,1(310)") in new stack
    -- Executing [s@sub-presencestate-display:1] Goto("PJSIP/309-00000005", "state-available,1") in new stack
    -- Goto (sub-presencestate-display,state-available,1)
    -- Executing [state-available@sub-presencestate-display:1] Set("PJSIP/309-00000005", "PRESENCESTATE_DISPLAY=(Available)") in new stack
    -- Executing [state-available@sub-presencestate-display:2] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [s@macro-dial-one:49] Set("PJSIP/309-00000005", "CONNECTEDLINE(name,i)=KVN (Available)") in new stack
    -- Executing [s@macro-dial-one:50] Set("PJSIP/309-00000005", "CONNECTEDLINE(num)=310") in new stack
    -- Executing [s@macro-dial-one:51] Set("PJSIP/309-00000005", "D_OPTIONS=HhTtrIU(macro-auto-blkvm)") in new stack
    -- Executing [s@macro-dial-one:52] Gosub("PJSIP/309-00000005", "macro-dialout-one-predial-hook,s,1()") in new stack
    -- Executing [s@macro-dialout-one-predial-hook:1] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [s@macro-dial-one:53] ExecIf("PJSIP/309-00000005", "0?Set(D_OPTIONS=HhtrIU(macro-auto-blkvm)I)") in new stack
    -- Executing [s@macro-dial-one:54] ExecIf("PJSIP/309-00000005", "0?Set(CWRING=r(callwaiting)):Set(CWRING=)") in new stack
    -- Executing [s@macro-dial-one:55] NoOp("PJSIP/309-00000005", "") in new stack
    -- Executing [s@macro-dial-one:56] ExecIf("PJSIP/309-00000005", "0?Set(D_OPTIONS=HhtrIU(macro-auto-blkvm))") in new stack
    -- Executing [s@macro-dial-one:57] ExecIf("PJSIP/309-00000005", "0?Set(D_OPTIONS=HhTtrIU(macro-auto-blkvm)g)") in new stack
    -- Executing [s@macro-dial-one:58] Gosub("PJSIP/309-00000005", "dialOne-with-exten,310,1(20)") in new stack
    -- Executing [310@dialOne-with-exten:1] Set("PJSIP/309-00000005", "CHANNEL(hangup_handler_push)=app-missedcall-hangup,,1") in new stack
    -- Executing [310@dialOne-with-exten:2] Dial("PJSIP/309-00000005", "PJSIP/310/sip:[email protected]:5060,20,HhTtrIU(macro-auto-blkvm)b(func-apply-sipheaders^s^1)") in new stack
    -- PJSIP/310-00000006 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("PJSIP/310-00000006", "Applying SIP Headers to channel PJSIP/310-00000006") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("PJSIP/310-00000006", "localchan=310-00000006") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("PJSIP/310-00000006", "DialMCEXT=310") in new stack
    -- Executing [s@func-apply-sipheaders:4] Set("PJSIP/310-00000006", "CHANNEL(hangup_handler_push)=app-missedcall-hangup,310,1") in new stack
    -- Executing [s@func-apply-sipheaders:5] Set("PJSIP/310-00000006", "Dchan=310-00000006") in new stack
    -- Executing [s@func-apply-sipheaders:6] Set("PJSIP/310-00000006", "TECH=PJSIP") in new stack
    -- Executing [s@func-apply-sipheaders:7] Set("PJSIP/310-00000006", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:8] While("PJSIP/310-00000006", "0") in new stack
    -- Jumping to priority 14
    -- Executing [s@func-apply-sipheaders:15] Return("PJSIP/310-00000006", "") in new stack
  == Spawn extension (from-internal, 310, 1) exited non-zero on 'PJSIP/310-00000006'
    -- PJSIP/310-00000006 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
  == Using SIP RTP Video TOS bits 136
  == Using SIP RTP Video TOS bits 136 in TCLASS field.
  == Using SIP RTP Video CoS mark 4
    -- Called PJSIP/310/sip:[email protected]:5060
    -- Connected line update to PJSIP/309-00000005 prevented.
    -- PJSIP/310-00000006 is ringing
       > 0x72dc14050c10 -- Strict RTP learning after remote address set to: 192.168.0.18:12374
    -- PJSIP/310-00000006 answered PJSIP/309-00000005
    -- PJSIP/310-00000006 Internal Gosub(macro-auto-blkvm,s,1) start
    -- Executing [s@macro-auto-blkvm:1] Set("PJSIP/310-00000006", "__GOSUB_RESULT=") in new stack
    -- Executing [s@macro-auto-blkvm:2] Set("PJSIP/310-00000006", "CFIGNORE=") in new stack
    -- Executing [s@macro-auto-blkvm:3] Set("PJSIP/310-00000006", "MASTER_CHANNEL(CFIGNORE)=") in new stack
    -- Executing [s@macro-auto-blkvm:4] Set("PJSIP/310-00000006", "FORWARD_CONTEXT=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:5] Set("PJSIP/310-00000006", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:6] Gosub("PJSIP/310-00000006", "macro-blkvm-clr,s,1()") in new stack
    -- Executing [s@macro-blkvm-clr:1] Set("PJSIP/310-00000006", "SHARED(BLKVM,PJSIP/309-00000005)=") in new stack
    -- Executing [s@macro-blkvm-clr:2] Set("PJSIP/310-00000006", "GOSUB_RETVAL=") in new stack
    -- Executing [s@macro-blkvm-clr:3] Return("PJSIP/310-00000006", "") in new stack
    -- Executing [s@macro-auto-blkvm:7] ExecIf("PJSIP/310-00000006", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=310/sip:[email protected]:5060)") in new stack
    -- Executing [s@macro-auto-blkvm:8] ExecIf("PJSIP/310-00000006", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)") in new stack
    -- Executing [s@macro-auto-blkvm:9] Return("PJSIP/310-00000006", "") in new stack
  == Spawn extension (from-internal, , 1) exited non-zero on 'PJSIP/310-00000006'
    -- PJSIP/310-00000006 Internal Gosub(macro-auto-blkvm,s,1) complete GOSUB_RETVAL=
       > 0x72dc140336c0 -- Strict RTP learning after remote address set to: 192.168.0.101:40042
       > 0x72dc1402df60 -- Strict RTP learning after remote address set to: 192.168.0.101:40040
    -- Channel PJSIP/310-00000006 joined 'simple_bridge' basic-bridge <3e8f81d8-4235-4fa1-b074-fcae8bdd5955>
    -- Channel PJSIP/309-00000005 joined 'simple_bridge' basic-bridge <3e8f81d8-4235-4fa1-b074-fcae8bdd5955>
       > 0x72dc14050c10 -- Strict RTP switching to RTP target address 192.168.0.18:12374 as source
       > 0x72dc1402df60 -- Strict RTP switching to RTP target address 192.168.0.101:40040 as source
       > 0x72dc140336c0 -- Strict RTP learning after remote address set to: 192.168.0.101:40042
       > 0x72dc140336c0 -- Strict RTP switching to RTP target address 192.168.0.101:40042 as source
    -- Channel PJSIP/310-00000006 left 'simple_bridge' basic-bridge <3e8f81d8-4235-4fa1-b074-fcae8bdd5955>
    -- PJSIP/310-00000006 Internal Gosub(app-missedcall-hangup,310,1) start
    -- Executing [310@app-missedcall-hangup:1] NoOp("PJSIP/310-00000006", "Dialed: 310") in new stack
    -- Channel PJSIP/309-00000005 left 'simple_bridge' basic-bridge <3e8f81d8-4235-4fa1-b074-fcae8bdd5955>
    -- Executing [310@app-missedcall-hangup:2] NoOp("PJSIP/310-00000006", "Caller: 309") in new stack
    -- Executing [310@app-missedcall-hangup:3] GotoIf("PJSIP/310-00000006", "0?exit") in new stack
    -- Executing [310@app-missedcall-hangup:4] Set("PJSIP/310-00000006", "EXTENNUM=310") in new stack
  == Spawn extension (dialOne-with-exten, 310, 2) exited non-zero on 'PJSIP/309-00000005'
    -- Executing [h@dialOne-with-exten:1] Gosub("PJSIP/309-00000005", "macro-hangupcall,s,1()") in new stack
    -- Executing [s@macro-hangupcall:1] Set("PJSIP/309-00000005", "__MCVMSTATUS=") in new stack
    -- Executing [s@macro-hangupcall:2] Gosub("PJSIP/309-00000005", "app-missedcall-hangup,s,1()") in new stack
    -- Executing [s@app-missedcall-hangup:1] NoOp("PJSIP/309-00000005", "Dialed: s") in new stack
    -- Executing [s@app-missedcall-hangup:2] NoOp("PJSIP/309-00000005", "Caller: 309") in new stack
    -- Executing [s@app-missedcall-hangup:3] GotoIf("PJSIP/309-00000005", "0?exit") in new stack
    -- Executing [s@app-missedcall-hangup:4] Set("PJSIP/309-00000005", "EXTENNUM=s") in new stack
    -- Executing [s@app-missedcall-hangup:5] Set("PJSIP/309-00000005", "FEXTENNUM=s") in new stack
    -- Executing [s@app-missedcall-hangup:6] GotoIf("PJSIP/309-00000005", "0?exit") in new stack
    -- Executing [s@app-missedcall-hangup:7] AGI("PJSIP/309-00000005", "agi://127.0.0.1/missedcallnotify.php,s,,s,0,,PJSIP/309-00000005,ANSWER,,,TRUE") in new stack
[2026-02-09 14:27:45] WARNING[9794][C-00000005]: res_agi.c:2203 handle_connection: Connecting to '127.0.0.1:4573' failed for url 'agi://127.0.0.1/missedcallnotify.php': Connection refused
[2026-02-09 14:27:45] WARNING[9794][C-00000005]: res_agi.c:2263 launch_netscript: Couldn't connect to any host.  FastAGI failed.
    -- Executing [s@app-missedcall-hangup:8] Return("PJSIP/309-00000005", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("PJSIP/309-00000005", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,5)
    -- Executing [310@app-missedcall-hangup:5] Set("PJSIP/310-00000006", "FEXTENNUM=310") in new stack
    -- Executing [310@app-missedcall-hangup:6] GotoIf("PJSIP/310-00000006", "1?exit") in new stack
    -- Executing [s@macro-hangupcall:5] ExecIf("PJSIP/309-00000005", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:6] Hangup("PJSIP/309-00000005", "") in new stack
  == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/309-00000005'
    -- PJSIP/309-00000005 Internal Gosub(app-missedcall-hangup,310,1) start
    -- Goto (app-missedcall-hangup,310,8)
    -- Executing [310@app-missedcall-hangup:8] Return("PJSIP/310-00000006", "") in new stack
  == Spawn extension (from-internal, , 1) exited non-zero on 'PJSIP/310-00000006'
    -- Executing [310@app-missedcall-hangup:1] NoOp("PJSIP/309-00000005", "Dialed: 310") in new stack
    -- PJSIP/310-00000006 Internal Gosub(app-missedcall-hangup,310,1) complete GOSUB_RETVAL=
    -- Executing [310@app-missedcall-hangup:2] NoOp("PJSIP/309-00000005", "Caller: 309") in new stack
    -- Executing [310@app-missedcall-hangup:3] GotoIf("PJSIP/309-00000005", "0?exit") in new stack
    -- Executing [310@app-missedcall-hangup:4] Set("PJSIP/309-00000005", "EXTENNUM=310") in new stack
    -- Executing [310@app-missedcall-hangup:5] Set("PJSIP/309-00000005", "FEXTENNUM=310") in new stack
    -- Executing [310@app-missedcall-hangup:6] GotoIf("PJSIP/309-00000005", "1?exit") in new stack
    -- Goto (app-missedcall-hangup,310,8)
    -- Executing [310@app-missedcall-hangup:8] Return("PJSIP/309-00000005", "") in new stack
  == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/309-00000005'
    -- PJSIP/309-00000005 Internal Gosub(app-missedcall-hangup,310,1) complete GOSUB_RETVAL=
ats*CLI>

In both calls, the error is “Couldn’t connect to any host. FastAGI failed.” This was usually treated by turning on “Launch local AGIs through FastAGI Server“. But it’s on “Dial-up plan and functionality” “Ubuntu Core 24 + nginx + Asterisk 22 + FreePBX 17”

I tried to restart the module with the command

fwconsole pm2 --restart core-fastagi
In Pm2.class.php line 268:

  There is no process by that name

I’m trying another way

fwconsole restart
Running FreePBX shutdown...

Running Asterisk pre from Core module
Stopping Call Transfer Monitoring Service
Core FastAGI Server is not running
Running Asterisk pre from Ucp module

???

The same command again

Running FreePBX shutdown...

Running Asterisk pre from Core module
Stopping Call Transfer Monitoring Service
Stopping Core FastAGI Server
Stopped FastAGI Server
Running Asterisk pre from Ucp module

I’m confused. There were a lot of reboots. Why didn’t FastAGI activate?

UPD Tomorrow, I’ll set up a server in Virtualbox from scratch. The error should appear.

______________________________________________________________________

UPD 2 I found an old test virtual machine. It has the same error. Parametr “Launch local AGIs through FastAGI Server“ is ignored when the server is physically restarted. The situation is similar to this and this.