I'm having a funny issue with a ring group (199). It contains two extensions -- 201 and 214. If both of the extensions are registered and I dial 199 from a third phone, all is good.
The problem is if either of those extensions are offline or not registered, nothing happens when I dial 199. The dialing phone will try, but there will be no audio and the call will disconnect after about 60 seconds.
As a test, I changed the ring group to extension 200 and 214, and tried dialing 199. Then it failed. If I bring ext 200 online or change the ring group back to 201 and 214, it will work.
Here is the asterisk output of a successful ring group call:
I'll post a reply with the output of a failed call to the ring group.
The problem is if either of those extensions are offline or not registered, nothing happens when I dial 199. The dialing phone will try, but there will be no audio and the call will disconnect after about 60 seconds.
As a test, I changed the ring group to extension 200 and 214, and tried dialing 199. Then it failed. If I bring ext 200 online or change the ring group back to 201 and 214, it will work.
Here is the asterisk output of a successful ring group call:
Code:
Connected to Asterisk 13.13.1 currently running on IncrediblePBX (pid = 20375)
-- Executing [199@from-internal:1] Macro("PJSIP/219-00000007", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/219-00000007", "TOUCH_MONITOR=1493935360.47") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/219-00000007", "AMPUSER=219") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("PJSIP/219-00000007", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("PJSIP/219-00000007", "1?Set(REALCALLERIDNUM=219)") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/219-00000007", "AMPUSER=219") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("PJSIP/219-00000007", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("PJSIP/219-00000007", "AMPUSERCIDNAME=Extra") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/219-00000007", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("PJSIP/219-00000007", "AMPUSERCID=219") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/219-00000007", "__DIAL_OPTIONS=tr") in new stack
-- Executing [s@macro-user-callerid:11] Set("PJSIP/219-00000007", "CALLERID(all)="Extra" <219>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("PJSIP/219-00000007", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/219-00000007", "0?Set(GROUP(concurrency_limit)=219)") in new stack
-- Executing [s@macro-user-callerid:14] GosubIf("PJSIP/219-00000007", "7?sub-ccss,s,1(from-internal,)") in new stack
-- Executing [s@sub-ccss:1] ExecIf("PJSIP/219-00000007", "0?Return()") in new stack
-- Executing [s@sub-ccss:2] Set("PJSIP/219-00000007", "CCSS_SETUP=TRUE") in new stack
-- Executing [s@sub-ccss:3] GosubIf("PJSIP/219-00000007", "0?monitor_config,1(from-internal,):monitor_default,1(from-internal,)") in new stack
-- Executing [monitor_default@sub-ccss:1] GotoIf("PJSIP/219-00000007", "0?is_exten") in new stack
-- Executing [monitor_default@sub-ccss:2] StackPop("PJSIP/219-00000007", "") in new stack
-- Executing [monitor_default@sub-ccss:3] Return("PJSIP/219-00000007", "FALSE") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("PJSIP/219-00000007", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] Set("PJSIP/219-00000007", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("PJSIP/219-00000007", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("PJSIP/219-00000007", "CALLERID(number)=219") in new stack
-- Executing [s@macro-user-callerid:29] Set("PJSIP/219-00000007", "CALLERID(name)=Extra") in new stack
-- Executing [s@macro-user-callerid:30] Set("PJSIP/219-00000007", "CDR(cnum)=219") in new stack
-- Executing [s@macro-user-callerid:31] Set("PJSIP/219-00000007", "CDR(cnam)=Extra") in new stack
-- Executing [s@macro-user-callerid:32] Set("PJSIP/219-00000007", "CHANNEL(language)=en") in new stack
-- Executing [199@from-internal:2] Macro("PJSIP/219-00000007", "blkvm-setifempty,") in new stack
-- Executing [s@macro-blkvm-setifempty:1] GotoIf("PJSIP/219-00000007", "1?init") in new stack
-- Goto (macro-blkvm-setifempty,s,4)
-- Executing [s@macro-blkvm-setifempty:4] Set("PJSIP/219-00000007", "__BLKVM_CHANNEL=PJSIP/219-00000007") in new stack
-- Executing [s@macro-blkvm-setifempty:5] Set("PJSIP/219-00000007", "SHARED(BLKVM,PJSIP/219-00000007)=TRUE") in new stack
-- Executing [s@macro-blkvm-setifempty:6] Set("PJSIP/219-00000007", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [s@macro-blkvm-setifempty:7] MacroExit("PJSIP/219-00000007", "") in new stack
-- Executing [199@from-internal:3] GotoIf("PJSIP/219-00000007", "1?skipov") in new stack
-- Goto (from-internal,199,6)
-- Executing [199@from-internal:6] Set("PJSIP/219-00000007", "RRNODEST=") in new stack
-- Executing [199@from-internal:7] Set("PJSIP/219-00000007", "__NODEST=199") in new stack
-- Executing [199@from-internal:8] GosubIf("PJSIP/219-00000007", "0?sub-rgsetcid,s,1()") in new stack
-- Executing [199@from-internal:9] Gosub("PJSIP/219-00000007", "sub-record-check,s,1(rg,199,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/219-00000007", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/219-00000007", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/219-00000007", "NOW=1493935360") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/219-00000007", "__DAY=04") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/219-00000007", "__MONTH=05") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/219-00000007", "__YEAR=2017") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/219-00000007", "__TIMESTR=20170504-170240") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/219-00000007", "__FROMEXTEN=219") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/219-00000007", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/219-00000007", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/219-00000007", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/219-00000007", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/219-00000007", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/219-00000007", "2?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/219-00000007", "0?sub-record-check,rg,1") in new stack
-- Executing [s@sub-record-check:18] NoOp("PJSIP/219-00000007", "Generic rg Recording Check - 219 199") in new stack
-- Executing [s@sub-record-check:19] Gosub("PJSIP/219-00000007", "recordcheck,1(dontcare,rg,199)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/219-00000007", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/219-00000007", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("PJSIP/219-00000007", "") in new stack
-- Executing [s@sub-record-check:20] Return("PJSIP/219-00000007", "") in new stack
-- Executing [199@from-internal:10] Set("PJSIP/219-00000007", "RingGroupMethod=ringall") in new stack
-- Executing [199@from-internal:11] Macro("PJSIP/219-00000007", "dial,20,tr,201-214") in new stack
-- Executing [s@macro-dial:1] GotoIf("PJSIP/219-00000007", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("PJSIP/219-00000007", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is 'Extra' number is '219'
> dialparties.agi: USE_CONFIRMATION: 'FALSE'
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'ringall'
-- dialparties.agi: Added extension 201 to extension map
-- dialparties.agi: Added extension 214 to extension map
-- dialparties.agi: Extension 201 cf is disabled
-- dialparties.agi: Extension 214 cf is disabled
-- dialparties.agi: Extension 201 do not disturb is disabled
-- dialparties.agi: Extension 214 do not disturb is disabled
> dialparties.agi: extnum 201 has: cw: 1; hascfb: 0 [] hascfu: 0 []
-- dialparties.agi: dbset CALLTRACE/201 to 219
> dialparties.agi: extnum 214 has: cw: 1; hascfb: 0 [] hascfu: 0 []
-- dialparties.agi: dbset CALLTRACE/214 to 219
-- dialparties.agi: Filtered ARG3: 201-214
> dialparties.agi: NODEST: 199 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
> dialparties.agi: NODEST: 199 blkvm enabled macro already in dialopts: trM(auto-blkvm)
-- <PJSIP/219-00000007>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("PJSIP/219-00000007", "PJSIP/201&PJSIP/214,20,trM(auto-blkvm)") in new stack
-- Called PJSIP/201
-- Called PJSIP/214
-- PJSIP/201-00000008 connected line has changed. Saving it until answer for PJSIP/219-00000007
-- PJSIP/214-00000009 connected line has changed. Saving it until answer for PJSIP/219-00000007
-- PJSIP/201-00000008 is ringing
-- PJSIP/214-00000009 is ringing
== Spawn extension (macro-dial, s, 7) exited non-zero on 'PJSIP/219-00000007' in macro 'dial'
== Spawn extension (from-internal, 199, 11) exited non-zero on 'PJSIP/219-00000007'
-- Executing [h@from-internal:1] Hangup("PJSIP/219-00000007", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/219-00000007'
IncrediblePBX*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
I'll post a reply with the output of a failed call to the ring group.