Hi VitalPBX Team,
I’m trying to click to call via API with format
API
curl --location -g --request POST 'https://example.com/api/v2/core/click_to_call' \
--header 'app-key: 2eb814c139fc52ad1740ac6ac1874efe' \
--form 'caller="9081375161302"' \
--form 'callee="401"' \
--form 'cid_name="401"' \
--form 'cid_number="401"' \
--form 'myvar="XZYZADSSADASDSADASDADSADASD"' \
--form 'cos_id=1'
9081375161302 is GSM Number (my cellphone)
401 is Queue
When the destination number is busy, it will go to
[failed@cos-all:1] NoOp("OutgoingSpoolFailed", "More than on digit pattern")
And if you look at the CDR there are 3 records, it should be 1 record.
CDR
Meanwhile, if “9081375161302” is connected and enters the Queue → connects to the CDR agent and Log Normal.
Do you have a solution so that when the call is not connected it will not go to failed@cos-all ?
Can you fix the CDR too?
Here’s the log attachment
Attempting call on Local/9081375161302@click-to-call/n for 401@cos-all:1 (Retry 1)
-- Called 9081375161302@click-to-call/n
-- Executing [9081375161302@click-to-call:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "SUB: Executing Click to Call") in new stack
-- Executing [9081375161302@click-to-call:2] Set("Local/9081375161302@click-to-call-000000b8;2", "__SKIP_ANSWER=yes") in new stack
-- Executing [9081375161302@click-to-call:3] Set("Local/9081375161302@click-to-call-000000b8;2", "__FROM_QUEUE_CALLBACK=yes") in new stack
-- Executing [9081375161302@click-to-call:4] Goto("Local/9081375161302@click-to-call-000000b8;2", "cos-all,9081375161302,1") in new stack
-- Goto (cos-all,9081375161302,1)
-- Executing [9081375161302@cos-all:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "More than on digit pattern") in new stack
-- Executing [9081375161302@cos-all:2] Gosub("Local/9081375161302@click-to-call-000000b8;2", "s,1(9081375161302)") in new stack
-- Executing [s@cos-all:1] Set("Local/9081375161302@click-to-call-000000b8;2", "EXTENSION=9081375161302") in new stack
-- Executing [s@cos-all:2] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Dialing 9081375161302 from 401") in new stack
-- Executing [s@cos-all:3] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-set-global-vars,s,1(50d5ca97b0fee8db,9081375161302,parking-1)") in new stack
-- Executing [s@sub-set-global-vars:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Setting Global Vars") in new stack
-- Executing [s@sub-set-global-vars:2] Set("Local/9081375161302@click-to-call-000000b8;2", "TENANT_PATH=50d5ca97b0fee8db") in new stack
-- Executing [s@sub-set-global-vars:3] Set("Local/9081375161302@click-to-call-000000b8;2", "PREFIX=") in new stack
-- Executing [s@sub-set-global-vars:4] Set("Local/9081375161302@click-to-call-000000b8;2", "__PICKUPMARK=9081375161302") in new stack
-- Executing [s@sub-set-global-vars:5] Set("Local/9081375161302@click-to-call-000000b8;2", "__PARKINGLOT=parking-1") in new stack
-- Executing [s@sub-set-global-vars:6] Set("Local/9081375161302@click-to-call-000000b8;2", "__DYNAMIC_FEATURES=custom-features") in new stack
-- Executing [s@sub-set-global-vars:7] Set("Local/9081375161302@click-to-call-000000b8;2", "ICALL=no") in new stack
-- Executing [s@sub-set-global-vars:8] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@cos-all:4] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-set-call-vars,s,1(50d5ca97b0fee8db,9081375161302,1,cos-all,ARS-all)") in new stack
-- Executing [s@sub-set-call-vars:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Setting Call Vars") in new stack
-- Executing [s@sub-set-call-vars:2] Set("Local/9081375161302@click-to-call-000000b8;2", "_TENANT=50d5ca97b0fee8db") in new stack
-- Executing [s@sub-set-call-vars:3] Set("Local/9081375161302@click-to-call-000000b8;2", "_CALL_DESTINATION=9081375161302") in new stack
-- Executing [s@sub-set-call-vars:4] Set("Local/9081375161302@click-to-call-000000b8;2", "_COS_ID=1") in new stack
-- Executing [s@sub-set-call-vars:5] Set("Local/9081375161302@click-to-call-000000b8;2", "_COS_NAME=cos-all") in new stack
-- Executing [s@sub-set-call-vars:6] Set("Local/9081375161302@click-to-call-000000b8;2", "__TRANSFER_CONTEXT=cos-all") in new stack
-- Executing [s@sub-set-call-vars:7] Set("Local/9081375161302@click-to-call-000000b8;2", "_ARS=ARS-all") in new stack
-- Executing [s@sub-set-call-vars:8] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(tenant)=vitalpbx") in new stack
-- Executing [s@sub-set-call-vars:9] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(destination)=9081375161302") in new stack
-- Executing [s@sub-set-call-vars:10] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(trunk)=") in new stack
-- Executing [s@sub-set-call-vars:11] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(did)=") in new stack
-- Executing [s@sub-set-call-vars:12] Set("Local/9081375161302@click-to-call-000000b8;2", "__CALLID=1643180833.1071") in new stack
-- Executing [s@sub-set-call-vars:13] ExecIf("Local/9081375161302@click-to-call-000000b8;2", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@sub-set-call-vars:14] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@cos-all:5] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-construct-cid,s,1") in new stack
-- Executing [s@sub-construct-cid:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Building CID") in new stack
-- Executing [s@sub-construct-cid:2] Set("Local/9081375161302@click-to-call-000000b8;2", "_CALL_SOURCE=401") in new stack
-- Executing [s@sub-construct-cid:3] Set("Local/9081375161302@click-to-call-000000b8;2", "_CS=401") in new stack
-- Executing [s@sub-construct-cid:4] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?return") in new stack
-- Executing [s@sub-construct-cid:5] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-get-device-tree,s,1") in new stack
-- Executing [s@sub-get-device-tree:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Configuring Device Tree") in new stack
-- Executing [s@sub-get-device-tree:2] Set("Local/9081375161302@click-to-call-000000b8;2", "DEV_TECHNOLOGY=Local") in new stack
-- Executing [s@sub-get-device-tree:3] GosubIf("Local/9081375161302@click-to-call-000000b8;2", "1?s-local,1") in new stack
-- Executing [s-local@sub-get-device-tree:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Try to determianate caller technology 401") in new stack
-- Executing [s-local@sub-get-device-tree:2] Set("Local/9081375161302@click-to-call-000000b8;2", "TECH_DETERMINATED=no") in new stack
[2022-01-26 14:07:13] WARNING[4219][C-000000d7]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: 'dahdi_channel'
-- Executing [s-local@sub-get-device-tree:3] Set("Local/9081375161302@click-to-call-000000b8;2", "DEV_TECHNOLOGY=Local") in new stack
-- Executing [s-local@sub-get-device-tree:4] Set("Local/9081375161302@click-to-call-000000b8;2", "DEV_TECHNOLOGY=Local") in new stack
-- Executing [s-local@sub-get-device-tree:5] Set("Local/9081375161302@click-to-call-000000b8;2", "DEV_TECHNOLOGY=Local") in new stack
-- Executing [s-local@sub-get-device-tree:6] Set("Local/9081375161302@click-to-call-000000b8;2", "TECH_DETERMINATED=no") in new stack
-- Executing [s-local@sub-get-device-tree:7] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@sub-get-device-tree:4] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "1?return") in new stack
-- Goto (sub-get-device-tree,s,15)
-- Executing [s@sub-get-device-tree:15] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@sub-construct-cid:6] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "1?return") in new stack
-- Goto (sub-construct-cid,s,11)
-- Executing [s@sub-construct-cid:11] NoOp("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@sub-construct-cid:12] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(source)=401") in new stack
-- Executing [s@sub-construct-cid:13] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@cos-all:6] Gosub("Local/9081375161302@click-to-call-000000b8;2", "set-global-tenant-vars,s,1") in new stack
-- Executing [s@set-global-tenant-vars:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Setting Global Vars for vitalpbx Tenant") in new stack
-- Executing [s@set-global-tenant-vars:2] Set("Local/9081375161302@click-to-call-000000b8;2", "__TENANT_PATH=50d5ca97b0fee8db") in new stack
-- Executing [s@set-global-tenant-vars:3] Set("Local/9081375161302@click-to-call-000000b8;2", "__TENANT_PREFIX=") in new stack
-- Executing [s@set-global-tenant-vars:4] Set("Local/9081375161302@click-to-call-000000b8;2", "__QUEUE_AGENTS_CONTEXT=queue-call-to-agents") in new stack
-- Executing [s@set-global-tenant-vars:5] Set("Local/9081375161302@click-to-call-000000b8;2", "__FOLLOWME_CONTEXT=ext-followme") in new stack
-- Executing [s@set-global-tenant-vars:6] Set("Local/9081375161302@click-to-call-000000b8;2", "__HINTS_CONTEXT=extension-hints") in new stack
-- Executing [s@set-global-tenant-vars:7] Set("Local/9081375161302@click-to-call-000000b8;2", "__DEFAULT_COS=cos-all") in new stack
-- Executing [s@set-global-tenant-vars:8] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@cos-all:7] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?local-dialing") in new stack
-- Executing [s@cos-all:8] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Check if is an Emergency Call") in new stack
-- Executing [s@cos-all:9] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?emergency-calls,9081375161302,1") in new stack
-- Executing [s@cos-all:10] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-lockphone-check,s,1") in new stack
-- Executing [s@sub-lockphone-check:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "SUB: LOCK PHONE CHECK") in new stack
-- Executing [s@sub-lockphone-check:2] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:3] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:4] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:5] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:6] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?:unlock") in new stack
-- Goto (sub-lockphone-check,s,12)
-- Executing [s@sub-lockphone-check:12] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@cos-all:11] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-local-dialing,s,1") in new stack
-- Executing [s@sub-local-dialing:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Trying to determine if is a local extension") in new stack
-- Executing [s@sub-local-dialing:2] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?:return") in new stack
-- Goto (sub-local-dialing,s,5)
-- Executing [s@sub-local-dialing:5] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@cos-all:12] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?end-call") in new stack
-- Executing [s@cos-all:13] Goto("Local/9081375161302@click-to-call-000000b8;2", "cos-all-post,9081375161302,1") in new stack
-- Goto (cos-all-post,9081375161302,1)
-- Executing [9081375161302@cos-all-post:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Outbound Route: DEMO_WD") in new stack
-- Executing [9081375161302@cos-all-post:2] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-setup-call-type,s,1(outgoing)") in new stack
-- Executing [s@sub-setup-call-type:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Determinating Call Type") in new stack
-- Executing [s@sub-setup-call-type:2] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?return") in new stack
-- Executing [s@sub-setup-call-type:3] Gosub("Local/9081375161302@click-to-call-000000b8;2", "s-outgoing,1()") in new stack
-- Executing [s-outgoing@sub-setup-call-type:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Outgoing Call") in new stack
-- Executing [s-outgoing@sub-setup-call-type:2] Set("Local/9081375161302@click-to-call-000000b8;2", "__CALL_TYPE=3") in new stack
-- Executing [s-outgoing@sub-setup-call-type:3] Set("Local/9081375161302@click-to-call-000000b8;2", "__CALL_TYPE_LABEL=OUT") in new stack
-- Executing [s-outgoing@sub-setup-call-type:4] GosubIf("Local/9081375161302@click-to-call-000000b8;2", "0?s-transit,1") in new stack
-- Executing [s-outgoing@sub-setup-call-type:5] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@sub-setup-call-type:4] Set("Local/9081375161302@click-to-call-000000b8;2", "__CALL_TYPE_CONFIGURED=yes") in new stack
-- Executing [s@sub-setup-call-type:5] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(calltype)=3") in new stack
-- Executing [s@sub-setup-call-type:6] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [9081375161302@cos-all-post:3] Set("Local/9081375161302@click-to-call-000000b8;2", "DNID=5593081375161302") in new stack
-- Executing [9081375161302@cos-all-post:4] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Start to Dial Trunks") in new stack
-- Executing [9081375161302@cos-all-post:5] Goto("Local/9081375161302@click-to-call-000000b8;2", "s-17,1") in new stack
-- Goto (cos-all-post,s-17,1)
-- Executing [s-17@cos-all-post:1] Set("Local/9081375161302@click-to-call-000000b8;2", "__CONFIGURED_BY_TENANT=yes") in new stack
-- Executing [s-17@cos-all-post:2] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Overwrite CID (forced)") in new stack
-- Executing [s-17@cos-all-post:3] Set("Local/9081375161302@click-to-call-000000b8;2", "CALLERID(all)="WD" <1234>") in new stack
-- Executing [s-17@cos-all-post:4] Gosub("Local/9081375161302@click-to-call-000000b8;2", "trk-14,5593081375161302,1(from-trk-grp)") in new stack
-- Executing [5593081375161302@trk-14:1] Set("Local/9081375161302@click-to-call-000000b8;2", "_NTD=5593081375161302") in new stack
-- Executing [5593081375161302@trk-14:2] Gosub("Local/9081375161302@click-to-call-000000b8;2", "trk-14-dial,5593081375161302,1(from-trk-grp)") in new stack
-- Executing [5593081375161302@trk-14-dial:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Trunk: TrunkGlobal") in new stack
-- Executing [5593081375161302@trk-14-dial:2] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Dialing: 5593081375161302") in new stack
-- Executing [5593081375161302@trk-14-dial:3] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(trunk)=14") in new stack
-- Executing [5593081375161302@trk-14-dial:4] Set("Local/9081375161302@click-to-call-000000b8;2", "SKIP_HANGUP_AUDIOS=no") in new stack
-- Executing [5593081375161302@trk-14-dial:5] Gosub("Local/9081375161302@click-to-call-000000b8;2", "sub-setup-call-type,s,1(outgoing,no)") in new stack
-- Executing [s@sub-setup-call-type:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Determinating Call Type") in new stack
-- Executing [s@sub-setup-call-type:2] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?return") in new stack
-- Executing [s@sub-setup-call-type:3] Gosub("Local/9081375161302@click-to-call-000000b8;2", "s-outgoing,1(no)") in new stack
-- Executing [s-outgoing@sub-setup-call-type:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Outgoing Call") in new stack
-- Executing [s-outgoing@sub-setup-call-type:2] Set("Local/9081375161302@click-to-call-000000b8;2", "__CALL_TYPE=3") in new stack
-- Executing [s-outgoing@sub-setup-call-type:3] Set("Local/9081375161302@click-to-call-000000b8;2", "__CALL_TYPE_LABEL=OUT") in new stack
-- Executing [s-outgoing@sub-setup-call-type:4] GosubIf("Local/9081375161302@click-to-call-000000b8;2", "0?s-transit,1") in new stack
-- Executing [s-outgoing@sub-setup-call-type:5] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s@sub-setup-call-type:4] Set("Local/9081375161302@click-to-call-000000b8;2", "__CALL_TYPE_CONFIGURED=yes") in new stack
-- Executing [s@sub-setup-call-type:5] Set("Local/9081375161302@click-to-call-000000b8;2", "CDR(calltype)=3") in new stack
-- Executing [s@sub-setup-call-type:6] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [5593081375161302@trk-14-dial:6] ExecIf("Local/9081375161302@click-to-call-000000b8;2", "0?Set(CALLERID(all)=):") in new stack
-- Executing [5593081375161302@trk-14-dial:7] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "1?:after-val-sim-calls") in new stack
-- Executing [5593081375161302@trk-14-dial:8] Set("Local/9081375161302@click-to-call-000000b8;2", "MAX_TENANT_CALLS=0") in new stack
-- Executing [5593081375161302@trk-14-dial:9] Set("Local/9081375161302@click-to-call-000000b8;2", "TENANT_NAME=vitalpbx") in new stack
-- Executing [5593081375161302@trk-14-dial:10] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?:after-val-sim-calls") in new stack
-- Goto (trk-14-dial,5593081375161302,18)
-- Executing [5593081375161302@trk-14-dial:18] NoOp("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [5593081375161302@trk-14-dial:19] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Configuring Trunk Parameters") in new stack
-- Executing [5593081375161302@trk-14-dial:20] ExecIf("Local/9081375161302@click-to-call-000000b8;2", "1?Set(CHANNEL(musicclass)=default):") in new stack
-- Executing [5593081375161302@trk-14-dial:21] Set("Local/9081375161302@click-to-call-000000b8;2", "__TRUNK_MOH_SET=yes") in new stack
-- Executing [5593081375161302@trk-14-dial:22] Set("Local/9081375161302@click-to-call-000000b8;2", "__TRKDIALOPTIONS=kKt") in new stack
-- Executing [5593081375161302@trk-14-dial:23] Set("Local/9081375161302@click-to-call-000000b8;2", "ORIGINATOR=401") in new stack
-- Executing [5593081375161302@trk-14-dial:24] Set("Local/9081375161302@click-to-call-000000b8;2", "RING_TIME=90") in new stack
-- Executing [5593081375161302@trk-14-dial:25] Set("Local/9081375161302@click-to-call-000000b8;2", "CALLED=5593081375161302") in new stack
-- Executing [5593081375161302@trk-14-dial:26] Set("Local/9081375161302@click-to-call-000000b8;2", "TRUNK_ENDPOINT=sipses") in new stack
-- Executing [5593081375161302@trk-14-dial:27] Set("Local/9081375161302@click-to-call-000000b8;2", "__CIDNUM=1234") in new stack
-- Executing [5593081375161302@trk-14-dial:28] Set("Local/9081375161302@click-to-call-000000b8;2", "__CIDNAME=WD") in new stack
-- Executing [5593081375161302@trk-14-dial:29] Set("Local/9081375161302@click-to-call-000000b8;2", "FORCE_RECORDING=no") in new stack
-- Executing [5593081375161302@trk-14-dial:30] Set("Local/9081375161302@click-to-call-000000b8;2", "FILTERED_NUMBER=5593081375161302") in new stack
-- Executing [5593081375161302@trk-14-dial:31] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?:post-fax") in new stack
-- Goto (trk-14-dial,5593081375161302,34)
-- Executing [5593081375161302@trk-14-dial:34] NoOp("Local/9081375161302@click-to-call-000000b8;2", "End Fax Section") in new stack
-- Executing [5593081375161302@trk-14-dial:35] Dial("Local/9081375161302@click-to-call-000000b8;2", "SIP/sipses/5593081375161302,90,kKtU(sub-call-recording^50d5ca97b0fee8db^401^5593081375161302^no)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/sipses/5593081375161302
> 0x7f94e412a460 -- Strict RTP learning after remote address set to: 147.139.137.197:11478
-- SIP/sipses-00000064 is making progress passing it to Local/9081375161302@click-to-call-000000b8;2
-- Local/9081375161302@click-to-call-000000b8;1 is making progress
> 0x7f94e412a460 -- Strict RTP switching to RTP target address 147.139.137.197:11478 as source
[2022-01-26 14:07:21] NOTICE[19036]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'OPTIONS' from '"asterisk" <sip:asterisk@147.139.137.197>' failed for '147.139.137.197:5160' (callid: 483d902600247f632838898c1bce993d@147.139.137.197:5160) - No matching endpoint found
> 0x7f94e412a460 -- Strict RTP learning complete - Locking on source address 147.139.137.197:11478
-- SIP/sipses-00000064 redirecting info has changed, passing it to Local/9081375161302@click-to-call-000000b8;2
-- SIP/sipses-00000064 redirecting info has changed, passing it to Local/9081375161302@click-to-call-000000b8;2
-- SIP/sipses-00000064 redirecting info has changed, passing it to Local/9081375161302@click-to-call-000000b8;2
-- SIP/sipses-00000064 is busy
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [5593081375161302@trk-14-dial:36] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?:after-fax") in new stack
-- Goto (trk-14-dial,5593081375161302,39)
-- Executing [5593081375161302@trk-14-dial:39] NoOp("Local/9081375161302@click-to-call-000000b8;2", "End Fax Section") in new stack
-- Executing [5593081375161302@trk-14-dial:40] NoOp("Local/9081375161302@click-to-call-000000b8;2", "After Dial") in new stack
-- Executing [5593081375161302@trk-14-dial:41] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "1?come-back") in new stack
-- Goto (trk-14-dial,5593081375161302,43)
-- Executing [5593081375161302@trk-14-dial:43] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [5593081375161302@trk-14:3] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "1?come-back") in new stack
-- Goto (trk-14,5593081375161302,5)
-- Executing [5593081375161302@trk-14:5] Return("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [s-17@cos-all-post:5] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Hangup Cause: 19, Dial Status: BUSY") in new stack
-- Executing [s-17@cos-all-post:6] ForkCDR("Local/9081375161302@click-to-call-000000b8;2", "e") in new stack
-- Executing [s-17@cos-all-post:7] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "0?end_call") in new stack
-- Executing [s-17@cos-all-post:8] GotoIf("Local/9081375161302@click-to-call-000000b8;2", "1?app-termination,hangup,1") in new stack
-- Goto (app-termination,hangup,1)
-- Executing [hangup@app-termination:1] NoOp("Local/9081375161302@click-to-call-000000b8;2", "Termination: Hangup Call") in new stack
-- Executing [hangup@app-termination:2] NoCDR("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
-- Executing [hangup@app-termination:3] DumpChan("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
================================================================================
-- Executing [hangup@app-termination:4] Hangup("Local/9081375161302@click-to-call-000000b8;2", "") in new stack
== Spawn extension (app-termination, hangup, 4) exited non-zero on 'Local/9081375161302@click-to-call-000000b8;2'
-- Executing [failed@cos-all:1] NoOp("OutgoingSpoolFailed", "More than on digit pattern") in new stack
-- Executing [failed@cos-all:2] Gosub("OutgoingSpoolFailed", "s,1(failed)") in new stack
-- Executing [s@cos-all:1] Set("OutgoingSpoolFailed", "EXTENSION=failed") in new stack
-- Executing [s@cos-all:2] NoOp("OutgoingSpoolFailed", "Dialing failed from 401") in new stack
-- Executing [s@cos-all:3] Gosub("OutgoingSpoolFailed", "sub-set-global-vars,s,1(50d5ca97b0fee8db,failed,parking-1)") in new stack
-- Executing [s@sub-set-global-vars:1] NoOp("OutgoingSpoolFailed", "Setting Global Vars") in new stack
-- Executing [s@sub-set-global-vars:2] Set("OutgoingSpoolFailed", "TENANT_PATH=50d5ca97b0fee8db") in new stack
-- Executing [s@sub-set-global-vars:3] Set("OutgoingSpoolFailed", "PREFIX=") in new stack
-- Executing [s@sub-set-global-vars:4] Set("OutgoingSpoolFailed", "__PICKUPMARK=failed") in new stack
-- Executing [s@sub-set-global-vars:5] Set("OutgoingSpoolFailed", "__PARKINGLOT=parking-1") in new stack
-- Executing [s@sub-set-global-vars:6] Set("OutgoingSpoolFailed", "__DYNAMIC_FEATURES=custom-features") in new stack
-- Executing [s@sub-set-global-vars:7] Set("OutgoingSpoolFailed", "ICALL=no") in new stack
-- Executing [s@sub-set-global-vars:8] Return("OutgoingSpoolFailed", "") in new stack
-- Executing [s@cos-all:4] Gosub("OutgoingSpoolFailed", "sub-set-call-vars,s,1(50d5ca97b0fee8db,failed,1,cos-all,ARS-all)") in new stack
-- Executing [s@sub-set-call-vars:1] NoOp("OutgoingSpoolFailed", "Setting Call Vars") in new stack
-- Executing [s@sub-set-call-vars:2] Set("OutgoingSpoolFailed", "_TENANT=50d5ca97b0fee8db") in new stack
-- Executing [s@sub-set-call-vars:3] Set("OutgoingSpoolFailed", "_CALL_DESTINATION=failed") in new stack
-- Executing [s@sub-set-call-vars:4] Set("OutgoingSpoolFailed", "_COS_ID=1") in new stack
-- Executing [s@sub-set-call-vars:5] Set("OutgoingSpoolFailed", "_COS_NAME=cos-all") in new stack
-- Executing [s@sub-set-call-vars:6] Set("OutgoingSpoolFailed", "__TRANSFER_CONTEXT=cos-all") in new stack
-- Executing [s@sub-set-call-vars:7] Set("OutgoingSpoolFailed", "_ARS=ARS-all") in new stack
-- Executing [s@sub-set-call-vars:8] Set("OutgoingSpoolFailed", "CDR(tenant)=vitalpbx") in new stack
-- Executing [s@sub-set-call-vars:9] Set("OutgoingSpoolFailed", "CDR(destination)=failed") in new stack
-- Executing [s@sub-set-call-vars:10] Set("OutgoingSpoolFailed", "CDR(trunk)=") in new stack
-- Executing [s@sub-set-call-vars:11] Set("OutgoingSpoolFailed", "CDR(did)=") in new stack
-- Executing [s@sub-set-call-vars:12] Set("OutgoingSpoolFailed", "__CALLID=1643180858.1073") in new stack
-- Executing [s@sub-set-call-vars:13] ExecIf("OutgoingSpoolFailed", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@sub-set-call-vars:14] Return("OutgoingSpoolFailed", "") in new stack
-- Executing [s@cos-all:5] Gosub("OutgoingSpoolFailed", "sub-construct-cid,s,1") in new stack
-- Executing [s@sub-construct-cid:1] NoOp("OutgoingSpoolFailed", "Building CID") in new stack
-- Executing [s@sub-construct-cid:2] Set("OutgoingSpoolFailed", "_CALL_SOURCE=401") in new stack
-- Executing [s@sub-construct-cid:3] Set("OutgoingSpoolFailed", "_CS=401") in new stack
-- Executing [s@sub-construct-cid:4] GotoIf("OutgoingSpoolFailed", "0?return") in new stack
-- Executing [s@sub-construct-cid:5] Gosub("OutgoingSpoolFailed", "sub-get-device-tree,s,1") in new stack
-- Executing [s@sub-get-device-tree:1] NoOp("OutgoingSpoolFailed", "Configuring Device Tree") in new stack
-- Executing [s@sub-get-device-tree:2] Set("OutgoingSpoolFailed", "DEV_TECHNOLOGY=NULL") in new stack
-- Executing [s@sub-get-device-tree:3] GosubIf("OutgoingSpoolFailed", "0?s-local,1") in new stack
-- Executing [s@sub-get-device-tree:4] GotoIf("OutgoingSpoolFailed", "0?return") in new stack
-- Executing [s@sub-get-device-tree:5] GotoIf("OutgoingSpoolFailed", "0?pjsip") in new stack
-- Executing [s@sub-get-device-tree:6] GotoIf("OutgoingSpoolFailed", "0?:digital") in new stack
-- Goto (sub-get-device-tree,s,12)
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: 'peername'
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: 'peername'
-- Executing [s@sub-get-device-tree:12] Set("OutgoingSpoolFailed", "DEV_USER=401") in new stack
-- Executing [s@sub-get-device-tree:13] Set("OutgoingSpoolFailed", "_INTERFACE=NULL/401") in new stack
-- Executing [s@sub-get-device-tree:14] Set("OutgoingSpoolFailed", "DEV_TREE=devices/NULL/401") in new stack
-- Executing [s@sub-get-device-tree:15] Return("OutgoingSpoolFailed", "") in new stack
-- Executing [s@sub-construct-cid:6] GotoIf("OutgoingSpoolFailed", "0?return") in new stack
-- Executing [s@sub-construct-cid:7] Set("OutgoingSpoolFailed", "_CALL_SOURCE=401") in new stack
-- Executing [s@sub-construct-cid:8] Set("OutgoingSpoolFailed", "_CS=401") in new stack
-- Executing [s@sub-construct-cid:9] ExecIf("OutgoingSpoolFailed", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@sub-construct-cid:10] Set("OutgoingSpoolFailed", "_CID_CONSTRUCTED=yes") in new stack
-- Executing [s@sub-construct-cid:11] NoOp("OutgoingSpoolFailed", "") in new stack
-- Executing [s@sub-construct-cid:12] Set("OutgoingSpoolFailed", "CDR(source)=401") in new stack
-- Executing [s@sub-construct-cid:13] Return("OutgoingSpoolFailed", "") in new stack
-- Executing [s@cos-all:6] Gosub("OutgoingSpoolFailed", "set-global-tenant-vars,s,1") in new stack
-- Executing [s@set-global-tenant-vars:1] NoOp("OutgoingSpoolFailed", "Setting Global Vars for vitalpbx Tenant") in new stack
-- Executing [s@set-global-tenant-vars:2] Set("OutgoingSpoolFailed", "__TENANT_PATH=50d5ca97b0fee8db") in new stack
-- Executing [s@set-global-tenant-vars:3] Set("OutgoingSpoolFailed", "__TENANT_PREFIX=") in new stack
-- Executing [s@set-global-tenant-vars:4] Set("OutgoingSpoolFailed", "__QUEUE_AGENTS_CONTEXT=queue-call-to-agents") in new stack
-- Executing [s@set-global-tenant-vars:5] Set("OutgoingSpoolFailed", "__FOLLOWME_CONTEXT=ext-followme") in new stack
-- Executing [s@set-global-tenant-vars:6] Set("OutgoingSpoolFailed", "__HINTS_CONTEXT=extension-hints") in new stack
-- Executing [s@set-global-tenant-vars:7] Set("OutgoingSpoolFailed", "__DEFAULT_COS=cos-all") in new stack
-- Executing [s@set-global-tenant-vars:8] Return("OutgoingSpoolFailed", "") in new stack
-- Executing [s@cos-all:7] GotoIf("OutgoingSpoolFailed", "0?local-dialing") in new stack
-- Executing [s@cos-all:8] NoOp("OutgoingSpoolFailed", "Check if is an Emergency Call") in new stack
-- Executing [s@cos-all:9] GotoIf("OutgoingSpoolFailed", "0?emergency-calls,failed,1") in new stack
-- Executing [s@cos-all:10] Gosub("OutgoingSpoolFailed", "sub-lockphone-check,s,1") in new stack
-- Executing [s@sub-lockphone-check:1] NoOp("OutgoingSpoolFailed", "SUB: LOCK PHONE CHECK") in new stack
-- Executing [s@sub-lockphone-check:2] GotoIf("OutgoingSpoolFailed", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:3] GotoIf("OutgoingSpoolFailed", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:4] GotoIf("OutgoingSpoolFailed", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:5] GotoIf("OutgoingSpoolFailed", "0?unlock") in new stack
-- Executing [s@sub-lockphone-check:6] GotoIf("OutgoingSpoolFailed", "0?:unlock") in new stack
-- Goto (sub-lockphone-check,s,12)
-- Executing [s@sub-lockphone-check:12] Return("OutgoingSpoolFailed", "") in new stack
-- Executing [s@cos-all:11] Gosub("OutgoingSpoolFailed", "sub-local-dialing,s,1") in new stack
-- Executing [s@sub-local-dialing:1] NoOp("OutgoingSpoolFailed", "Trying to determine if is a local extension") in new stack
-- Executing [s@sub-local-dialing:2] GotoIf("OutgoingSpoolFailed", "0?:return") in new stack
-- Goto (sub-local-dialing,s,5)
-- Executing [s@sub-local-dialing:5] Return("OutgoingSpoolFailed", "") in new stack
-- Executing [s@cos-all:12] GotoIf("OutgoingSpoolFailed", "0?end-call") in new stack
-- Executing [s@cos-all:13] Goto("OutgoingSpoolFailed", "cos-all-post,failed,1") in new stack
-- Goto (cos-all-post,failed,1)
-- Channel 'OutgoingSpoolFailed' sent to invalid extension: context,exten,priority=cos-all-post,failed,1
-- Executing [i@cos-all-post:1] NoOp("OutgoingSpoolFailed", "Invalid dial on post section") in new stack
-- Executing [i@cos-all-post:2] ForkCDR("OutgoingSpoolFailed", "e") in new stack
-- Executing [i@cos-all-post:3] ExecIf("OutgoingSpoolFailed", "0?Hangup():") in new stack
-- Executing [i@cos-all-post:4] Goto("OutgoingSpoolFailed", "invalid-dest-cos,s,1") in new stack
-- Goto (invalid-dest-cos,s,1)
-- Executing [s@invalid-dest-cos:1] NoOp("OutgoingSpoolFailed", "Invalid Route Dialed in COS") in new stack
-- Executing [s@invalid-dest-cos:2] GotoIf("OutgoingSpoolFailed", "0?end") in new stack
-- Executing [s@invalid-dest-cos:3] GotoIf("OutgoingSpoolFailed", "0?end") in new stack
-- Executing [s@invalid-dest-cos:4] Playback("OutgoingSpoolFailed", "silence/1&cannot-complete-as-dialed&check-number-dial-again") in new stack
[2022-01-26 14:07:38] ERROR[4218][C-000000d8]: channel.c:5671 set_format: Unable to set format because channel OutgoingSpoolFailed supports no formats
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: file.c:1262 ast_streamfile: Unable to open silence/1 (format (none)): Function not implemented
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: app_playback.c:497 playback_exec: Playback failed on OutgoingSpoolFailed for silence/1&cannot-complete-as-dialed&check-number-dial-again
[2022-01-26 14:07:38] ERROR[4218][C-000000d8]: channel.c:5671 set_format: Unable to set format because channel OutgoingSpoolFailed supports no formats
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: file.c:1262 ast_streamfile: Unable to open cannot-complete-as-dialed (format (none)): Function not implemented
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: app_playback.c:497 playback_exec: Playback failed on OutgoingSpoolFailed for silence/1&cannot-complete-as-dialed&check-number-dial-again
[2022-01-26 14:07:38] ERROR[4218][C-000000d8]: channel.c:5671 set_format: Unable to set format because channel OutgoingSpoolFailed supports no formats
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: file.c:1262 ast_streamfile: Unable to open check-number-dial-again (format (none)): Function not implemented
[2022-01-26 14:07:38] WARNING[4218][C-000000d8]: app_playback.c:497 playback_exec: Playback failed on OutgoingSpoolFailed for silence/1&cannot-complete-as-dialed&check-number-dial-again
-- Executing [s@invalid-dest-cos:5] Hangup("OutgoingSpoolFailed", "") in new stack
== Spawn extension (invalid-dest-cos, s, 5) exited non-zero on 'OutgoingSpoolFailed'
[2022-01-26 14:07:38] NOTICE[4218][C-000000d8]: pbx_spool.c:450 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
[2022-01-26 14:07:38] NOTICE[4218][C-000000d8]: pbx_spool.c:453 attempt_thread: Queued call to Local/9081375161302@click-to-call/n expired without completion after 0 attempts