Reply To: Queue is not working as expected

VitalPBX Community Support General Discussion Queue is not working as expected Reply To: Queue is not working as expected

    Zia UrRehman
    Participant
    Up
    0
    Down
    Session Recording Start for 10.0.1.240-vitalpbx [10.0.1.240] – 02-23-2021 05h00m16s
    Last login: Tue Feb 23 17:58:49 2021 from 10.0.10.2

    _ _ _ _ ______ ______ _ _
    | | | (_)_ | (_____ (____ \ \ / /
    | | | |_| |_ ____| |_____) )___) ) \/ /
    \ \/ /| | _)/ _ | | ____/ __ ( ) (
    \ / | | |_( ( | | | | | |__) ) /\ \
    \/ |_|\___)_||_|_|_| |______/_/ \_

    Version : 3.0.6-2
    Asterisk : Asterisk 18.1.1
    Linux Version : CentOS Linux release 7.9.2009 (Core)
    Welcome to : vitalpbx.local
    Uptime : 16 days
    Load : Last Minute: 0.87, Last 5 Minutes: 0.54, Last 15 Minutes: 0.88
    Users : 1 user,
    IP Address : 10.0.1.240 172.23.48.26
    Clock : Tue 2021-02-23 18:00:35 PKT
    NTP Sync. : no

    [root@vitalpbx ~]# asterisk -vvvvvrrrr
    Asterisk 18.1.1, Copyright (C) 1999 – 2018, Digium, Inc. and others.
    Created by Mark Spencer <markster@digium.com>
    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.
    =========================================================================
    Connected to Asterisk 18.1.1 currently running on vitalpbx (pid = 7312)
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    > 0x7f4c980b0300 — Strict RTP learning after remote address set to: 10.50.158.131:24148
    — Executing [7241724@trk-1-in:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Incoming call through: NayaTel SIP Trunk”) in new stack
    — Executing [7241724@trk-1-in:2] Set(“SIP/nayatel-sip-trunk-00000215”, “__TRUNK_ID=1”) in new stack
    — Executing [7241724@trk-1-in:3] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(trunk)=1”) in new stack
    — Executing [7241724@trk-1-in:4] Set(“SIP/nayatel-sip-trunk-00000215”, “__DID_NUMBER=7241724”) in new stack
    — Executing [7241724@trk-1-in:5] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(did)=7241724”) in new stack
    — Executing [7241724@trk-1-in:6] Set(“SIP/nayatel-sip-trunk-00000215”, “DID=7241724”) in new stack
    — Executing [7241724@trk-1-in:7] Goto(“SIP/nayatel-sip-trunk-00000215”, “default-trunk,7241724,1”) in new stack
    — Goto (default-trunk,7241724,1)
    — Executing [7241724@default-trunk:1] Gosub(“SIP/nayatel-sip-trunk-00000215”, “set-global-tenant-vars,s,1”) in new stack
    — Executing [s@set-global-tenant-vars:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Setting Global Vars for vitalpbx Tenant”) in new stack
    — Executing [s@set-global-tenant-vars:2] Set(“SIP/nayatel-sip-trunk-00000215”, “__TENANT_PATH=8c6785d40f7e83ba”) in new stack
    — Executing [s@set-global-tenant-vars:3] Set(“SIP/nayatel-sip-trunk-00000215”, “__TENANT_PREFIX=”) in new stack
    — Executing [s@set-global-tenant-vars:4] Set(“SIP/nayatel-sip-trunk-00000215”, “__QUEUE_AGENTS_CONTEXT=queue-call-to-agents”) in new stack
    — Executing [s@set-global-tenant-vars:5] Set(“SIP/nayatel-sip-trunk-00000215”, “__FOLLOWME_CONTEXT=ext-followme”) in new stack
    — Executing [s@set-global-tenant-vars:6] Set(“SIP/nayatel-sip-trunk-00000215”, “__HINTS_CONTEXT=extension-hints”) in new stack
    — Executing [s@set-global-tenant-vars:7] Set(“SIP/nayatel-sip-trunk-00000215”, “__DEFAULT_COS=cos-all”) in new stack
    — Executing [s@set-global-tenant-vars:8] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [7241724@default-trunk:2] Gosub(“SIP/nayatel-sip-trunk-00000215”, “sub-check-blacklist,s,1(8c6785d40f7e83ba,03146611018)”) in new stack
    — Executing [s@sub-check-blacklist:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Testing if 03146611018 is in Black List”) in new stack
    — Executing [s@sub-check-blacklist:2] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “0?banned”) in new stack
    — Executing [s@sub-check-blacklist:3] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [7241724@default-trunk:3] Gosub(“SIP/nayatel-sip-trunk-00000215”, “sub-setup-call-type,s,1(incoming)”) in new stack
    — Executing [s@sub-setup-call-type:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Determinating Call Type”) in new stack
    — Executing [s@sub-setup-call-type:2] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “0?return”) in new stack
    — Executing [s@sub-setup-call-type:3] Gosub(“SIP/nayatel-sip-trunk-00000215”, “s-incoming,1()”) in new stack
    — Executing [s-incoming@sub-setup-call-type:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Incoming Call”) in new stack
    — Executing [s-incoming@sub-setup-call-type:2] Set(“SIP/nayatel-sip-trunk-00000215”, “__CALL_TYPE=2”) in new stack
    — Executing [s-incoming@sub-setup-call-type:3] Set(“SIP/nayatel-sip-trunk-00000215”, “__CALL_TYPE_LABEL=IN”) in new stack
    — Executing [s-incoming@sub-setup-call-type:4] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [s@sub-setup-call-type:4] Set(“SIP/nayatel-sip-trunk-00000215”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
    — Executing [s@sub-setup-call-type:5] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(calltype)=2”) in new stack
    — Executing [s@sub-setup-call-type:6] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [7241724@default-trunk:4] Gosub(“SIP/nayatel-sip-trunk-00000215”, “dynamic-routing-in,s,1(03146611018)”) in new stack
    — Executing [s@dynamic-routing-in:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Test if must to apply dynamic routing”) in new stack
    — Executing [s@dynamic-routing-in:2] Set(“SIP/nayatel-sip-trunk-00000215”, “EXTERNAL_CALLER=03146611018”) in new stack
    — Executing [s@dynamic-routing-in:3] Set(“SIP/nayatel-sip-trunk-00000215”, “DYNROUTING_DM=0”) in new stack
    — Executing [s@dynamic-routing-in:4] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “1?gd”) in new stack
    — Goto (dynamic-routing-in,s,6)
    — Executing [s@dynamic-routing-in:6] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “0?:rb”) in new stack
    — Goto (dynamic-routing-in,s,11)
    — Executing [s@dynamic-routing-in:11] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [7241724@default-trunk:5] Goto(“SIP/nayatel-sip-trunk-00000215”, “incoming-calls,7241724,1”) in new stack
    — Goto (incoming-calls,7241724,1)
    — Executing [7241724@incoming-calls:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “INBOUND_ROUTE: NayaTel”) in new stack
    — Executing [7241724@incoming-calls:2] Set(“SIP/nayatel-sip-trunk-00000215”, “CHANNEL(language)=en”) in new stack
    — Executing [7241724@incoming-calls:3] Set(“SIP/nayatel-sip-trunk-00000215”, “__INBOUND_LANGUAGE=en”) in new stack
    — Executing [7241724@incoming-calls:4] Gosub(“SIP/nayatel-sip-trunk-00000215”, “sub-set-moh,s,1(default,YES)”) in new stack
    — Executing [s@sub-set-moh:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Configuring MoH Class”) in new stack
    — Executing [s@sub-set-moh:2] Set(“SIP/nayatel-sip-trunk-00000215”, “MOH_CLASS=default”) in new stack
    — Executing [s@sub-set-moh:3] Set(“SIP/nayatel-sip-trunk-00000215”, “MOH_FORCE=YES”) in new stack
    — Executing [s@sub-set-moh:4] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “0?end”) in new stack
    — Executing [s@sub-set-moh:5] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “1?:end”) in new stack
    — Executing [s@sub-set-moh:6] Set(“SIP/nayatel-sip-trunk-00000215”, “CHANNEL(musicclass)=default”) in new stack
    — Executing [s@sub-set-moh:7] Set(“SIP/nayatel-sip-trunk-00000215”, “__MOH_SET=YES”) in new stack
    — Executing [s@sub-set-moh:8] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [7241724@incoming-calls:5] Gosub(“SIP/nayatel-sip-trunk-00000215”, “sub-set-call-vars,s-incoming,1(03146611018,7241724,8c6785d40f7e83ba)”) in new stack
    — Executing [s-incoming@sub-set-call-vars:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Setting Incoming Call Vars”) in new stack
    — Executing [s-incoming@sub-set-call-vars:2] Set(“SIP/nayatel-sip-trunk-00000215”, “__CALLID=1614085244.1765”) in new stack
    — Executing [s-incoming@sub-set-call-vars:3] Set(“SIP/nayatel-sip-trunk-00000215”, “__INCOMING_SOURCE=03146611018”) in new stack
    — Executing [s-incoming@sub-set-call-vars:4] Set(“SIP/nayatel-sip-trunk-00000215”, “__INCOMING_DESTINATION=7241724”) in new stack
    — Executing [s-incoming@sub-set-call-vars:5] Set(“SIP/nayatel-sip-trunk-00000215”, “__INCOMING_TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s-incoming@sub-set-call-vars:6] Set(“SIP/nayatel-sip-trunk-00000215”, “__CALL_SOURCE=03146611018”) in new stack
    — Executing [s-incoming@sub-set-call-vars:7] Set(“SIP/nayatel-sip-trunk-00000215”, “__CS=03146611018”) in new stack
    — Executing [s-incoming@sub-set-call-vars:8] Set(“SIP/nayatel-sip-trunk-00000215”, “__CALL_DESTINATION=7241724”) in new stack
    — Executing [s-incoming@sub-set-call-vars:9] Set(“SIP/nayatel-sip-trunk-00000215”, “__TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s-incoming@sub-set-call-vars:10] Gosub(“SIP/nayatel-sip-trunk-00000215”, “app-incoming,1”) in new stack
    — Executing [app-incoming@sub-set-call-vars:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Incoming Call App CDR”) in new stack
    — Executing [app-incoming@sub-set-call-vars:2] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “1?:return”) in new stack
    — Executing [app-incoming@sub-set-call-vars:3] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(source)=03146611018”) in new stack
    — Executing [app-incoming@sub-set-call-vars:4] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(tenant)=vitalpbx”) in new stack
    — Executing [app-incoming@sub-set-call-vars:5] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(destination)=7241724”) in new stack
    — Executing [app-incoming@sub-set-call-vars:6] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [s-incoming@sub-set-call-vars:11] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [7241724@incoming-calls:6] Set(“SIP/nayatel-sip-trunk-00000215”, “ICALL=yes”) in new stack
    — Executing [7241724@incoming-calls:7] Goto(“SIP/nayatel-sip-trunk-00000215”, “ext-queues,199,1”) in new stack
    — Goto (ext-queues,199,1)
    — Executing [199@ext-queues:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Queue: CSR”) in new stack
    — Executing [199@ext-queues:2] Set(“SIP/nayatel-sip-trunk-00000215”, “__QUEUE_UID=1614085244.1765”) in new stack
    — Executing [199@ext-queues:3] Set(“SIP/nayatel-sip-trunk-00000215”, “__QUEUE_CALL=TRUE”) in new stack
    — Executing [199@ext-queues:4] Set(“SIP/nayatel-sip-trunk-00000215”, “__SKIP_AA=TRUE”) in new stack
    — Executing [199@ext-queues:5] Set(“SIP/nayatel-sip-trunk-00000215”, “__FROM_QUEUE_ID=2”) in new stack
    — Executing [199@ext-queues:6] Gosub(“SIP/nayatel-sip-trunk-00000215”, “sub-set-moh,s,1(default,YES)”) in new stack
    — Executing [s@sub-set-moh:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Configuring MoH Class”) in new stack
    — Executing [s@sub-set-moh:2] Set(“SIP/nayatel-sip-trunk-00000215”, “MOH_CLASS=default”) in new stack
    — Executing [s@sub-set-moh:3] Set(“SIP/nayatel-sip-trunk-00000215”, “MOH_FORCE=YES”) in new stack
    — Executing [s@sub-set-moh:4] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “0?end”) in new stack
    — Executing [s@sub-set-moh:5] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “1?:end”) in new stack
    — Executing [s@sub-set-moh:6] Set(“SIP/nayatel-sip-trunk-00000215”, “CHANNEL(musicclass)=default”) in new stack
    — Executing [s@sub-set-moh:7] Set(“SIP/nayatel-sip-trunk-00000215”, “__MOH_SET=YES”) in new stack
    — Executing [s@sub-set-moh:8] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [199@ext-queues:7] Set(“SIP/nayatel-sip-trunk-00000215”, “__QUEUE_NUMBER=199”) in new stack
    — Executing [199@ext-queues:8] Gosub(“SIP/nayatel-sip-trunk-00000215”, “sub-set-call-vars,app-incoming,1”) in new stack
    — Executing [app-incoming@sub-set-call-vars:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Incoming Call App CDR”) in new stack
    — Executing [app-incoming@sub-set-call-vars:2] GotoIf(“SIP/nayatel-sip-trunk-00000215”, “1?:return”) in new stack
    — Executing [app-incoming@sub-set-call-vars:3] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(source)=03146611018”) in new stack
    — Executing [app-incoming@sub-set-call-vars:4] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(tenant)=vitalpbx”) in new stack
    — Executing [app-incoming@sub-set-call-vars:5] Set(“SIP/nayatel-sip-trunk-00000215”, “CDR(destination)=7241724”) in new stack
    — Executing [app-incoming@sub-set-call-vars:6] Return(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [199@ext-queues:9] Playback(“SIP/nayatel-sip-trunk-00000215”, “/var/lib/vitalpbx/static/8c6785d40f7e83ba/recordings/c81e728d9d4c2f636f067f89cc14862c”) in new stack
    > 0x7f4c980b0300 — Strict RTP switching to RTP target address 10.50.158.131:24148 as source
    — <SIP/nayatel-sip-trunk-00000215> Playing ‘/var/lib/vitalpbx/static/8c6785d40f7e83ba/recordings/c81e728d9d4c2f636f067f89cc14862c.slin’ (language ‘en’)
    == Using SIP VIDEO TOS bits 136
    == Using SIP VIDEO CoS mark 4
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    > 0x7f4c98079550 — Strict RTP learning after remote address set to: 10.0.1.8:4172
    — Executing [03417315572@hot-desking-context:1] Set(“SIP/agent6-00000216”, “CDR(source)=agent6”) in new stack
    — Executing [03417315572@hot-desking-context:2] Set(“SIP/agent6-00000216”, “CDR(destination)=03417315572”) in new stack
    — Executing [03417315572@hot-desking-context:3] NoOp(“SIP/agent6-00000216”, “Hot Desking”) in new stack
    — Executing [03417315572@hot-desking-context:4] Set(“SIP/agent6-00000216”, “__TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [03417315572@hot-desking-context:5] Gosub(“SIP/agent6-00000216”, “sub-hot-desking-call,s,1(03417315572)”) in new stack
    — Executing [s@sub-hot-desking-call:1] NoOp(“SIP/agent6-00000216”, “Trying to connect call”) in new stack
    — Executing [s@sub-hot-desking-call:2] Set(“SIP/agent6-00000216”, “EXTENSION=03417315572”) in new stack
    — Executing [s@sub-hot-desking-call:3] Gosub(“SIP/agent6-00000216”, “sub-get-device-tree,s,1”) in new stack
    — Executing [s@sub-get-device-tree:1] NoOp(“SIP/agent6-00000216”, “Configuring Device Tree”) in new stack
    — Executing [s@sub-get-device-tree:2] Set(“SIP/agent6-00000216”, “DEV_TECHNOLOGY=SIP”) in new stack
    — Executing [s@sub-get-device-tree:3] GosubIf(“SIP/agent6-00000216”, “0?s-local,1”) in new stack
    — Executing [s@sub-get-device-tree:4] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s@sub-get-device-tree:5] GotoIf(“SIP/agent6-00000216”, “0?pjsip”) in new stack
    — Executing [s@sub-get-device-tree:6] GotoIf(“SIP/agent6-00000216”, “0?:digital”) in new stack
    — Goto (sub-get-device-tree,s,12)
    — Executing [s@sub-get-device-tree:12] Set(“SIP/agent6-00000216”, “DEV_USER=agent6”) in new stack
    — Executing [s@sub-get-device-tree:13] Set(“SIP/agent6-00000216”, “INTERFACE=SIP/agent6”) in new stack
    — Executing [s@sub-get-device-tree:14] Set(“SIP/agent6-00000216”, “DEV_TREE=devices/SIP/agent6”) in new stack
    — Executing [s@sub-get-device-tree:15] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@sub-hot-desking-call:4] Set(“SIP/agent6-00000216”, “ASSIGNED_EXTEN=128”) in new stack
    — Executing [s@sub-hot-desking-call:5] GotoIf(“SIP/agent6-00000216”, “0?no_exten_assigned,1”) in new stack
    — Executing [s@sub-hot-desking-call:6] GotoIf(“SIP/agent6-00000216”, “0?no_exten_assigned,1”) in new stack
    — Executing [s@sub-hot-desking-call:7] Set(“SIP/agent6-00000216”, “CALL_CONTEXT=cos-all”) in new stack
    — Executing [s@sub-hot-desking-call:8] Set(“SIP/agent6-00000216”, “CALLERID(num)=128”) in new stack
    — Executing [s@sub-hot-desking-call:9] Set(“SIP/agent6-00000216”, “__hotdesk_moh=default”) in new stack
    — Executing [s@sub-hot-desking-call:10] Set(“SIP/agent6-00000216”, “CHANNEL(namedpickupgroup)=1”) in new stack
    — Executing [s@sub-hot-desking-call:11] Goto(“SIP/agent6-00000216”, “cos-all,03417315572,1”) in new stack
    — Goto (cos-all,03417315572,1)
    — Executing [03417315572@cos-all:1] NoOp(“SIP/agent6-00000216”, “More than on digit pattern”) in new stack
    — Executing [03417315572@cos-all:2] Gosub(“SIP/agent6-00000216”, “s,1(03417315572)”) in new stack
    — Executing [s@cos-all:1] Set(“SIP/agent6-00000216”, “EXTENSION=03417315572”) in new stack
    — Executing [s@cos-all:2] NoOp(“SIP/agent6-00000216”, “Dialing 03417315572 from 128”) in new stack
    — Executing [s@cos-all:3] Gosub(“SIP/agent6-00000216”, “sub-set-global-vars,s,1(8c6785d40f7e83ba,03417315572,parking-1)”) in new stack
    — Executing [s@sub-set-global-vars:1] NoOp(“SIP/agent6-00000216”, “Setting Global Vars”) in new stack
    — Executing [s@sub-set-global-vars:2] Set(“SIP/agent6-00000216”, “TENANT_PATH=8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-set-global-vars:3] Set(“SIP/agent6-00000216”, “PREFIX=”) in new stack
    — Executing [s@sub-set-global-vars:4] Set(“SIP/agent6-00000216”, “__PICKUPMARK=03417315572”) in new stack
    — Executing [s@sub-set-global-vars:5] Set(“SIP/agent6-00000216”, “__PARKINGLOT=parking-1”) in new stack
    — Executing [s@sub-set-global-vars:6] Set(“SIP/agent6-00000216”, “__DYNAMIC_FEATURES=custom-features”) in new stack
    — Executing [s@sub-set-global-vars:7] Set(“SIP/agent6-00000216”, “ICALL=no”) in new stack
    — Executing [s@sub-set-global-vars:8] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@cos-all:4] Gosub(“SIP/agent6-00000216”, “sub-set-call-vars,s,1(8c6785d40f7e83ba,03417315572,1,cos-all,ARS-all)”) in new stack
    — Executing [s@sub-set-call-vars:1] NoOp(“SIP/agent6-00000216”, “Setting Call Vars”) in new stack
    — Executing [s@sub-set-call-vars:2] Set(“SIP/agent6-00000216”, “_TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-set-call-vars:3] Set(“SIP/agent6-00000216”, “_CALL_DESTINATION=03417315572”) in new stack
    — Executing [s@sub-set-call-vars:4] Set(“SIP/agent6-00000216”, “_COS_ID=1”) in new stack
    — Executing [s@sub-set-call-vars:5] Set(“SIP/agent6-00000216”, “_COS_NAME=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:6] Set(“SIP/agent6-00000216”, “__TRANSFER_CONTEXT=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:7] Set(“SIP/agent6-00000216”, “_ARS=ARS-all”) in new stack
    — Executing [s@sub-set-call-vars:8] Set(“SIP/agent6-00000216”, “CDR(tenant)=vitalpbx”) in new stack
    — Executing [s@sub-set-call-vars:9] Set(“SIP/agent6-00000216”, “CDR(destination)=03417315572”) in new stack
    — Executing [s@sub-set-call-vars:10] Set(“SIP/agent6-00000216”, “CDR(trunk)=”) in new stack
    — Executing [s@sub-set-call-vars:11] Set(“SIP/agent6-00000216”, “CDR(did)=”) in new stack
    — Executing [s@sub-set-call-vars:12] Set(“SIP/agent6-00000216”, “__CALLID=1614085244.1766”) in new stack
    — Executing [s@sub-set-call-vars:13] ExecIf(“SIP/agent6-00000216”, “0?Set(CHANNEL(language)=)”) in new stack
    — Executing [s@sub-set-call-vars:14] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@cos-all:5] Gosub(“SIP/agent6-00000216”, “sub-construct-cid,s,1”) in new stack
    — Executing [s@sub-construct-cid:1] NoOp(“SIP/agent6-00000216”, “Building CID”) in new stack
    — Executing [s@sub-construct-cid:2] Set(“SIP/agent6-00000216”, “_CALL_SOURCE=128”) in new stack
    — Executing [s@sub-construct-cid:3] Set(“SIP/agent6-00000216”, “_CS=128”) in new stack
    — Executing [s@sub-construct-cid:4] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s@sub-construct-cid:5] Gosub(“SIP/agent6-00000216”, “sub-get-device-tree,s,1”) in new stack
    — Executing [s@sub-get-device-tree:1] NoOp(“SIP/agent6-00000216”, “Configuring Device Tree”) in new stack
    — Executing [s@sub-get-device-tree:2] Set(“SIP/agent6-00000216”, “DEV_TECHNOLOGY=SIP”) in new stack
    — Executing [s@sub-get-device-tree:3] GosubIf(“SIP/agent6-00000216”, “0?s-local,1”) in new stack
    — Executing [s@sub-get-device-tree:4] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s@sub-get-device-tree:5] GotoIf(“SIP/agent6-00000216”, “0?pjsip”) in new stack
    — Executing [s@sub-get-device-tree:6] GotoIf(“SIP/agent6-00000216”, “0?:digital”) in new stack
    — Goto (sub-get-device-tree,s,12)
    — Executing [s@sub-get-device-tree:12] Set(“SIP/agent6-00000216”, “DEV_USER=agent6”) in new stack
    — Executing [s@sub-get-device-tree:13] Set(“SIP/agent6-00000216”, “INTERFACE=SIP/agent6”) in new stack
    — Executing [s@sub-get-device-tree:14] Set(“SIP/agent6-00000216”, “DEV_TREE=devices/SIP/agent6”) in new stack
    — Executing [s@sub-get-device-tree:15] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@sub-construct-cid:6] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s@sub-construct-cid:7] Set(“SIP/agent6-00000216”, “_CALL_SOURCE=128”) in new stack
    — Executing [s@sub-construct-cid:8] Set(“SIP/agent6-00000216”, “_CS=128”) in new stack
    — Executing [s@sub-construct-cid:9] ExecIf(“SIP/agent6-00000216”, “1?Set(CALLERID(all)=”Hamza” <128>)”) in new stack
    — Executing [s@sub-construct-cid:10] Set(“SIP/agent6-00000216”, “_CID_CONSTRUCTED=yes”) in new stack
    — Executing [s@sub-construct-cid:11] NoOp(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@sub-construct-cid:12] Set(“SIP/agent6-00000216”, “CDR(source)=128”) in new stack
    — Executing [s@sub-construct-cid:13] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@cos-all:6] Gosub(“SIP/agent6-00000216”, “set-global-tenant-vars,s,1”) in new stack
    — Executing [s@set-global-tenant-vars:1] NoOp(“SIP/agent6-00000216”, “Setting Global Vars for vitalpbx Tenant”) in new stack
    — Executing [s@set-global-tenant-vars:2] Set(“SIP/agent6-00000216”, “__TENANT_PATH=8c6785d40f7e83ba”) in new stack
    — Executing [s@set-global-tenant-vars:3] Set(“SIP/agent6-00000216”, “__TENANT_PREFIX=”) in new stack
    — Executing [s@set-global-tenant-vars:4] Set(“SIP/agent6-00000216”, “__QUEUE_AGENTS_CONTEXT=queue-call-to-agents”) in new stack
    — Executing [s@set-global-tenant-vars:5] Set(“SIP/agent6-00000216”, “__FOLLOWME_CONTEXT=ext-followme”) in new stack
    — Executing [s@set-global-tenant-vars:6] Set(“SIP/agent6-00000216”, “__HINTS_CONTEXT=extension-hints”) in new stack
    — Executing [s@set-global-tenant-vars:7] Set(“SIP/agent6-00000216”, “__DEFAULT_COS=cos-all”) in new stack
    — Executing [s@set-global-tenant-vars:8] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@cos-all:7] GotoIf(“SIP/agent6-00000216”, “0?local-dialing”) in new stack
    — Executing [s@cos-all:8] NoOp(“SIP/agent6-00000216”, “Check if is an Emergency Call”) in new stack
    — Executing [s@cos-all:9] GotoIf(“SIP/agent6-00000216”, “0?emergency-calls,03417315572,1”) in new stack
    — Executing [s@cos-all:10] Gosub(“SIP/agent6-00000216”, “sub-lockphone-check,s,1”) in new stack
    — Executing [s@sub-lockphone-check:1] NoOp(“SIP/agent6-00000216”, “SUB: LOCK PHONE CHECK”) in new stack
    — Executing [s@sub-lockphone-check:2] GotoIf(“SIP/agent6-00000216”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:3] GotoIf(“SIP/agent6-00000216”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:4] GotoIf(“SIP/agent6-00000216”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:5] GotoIf(“SIP/agent6-00000216”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:6] GotoIf(“SIP/agent6-00000216”, “0?:unlock”) in new stack
    — Goto (sub-lockphone-check,s,12)
    — Executing [s@sub-lockphone-check:12] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@cos-all:11] Gosub(“SIP/agent6-00000216”, “sub-local-dialing,s,1”) in new stack
    — Executing [s@sub-local-dialing:1] NoOp(“SIP/agent6-00000216”, “Trying to determine if is a local extension”) in new stack
    — Executing [s@sub-local-dialing:2] GotoIf(“SIP/agent6-00000216”, “0?:return”) in new stack
    — Goto (sub-local-dialing,s,5)
    — Executing [s@sub-local-dialing:5] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@cos-all:12] GotoIf(“SIP/agent6-00000216”, “0?end-call”) in new stack
    — Executing [s@cos-all:13] Goto(“SIP/agent6-00000216”, “cos-all-post,03417315572,1”) in new stack
    — Goto (cos-all-post,03417315572,1)
    — Executing [03417315572@cos-all-post:1] NoOp(“SIP/agent6-00000216”, “Outbound Route: Mobile_OutBoundRoute”) in new stack
    — Executing [03417315572@cos-all-post:2] Gosub(“SIP/agent6-00000216”, “sub-setup-call-type,s,1(outgoing)”) in new stack
    — Executing [s@sub-setup-call-type:1] NoOp(“SIP/agent6-00000216”, “Determinating Call Type”) in new stack
    — Executing [s@sub-setup-call-type:2] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s@sub-setup-call-type:3] Gosub(“SIP/agent6-00000216”, “s-outgoing,1()”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:1] NoOp(“SIP/agent6-00000216”, “Outgoing Call”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:2] Set(“SIP/agent6-00000216”, “__CALL_TYPE=3”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:3] Set(“SIP/agent6-00000216”, “__CALL_TYPE_LABEL=OUT”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:4] GosubIf(“SIP/agent6-00000216”, “0?s-transit,1”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:5] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@sub-setup-call-type:4] Set(“SIP/agent6-00000216”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
    — Executing [s@sub-setup-call-type:5] Set(“SIP/agent6-00000216”, “CDR(calltype)=3”) in new stack
    — Executing [s@sub-setup-call-type:6] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [03417315572@cos-all-post:3] NoOp(“SIP/agent6-00000216”, “Start to Dial Trunks”) in new stack
    — Executing [03417315572@cos-all-post:4] Set(“SIP/agent6-00000216”, “DNID=03417315572”) in new stack
    — Executing [03417315572@cos-all-post:5] Goto(“SIP/agent6-00000216”, “s-1,1”) in new stack
    — Goto (cos-all-post,s-1,1)
    — Executing [s-1@cos-all-post:1] Set(“SIP/agent6-00000216”, “__CONFIGURED_BY_TENANT=yes”) in new stack
    — Executing [s-1@cos-all-post:2] Gosub(“SIP/agent6-00000216”, “sub-construct-cid,s-external,1”) in new stack
    — Executing [s-external@sub-construct-cid:1] NoOp(“SIP/agent6-00000216”, “Setting External CID”) in new stack
    — Executing [s-external@sub-construct-cid:2] Set(“SIP/agent6-00000216”, “EXTENSION_NUMBER=128”) in new stack
    — Executing [s-external@sub-construct-cid:3] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s-external@sub-construct-cid:4] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s-external@sub-construct-cid:5] Set(“SIP/agent6-00000216”, “EMERGENCY_CALL=no”) in new stack
    — Executing [s-external@sub-construct-cid:6] Set(“SIP/agent6-00000216”, “EXTENSION_EMERGENCY_CID=”) in new stack
    — Executing [s-external@sub-construct-cid:7] Set(“SIP/agent6-00000216”, “DYNAMIC_EXTERNAL_CID=no”) in new stack
    — Executing [s-external@sub-construct-cid:8] ExecIf(“SIP/agent6-00000216”, “1?Set(EXTENSION_EMERGENCY_CID=”Hamza” <128>)”) in new stack
    — Executing [s-external@sub-construct-cid:9] ExecIf(“SIP/agent6-00000216”, “1?Set(DYNAMIC_EXTERNAL_CID=no)”) in new stack
    — Executing [s-external@sub-construct-cid:10] GotoIf(“SIP/agent6-00000216”, “0?check-emergency”) in new stack
    — Executing [s-external@sub-construct-cid:11] Set(“SIP/agent6-00000216”, “EXTENSION_EXTERNAL_CID=”Hamza” <128>”) in new stack
    — Executing [s-external@sub-construct-cid:12] ExecIf(“SIP/agent6-00000216”, “1?Set(CALLERID(all)=”Hamza” <128>)”) in new stack
    — Executing [s-external@sub-construct-cid:13] Set(“SIP/agent6-00000216”, “TENANT_DEFAULT_EXTERNAL_CID=”) in new stack
    — Executing [s-external@sub-construct-cid:14] ExecIf(“SIP/agent6-00000216”, “0?Set(CALLERID(all)=)”) in new stack
    — Executing [s-external@sub-construct-cid:15] GotoIf(“SIP/agent6-00000216”, “0?:info”) in new stack
    — Goto (sub-construct-cid,s-external,23)
    — Executing [s-external@sub-construct-cid:23] NoOp(“SIP/agent6-00000216”, “CID Name: Hamza, CID Number: 128”) in new stack
    — Executing [s-external@sub-construct-cid:24] Set(“SIP/agent6-00000216”, “SEND_CID=yes”) in new stack
    — Executing [s-external@sub-construct-cid:25] ExecIf(“SIP/agent6-00000216”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
    — Executing [s-external@sub-construct-cid:26] ExecIf(“SIP/agent6-00000216”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
    — Executing [s-external@sub-construct-cid:27] Set(“SIP/agent6-00000216”, “__EXT_CID_CONSTRUCTED=yes”) in new stack
    — Executing [s-external@sub-construct-cid:28] Set(“SIP/agent6-00000216”, “CDR(source)=128”) in new stack
    — Executing [s-external@sub-construct-cid:29] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s-1@cos-all-post:3] Gosub(“SIP/agent6-00000216”, “trk-1,03417315572,1(from-trk-grp)”) in new stack
    — Executing [03417315572@trk-1:1] Set(“SIP/agent6-00000216”, “_NTD=03417315572”) in new stack
    — Executing [03417315572@trk-1:2] Gosub(“SIP/agent6-00000216”, “trk-1-dial,03417315572,1(from-trk-grp)”) in new stack
    — Executing [03417315572@trk-1-dial:1] NoOp(“SIP/agent6-00000216”, “Trunk: NayaTel SIP Trunk”) in new stack
    — Executing [03417315572@trk-1-dial:2] NoOp(“SIP/agent6-00000216”, “Dialing: 03417315572”) in new stack
    — Executing [03417315572@trk-1-dial:3] Set(“SIP/agent6-00000216”, “CDR(trunk)=1”) in new stack
    — Executing [03417315572@trk-1-dial:4] Gosub(“SIP/agent6-00000216”, “sub-setup-call-type,s,1(outgoing,no)”) in new stack
    — Executing [s@sub-setup-call-type:1] NoOp(“SIP/agent6-00000216”, “Determinating Call Type”) in new stack
    — Executing [s@sub-setup-call-type:2] GotoIf(“SIP/agent6-00000216”, “0?return”) in new stack
    — Executing [s@sub-setup-call-type:3] Gosub(“SIP/agent6-00000216”, “s-outgoing,1(no)”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:1] NoOp(“SIP/agent6-00000216”, “Outgoing Call”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:2] Set(“SIP/agent6-00000216”, “__CALL_TYPE=3”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:3] Set(“SIP/agent6-00000216”, “__CALL_TYPE_LABEL=OUT”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:4] GosubIf(“SIP/agent6-00000216”, “0?s-transit,1”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:5] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [s@sub-setup-call-type:4] Set(“SIP/agent6-00000216”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
    — Executing [s@sub-setup-call-type:5] Set(“SIP/agent6-00000216”, “CDR(calltype)=3”) in new stack
    — Executing [s@sub-setup-call-type:6] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [03417315572@trk-1-dial:5] ExecIf(“SIP/agent6-00000216”, “0?Set(CALLERID(all)=):”) in new stack
    — Executing [03417315572@trk-1-dial:6] GotoIf(“SIP/agent6-00000216”, “0?:after-val-sim-calls”) in new stack
    — Goto (trk-1-dial,03417315572,16)
    — Executing [03417315572@trk-1-dial:16] NoOp(“SIP/agent6-00000216”, “”) in new stack
    — Executing [03417315572@trk-1-dial:17] NoOp(“SIP/agent6-00000216”, “Configuring Trunk Parameters”) in new stack
    — Executing [03417315572@trk-1-dial:18] ExecIf(“SIP/agent6-00000216”, “1?Set(CHANNEL(musicclass)=default):”) in new stack
    — Executing [03417315572@trk-1-dial:19] Set(“SIP/agent6-00000216”, “__TRUNK_MOH_SET=yes”) in new stack
    — Executing [03417315572@trk-1-dial:20] GotoIf(“SIP/agent6-00000216”, “0?after-overwrite”) in new stack
    — Executing [03417315572@trk-1-dial:21] NoOp(“SIP/agent6-00000216”, “Overwrite CID with trunk CID (forced)”) in new stack
    — Executing [03417315572@trk-1-dial:22] Set(“SIP/agent6-00000216”, “CALLERID(all)=”” <7241724>”) in new stack
    — Executing [03417315572@trk-1-dial:23] NoOp(“SIP/agent6-00000216”, “CID to be sent: “” <7241724>”) in new stack
    — Executing [03417315572@trk-1-dial:24] Set(“SIP/agent6-00000216”, “__TRKDIALOPTIONS=ktr”) in new stack
    — Executing [03417315572@trk-1-dial:25] Set(“SIP/agent6-00000216”, “ORIGINATOR=128”) in new stack
    — Executing [03417315572@trk-1-dial:26] Set(“SIP/agent6-00000216”, “RING_TIME=60”) in new stack
    — Executing [03417315572@trk-1-dial:27] Set(“SIP/agent6-00000216”, “CALLED=03417315572”) in new stack
    — Executing [03417315572@trk-1-dial:28] Set(“SIP/agent6-00000216”, “__CIDNUM=7241724”) in new stack
    — Executing [03417315572@trk-1-dial:29] Set(“SIP/agent6-00000216”, “__CIDNAME=”) in new stack
    — Executing [03417315572@trk-1-dial:30] Set(“SIP/agent6-00000216”, “FORCE_RECORDING=no”) in new stack
    — Executing [03417315572@trk-1-dial:31] Set(“SIP/agent6-00000216”, “FILTERED_NUMBER=03417315572”) in new stack
    — Executing [03417315572@trk-1-dial:32] Dial(“SIP/agent6-00000216”, “SIP/nayatel-sip-trunk/03417315572,60,ktrU(sub-call-recording^8c6785d40f7e83ba^128^03417315572^no)”) in new stack
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    — Called SIP/nayatel-sip-trunk/03417315572
    > 0x7f4c980b0300 — Strict RTP learning complete – Locking on source address 10.50.158.131:24148
    — Executing [199@ext-queues:10] Set(“SIP/nayatel-sip-trunk-00000215”, “__QUEUE_NO_CDR=TRUE”) in new stack
    — Executing [199@ext-queues:11] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Connecting to Queue”) in new stack
    — Executing [199@ext-queues:12] Set(“SIP/nayatel-sip-trunk-00000215”, “ANSWER_CHANNEL=yes”) in new stack
    — Executing [199@ext-queues:13] ExecIf(“SIP/nayatel-sip-trunk-00000215”, “0?Progress():Answer()”) in new stack
    — Executing [199@ext-queues:14] NoCDR(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    — Executing [199@ext-queues:15] Queue(“SIP/nayatel-sip-trunk-00000215”, “Q199,cC,,,”) in new stack
    [2021-02-23 18:00:49] WARNING[534][C-00000103]: res_musiconhold.c:949 _get_mohbyname: Music on Hold class ‘default’ not found in memory. Verify your configuration.
    [2021-02-23 18:00:49] WARNING[534][C-00000103]: res_musiconhold.c:949 _get_mohbyname: Music on Hold class ‘default’ not found in memory. Verify your configuration.
    [2021-02-23 18:00:49] WARNING[534][C-00000103]: res_musiconhold.c:949 _get_mohbyname: Music on Hold class ‘default’ not found in memory. Verify your configuration.
    — Called Local/123@queue-call-to-agents/n
    — Executing [123@queue-call-to-agents:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “More than on digit pattern”) in new stack
    — Executing [123@queue-call-to-agents:2] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “s,1(123)”) in new stack
    — Executing [s@queue-call-to-agents:1] Set(“Local/123@queue-call-to-agents-000000b2;2”, “EXTENSION=123”) in new stack
    — Executing [s@queue-call-to-agents:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s@queue-call-to-agents:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__SRC_APP=Q199”) in new stack
    — Executing [s@queue-call-to-agents:4] Set(“Local/123@queue-call-to-agents-000000b2;2”, “COS=cos-all”) in new stack
    — Executing [s@queue-call-to-agents:5] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Dialing Agent 123 from 03146611018”) in new stack
    — Executing [s@queue-call-to-agents:6] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__DISABLE_CF_AA=TRUE”) in new stack
    — Executing [s@queue-call-to-agents:7] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?end”) in new stack
    — Executing [s@queue-call-to-agents:8] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “cos-all,123,1”) in new stack
    — Executing [123@cos-all:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “More than on digit pattern”) in new stack
    — Executing [123@cos-all:2] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “s,1(123)”) in new stack
    — Executing [s@cos-all:1] Set(“Local/123@queue-call-to-agents-000000b2;2”, “EXTENSION=123”) in new stack
    — Executing [s@cos-all:2] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Dialing 123 from 03146611018”) in new stack
    — Executing [s@cos-all:3] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-set-global-vars,s,1(8c6785d40f7e83ba,123,parking-1)”) in new stack
    — Executing [s@sub-set-global-vars:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Setting Global Vars”) in new stack
    — Executing [s@sub-set-global-vars:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “TENANT_PATH=8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-set-global-vars:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “PREFIX=”) in new stack
    — Executing [s@sub-set-global-vars:4] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__PICKUPMARK=123”) in new stack
    — Executing [s@sub-set-global-vars:5] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__PARKINGLOT=parking-1”) in new stack
    — Executing [s@sub-set-global-vars:6] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__DYNAMIC_FEATURES=custom-features”) in new stack
    — Executing [s@sub-set-global-vars:7] Set(“Local/123@queue-call-to-agents-000000b2;2”, “ICALL=no”) in new stack
    — Executing [s@sub-set-global-vars:8] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@cos-all:4] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-set-call-vars,s,1(8c6785d40f7e83ba,123,1,cos-all,ARS-all)”) in new stack
    — Executing [s@sub-set-call-vars:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Setting Call Vars”) in new stack
    — Executing [s@sub-set-call-vars:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-set-call-vars:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_CALL_DESTINATION=123”) in new stack
    — Executing [s@sub-set-call-vars:4] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_COS_ID=1”) in new stack
    — Executing [s@sub-set-call-vars:5] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_COS_NAME=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:6] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__TRANSFER_CONTEXT=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:7] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_ARS=ARS-all”) in new stack
    — Executing [s@sub-set-call-vars:8] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CDR(tenant)=vitalpbx”) in new stack
    — Executing [s@sub-set-call-vars:9] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CDR(destination)=123”) in new stack
    — Executing [s@sub-set-call-vars:10] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CDR(trunk)=1”) in new stack
    — Executing [s@sub-set-call-vars:11] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CDR(did)=7241724”) in new stack
    — Executing [s@sub-set-call-vars:12] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__CALLID=1614085249.1769”) in new stack
    — Executing [s@sub-set-call-vars:13] ExecIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?Set(CHANNEL(language)=en)”) in new stack
    — Executing [s@sub-set-call-vars:14] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@cos-all:5] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-construct-cid,s,1”) in new stack
    — Executing [s@sub-construct-cid:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Building CID”) in new stack
    — Executing [s@sub-construct-cid:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_CALL_SOURCE=03146611018”) in new stack
    — Executing [s@sub-construct-cid:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_CS=03146611018”) in new stack
    — Executing [s@sub-construct-cid:4] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?return”) in new stack
    — Executing [s@sub-construct-cid:5] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-get-device-tree,s,1”) in new stack
    — Executing [s@sub-get-device-tree:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Configuring Device Tree”) in new stack
    — Executing [s@sub-get-device-tree:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DEV_TECHNOLOGY=Local”) in new stack
    — Executing [s@sub-get-device-tree:3] GosubIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?s-local,1”) in new stack
    — Executing [s-local@sub-get-device-tree:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Try to determianate caller technology 03146611018”) in new stack
    — Executing [s-local@sub-get-device-tree:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “TECH_DETERMINATED=no”) in new stack
    [2021-02-23 18:00:49] WARNING[547][C-00000103]: func_channel.c:463 func_channel_read: Unknown or unavailable item requested: ‘dahdi_channel’
    — Executing [s-local@sub-get-device-tree:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DEV_TECHNOLOGY=Local”) in new stack
    — Executing [s-local@sub-get-device-tree:4] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DEV_TECHNOLOGY=Local”) in new stack
    — Executing [s-local@sub-get-device-tree:5] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DEV_TECHNOLOGY=Local”) in new stack
    — Executing [s-local@sub-get-device-tree:6] Set(“Local/123@queue-call-to-agents-000000b2;2”, “TECH_DETERMINATED=no”) in new stack
    — Executing [s-local@sub-get-device-tree:7] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@sub-get-device-tree:4] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?return”) in new stack
    — Goto (sub-get-device-tree,s,15)
    — Executing [s@sub-get-device-tree:15] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@sub-construct-cid:6] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?return”) in new stack
    — Goto (sub-construct-cid,s,11)
    — Executing [s@sub-construct-cid:11] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@sub-construct-cid:12] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CDR(source)=03146611018”) in new stack
    — Executing [s@sub-construct-cid:13] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@cos-all:6] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “set-global-tenant-vars,s,1”) in new stack
    — Executing [s@set-global-tenant-vars:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Setting Global Vars for vitalpbx Tenant”) in new stack
    — Executing [s@set-global-tenant-vars:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__TENANT_PATH=8c6785d40f7e83ba”) in new stack
    — Executing [s@set-global-tenant-vars:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__TENANT_PREFIX=”) in new stack
    — Executing [s@set-global-tenant-vars:4] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__QUEUE_AGENTS_CONTEXT=queue-call-to-agents”) in new stack
    — Executing [s@set-global-tenant-vars:5] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__FOLLOWME_CONTEXT=ext-followme”) in new stack
    — Executing [s@set-global-tenant-vars:6] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__HINTS_CONTEXT=extension-hints”) in new stack
    — Executing [s@set-global-tenant-vars:7] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__DEFAULT_COS=cos-all”) in new stack
    — Executing [s@set-global-tenant-vars:8] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@cos-all:7] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?local-dialing”) in new stack
    — Executing [s@cos-all:8] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Check if is an Emergency Call”) in new stack
    — Executing [s@cos-all:9] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?emergency-calls,123,1”) in new stack
    — Executing [s@cos-all:10] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-lockphone-check,s,1”) in new stack
    — Executing [s@sub-lockphone-check:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “SUB: LOCK PHONE CHECK”) in new stack
    — Executing [s@sub-lockphone-check:2] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?unlock”) in new stack
    — Goto (sub-lockphone-check,s,12)
    — Executing [s@sub-lockphone-check:12] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@cos-all:11] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-local-dialing,s,1”) in new stack
    — Executing [s@sub-local-dialing:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Trying to determine if is a local extension”) in new stack
    — Executing [s@sub-local-dialing:2] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?:return”) in new stack
    — Executing [s@sub-local-dialing:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “EXTENSION_TO_DIAL=123”) in new stack
    — Executing [s@sub-local-dialing:4] Goto(“Local/123@queue-call-to-agents-000000b2;2”, “123,1”) in new stack
    — Goto (sub-local-dialing,123,1)
    — Executing [123@sub-local-dialing:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Dialing Local Extension”) in new stack
    — Executing [123@sub-local-dialing:2] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-setup-call-type,s,1(internal)”) in new stack
    — Executing [s@sub-setup-call-type:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Determinating Call Type”) in new stack
    — Executing [s@sub-setup-call-type:2] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?return”) in new stack
    — Goto (sub-setup-call-type,s,5)
    — Executing [s@sub-setup-call-type:5] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CDR(calltype)=2”) in new stack
    — Executing [s@sub-setup-call-type:6] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [123@sub-local-dialing:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_DESTINATION_STATE=NOT_INUSE”) in new stack
    — Executing [123@sub-local-dialing:4] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_DESTINATION_NUMBER=123”) in new stack
    — Executing [123@sub-local-dialing:5] Set(“Local/123@queue-call-to-agents-000000b2;2”, “_DESTINATION_COS_NAME=cos-all”) in new stack
    — Executing [123@sub-local-dialing:6] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “sub-check-cos-privacy,s,1(cos-all,1,cos-all)”) in new stack
    — Executing [s@sub-check-cos-privacy:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Checking Privacy of CoS: cos-all”) in new stack
    — Executing [s@sub-check-cos-privacy:2] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?:no_local”) in new stack
    — Goto (sub-check-cos-privacy,s,15)
    — Executing [s@sub-check-cos-privacy:15] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “No Local Call, Allow any CoS”) in new stack
    — Executing [s@sub-check-cos-privacy:16] Goto(“Local/123@queue-call-to-agents-000000b2;2”, “return”) in new stack
    — Goto (sub-check-cos-privacy,s,22)
    — Executing [s@sub-check-cos-privacy:22] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [123@sub-local-dialing:7] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DIAL_STRING=SIP/agent7”) in new stack
    — Executing [123@sub-local-dialing:8] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DB(8c6785d40f7e83ba/LASTCALLER/123)=03146611018”) in new stack
    — Executing [123@sub-local-dialing:9] Set(“Local/123@queue-call-to-agents-000000b2;2”, “IGNORE_DIVERSIONS=”) in new stack
    — Executing [123@sub-local-dialing:10] Set(“Local/123@queue-call-to-agents-000000b2;2”, “QUEUE_CALL=TRUE”) in new stack
    — Executing [123@sub-local-dialing:11] GosubIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?sub-queue-members,s,1”) in new stack
    — Executing [s@sub-queue-members:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Queue Member 123”) in new stack
    — Executing [s@sub-queue-members:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “QUEUE_PREFIX=”) in new stack
    — Executing [s@sub-queue-members:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CID_NAME_PREFIX=”) in new stack
    — Executing [s@sub-queue-members:4] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?:set_prefix”) in new stack
    — Goto (sub-queue-members,s,6)
    — Executing [s@sub-queue-members:6] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CALLERID(name)=”) in new stack
    — Executing [s@sub-queue-members:7] Set(“Local/123@queue-call-to-agents-000000b2;2”, “ALLOW_DIVERSIONS=no”) in new stack
    — Executing [s@sub-queue-members:8] ExecIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?Set(_IGNORE_DIVERSIONS=yes)”) in new stack
    — Executing [s@sub-queue-members:9] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [123@sub-local-dialing:12] GosubIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?:sub-check-diversions,s,1(predialing)”) in new stack
    — Executing [123@sub-local-dialing:13] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?post-dial”) in new stack
    — Executing [123@sub-local-dialing:14] Gosub(“Local/123@queue-call-to-agents-000000b2;2”, “parse-dial-string,s,1”) in new stack
    — Executing [s@parse-dial-string:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Parsing dial string: SIP/agent7”) in new stack
    — Executing [s@parse-dial-string:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “NEW_DIAL_STRING=”) in new stack
    — Executing [s@parse-dial-string:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “COUNTER=1”) in new stack
    — Executing [s@parse-dial-string:4] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CURRENT_DEVICE=SIP/agent7”) in new stack
    — Executing [s@parse-dial-string:5] While(“Local/123@queue-call-to-agents-000000b2;2”, “1”) in new stack
    — Executing [s@parse-dial-string:6] Set(“Local/123@queue-call-to-agents-000000b2;2”, “TECHNOLOGY=SIP”) in new stack
    — Executing [s@parse-dial-string:7] Set(“Local/123@queue-call-to-agents-000000b2;2”, “USER=agent7”) in new stack
    — Executing [s@parse-dial-string:8] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?:regular”) in new stack
    — Goto (parse-dial-string,s,15)
    — Executing [s@parse-dial-string:15] Set(“Local/123@queue-call-to-agents-000000b2;2”, “PARSED_DEV=SIP/agent7”) in new stack
    — Executing [s@parse-dial-string:16] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?:concatenate”) in new stack
    — Executing [s@parse-dial-string:17] Set(“Local/123@queue-call-to-agents-000000b2;2”, “NEW_DIAL_STRING=SIP/agent7”) in new stack
    — Executing [s@parse-dial-string:18] Goto(“Local/123@queue-call-to-agents-000000b2;2”, “next”) in new stack
    — Goto (parse-dial-string,s,21)
    — Executing [s@parse-dial-string:21] Set(“Local/123@queue-call-to-agents-000000b2;2”, “COUNTER=2”) in new stack
    — Executing [s@parse-dial-string:22] Set(“Local/123@queue-call-to-agents-000000b2;2”, “CURRENT_DEVICE=”) in new stack
    — Executing [s@parse-dial-string:23] EndWhile(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [s@parse-dial-string:5] While(“Local/123@queue-call-to-agents-000000b2;2”, “0”) in new stack
    — Executing [s@parse-dial-string:24] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “New dialstring: SIP/agent7”) in new stack
    — Executing [s@parse-dial-string:25] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DIAL_STRING=SIP/agent7”) in new stack
    — Executing [s@parse-dial-string:26] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [123@sub-local-dialing:15] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Configuring Dial Settings”) in new stack
    — Executing [123@sub-local-dialing:16] Set(“Local/123@queue-call-to-agents-000000b2;2”, “RING_TIME=30”) in new stack
    — Executing [123@sub-local-dialing:17] Set(“Local/123@queue-call-to-agents-000000b2;2”, “RING_TIME=30”) in new stack
    — Executing [123@sub-local-dialing:18] Set(“Local/123@queue-call-to-agents-000000b2;2”, “RING_TIME=30”) in new stack
    — Executing [123@sub-local-dialing:19] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DIAL_OPTIONS=ktr”) in new stack
    — Executing [123@sub-local-dialing:20] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DIAL_OPTIONS=ktr”) in new stack
    — Executing [123@sub-local-dialing:21] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?:answermode”) in new stack
    — Goto (sub-local-dialing,123,25)
    — Executing [123@sub-local-dialing:25] Set(“Local/123@queue-call-to-agents-000000b2;2”, “ANSWER_MODE=disable”) in new stack
    — Executing [123@sub-local-dialing:26] Set(“Local/123@queue-call-to-agents-000000b2;2”, “ANSWER_MODE=disable”) in new stack
    — Executing [123@sub-local-dialing:27] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?check-hd”) in new stack
    — Goto (sub-local-dialing,123,29)
    — Executing [123@sub-local-dialing:29] Set(“Local/123@queue-call-to-agents-000000b2;2”, “IS_HOT_DESK=yes”) in new stack
    — Executing [123@sub-local-dialing:30] Set(“Local/123@queue-call-to-agents-000000b2;2”, “MOH_CLASS=default”) in new stack
    — Executing [123@sub-local-dialing:31] GosubIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?sub-set-moh,s,1(default)”) in new stack
    — Executing [s@sub-set-moh:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Configuring MoH Class”) in new stack
    — Executing [s@sub-set-moh:2] Set(“Local/123@queue-call-to-agents-000000b2;2”, “MOH_CLASS=default”) in new stack
    — Executing [s@sub-set-moh:3] Set(“Local/123@queue-call-to-agents-000000b2;2”, “MOH_FORCE=”) in new stack
    — Executing [s@sub-set-moh:4] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?end”) in new stack
    — Executing [s@sub-set-moh:5] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?:end”) in new stack
    — Goto (sub-set-moh,s,8)
    — Executing [s@sub-set-moh:8] Return(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    — Executing [123@sub-local-dialing:32] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?busy-here”) in new stack
    — Executing [123@sub-local-dialing:33] Set(“Local/123@queue-call-to-agents-000000b2;2”, “FORCE_RECORDING=no”) in new stack
    — Executing [123@sub-local-dialing:34] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DIAL_OPTIONS=ktrb(before-connecting-call^s^1(8c6785d40f7e83ba^03146611018^123^^))”) in new stack
    — Executing [123@sub-local-dialing:35] Set(“Local/123@queue-call-to-agents-000000b2;2”, “DIAL_OPTIONS=ktrb(before-connecting-call^s^1(8c6785d40f7e83ba^03146611018^123^^))U(sub-call-recording^8c6785d40f7e83ba^03146611018^123^no)”) in new stack
    — Executing [123@sub-local-dialing:36] Set(“Local/123@queue-call-to-agents-000000b2;2”, “__TRANSFERED_CALL=TRUE”) in new stack
    — Executing [123@sub-local-dialing:37] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Enable Follow-Me Ring Time If needed”) in new stack
    — Executing [123@sub-local-dialing:38] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?:check-rt”) in new stack
    — Goto (sub-local-dialing,123,45)
    — Executing [123@sub-local-dialing:45] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?post-dial”) in new stack
    — Executing [123@sub-local-dialing:46] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?end_call”) in new stack
    — Executing [123@sub-local-dialing:47] Dial(“Local/123@queue-call-to-agents-000000b2;2”, “SIP/agent7,30,ktrb(before-connecting-call^s^1(8c6785d40f7e83ba^03146611018^123^^))U(sub-call-recording^8c6785d40f7e83ba^03146611018^123^no)”) in new stack
    == Using SIP VIDEO TOS bits 136
    == Using SIP VIDEO CoS mark 4
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    — SIP/agent7-00000218 Internal Gosub(before-connecting-call,s,1(8c6785d40f7e83ba,03146611018,123,,)) start
    — Executing [s@before-connecting-call:1] NoOp(“SIP/agent7-00000218”, “Executing routines in the newly created channel before initiaing the call”) in new stack
    — Executing [s@before-connecting-call:2] Set(“SIP/agent7-00000218”, “TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s@before-connecting-call:3] Set(“SIP/agent7-00000218”, “CALLER=03146611018”) in new stack
    — Executing [s@before-connecting-call:4] Set(“SIP/agent7-00000218”, “CALLEE=123”) in new stack
    — Executing [s@before-connecting-call:5] Set(“SIP/agent7-00000218”, “EXEC_AA=”) in new stack
    — Executing [s@before-connecting-call:6] Set(“SIP/agent7-00000218”, “CUSTOM_ALERT_INFO=”) in new stack
    — Executing [s@before-connecting-call:7] GosubIf(“SIP/agent7-00000218”, “0?sub-auto-answer,s,1”) in new stack
    — Executing [s@before-connecting-call:8] GosubIf(“SIP/agent7-00000218”, “0?sub-set-custom-header,s,1()”) in new stack
    — Executing [s@before-connecting-call:9] GosubIf(“SIP/agent7-00000218”, “0?before-connecting-call-hook,s,1”) in new stack
    — Executing [s@before-connecting-call:10] Return(“SIP/agent7-00000218”, “”) in new stack
    == Spawn extension (hot-desking-context, 123, 1) exited non-zero on ‘SIP/agent7-00000218’
    — SIP/agent7-00000218 Internal Gosub(before-connecting-call,s,1(8c6785d40f7e83ba,03146611018,123,,)) complete GOSUB_RETVAL=
    — Called SIP/agent7
    — Local/123@queue-call-to-agents-000000b2;1 is ringing
    — SIP/agent7-00000218 is ringing
    — Local/123@queue-call-to-agents-000000b2;1 is ringing
    > 0x7f4c9c064f90 — Strict RTP learning after remote address set to: 10.50.158.131:24146
    — SIP/nayatel-sip-trunk-00000217 is ringing
    — SIP/nayatel-sip-trunk-00000217 is making progress passing it to SIP/agent6-00000216
    > 0x7f4c9c064f90 — Strict RTP switching to RTP target address 10.50.158.131:24146 as source
    — SIP/nayatel-sip-trunk-00000217 is ringing
    > 0x7f4c9c064f90 — Strict RTP learning complete – Locking on source address 10.50.158.131:24146
    — Nobody picked up in 20000 ms
    == Spawn extension (sub-local-dialing, 123, 47) exited non-zero on ‘Local/123@queue-call-to-agents-000000b2;2’
    — Executing [h@sub-local-dialing:1] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Finishing the call”) in new stack
    — Executing [h@sub-local-dialing:2] GosubIf(“Local/123@queue-call-to-agents-000000b2;2”, “0?dynamic-routing-connected,s,1(CANCEL,03146611018)”) in new stack
    — Executing [h@sub-local-dialing:3] GotoIf(“Local/123@queue-call-to-agents-000000b2;2”, “1?call_ended”) in new stack
    — Goto (sub-local-dialing,h,6)
    — Executing [h@sub-local-dialing:6] NoOp(“Local/123@queue-call-to-agents-000000b2;2”, “Call ended”) in new stack
    — Executing [h@sub-local-dialing:7] Hangup(“Local/123@queue-call-to-agents-000000b2;2”, “”) in new stack
    == Spawn extension (sub-local-dialing, h, 7) exited non-zero on ‘Local/123@queue-call-to-agents-000000b2;2’
    — Playing periodic announcement
    — <SIP/nayatel-sip-trunk-00000215> Playing ‘/var/lib/vitalpbx/static/8c6785d40f7e83ba/recordings/a87ff679a2f3e71d9181a67b7542122c.slin’ (language ‘en’)
    == Using SIP VIDEO TOS bits 136
    == Using SIP VIDEO CoS mark 4
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    > 0x7f4c980957a0 — Strict RTP learning after remote address set to: 10.0.1.7:4076
    — Executing [5278301@hot-desking-context:1] Set(“SIP/agent12-00000219”, “CDR(source)=agent12”) in new stack
    — Executing [5278301@hot-desking-context:2] Set(“SIP/agent12-00000219”, “CDR(destination)=5278301”) in new stack
    — Executing [5278301@hot-desking-context:3] NoOp(“SIP/agent12-00000219”, “Hot Desking”) in new stack
    — Executing [5278301@hot-desking-context:4] Set(“SIP/agent12-00000219”, “__TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [5278301@hot-desking-context:5] Gosub(“SIP/agent12-00000219”, “sub-hot-desking-call,s,1(5278301)”) in new stack
    — Executing [s@sub-hot-desking-call:1] NoOp(“SIP/agent12-00000219”, “Trying to connect call”) in new stack
    — Executing [s@sub-hot-desking-call:2] Set(“SIP/agent12-00000219”, “EXTENSION=5278301”) in new stack
    — Executing [s@sub-hot-desking-call:3] Gosub(“SIP/agent12-00000219”, “sub-get-device-tree,s,1”) in new stack
    — Executing [s@sub-get-device-tree:1] NoOp(“SIP/agent12-00000219”, “Configuring Device Tree”) in new stack
    — Executing [s@sub-get-device-tree:2] Set(“SIP/agent12-00000219”, “DEV_TECHNOLOGY=SIP”) in new stack
    — Executing [s@sub-get-device-tree:3] GosubIf(“SIP/agent12-00000219”, “0?s-local,1”) in new stack
    — Executing [s@sub-get-device-tree:4] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s@sub-get-device-tree:5] GotoIf(“SIP/agent12-00000219”, “0?pjsip”) in new stack
    — Executing [s@sub-get-device-tree:6] GotoIf(“SIP/agent12-00000219”, “0?:digital”) in new stack
    — Goto (sub-get-device-tree,s,12)
    — Executing [s@sub-get-device-tree:12] Set(“SIP/agent12-00000219”, “DEV_USER=agent12”) in new stack
    — Executing [s@sub-get-device-tree:13] Set(“SIP/agent12-00000219”, “INTERFACE=SIP/agent12”) in new stack
    — Executing [s@sub-get-device-tree:14] Set(“SIP/agent12-00000219”, “DEV_TREE=devices/SIP/agent12”) in new stack
    — Executing [s@sub-get-device-tree:15] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@sub-hot-desking-call:4] Set(“SIP/agent12-00000219”, “ASSIGNED_EXTEN=125”) in new stack
    — Executing [s@sub-hot-desking-call:5] GotoIf(“SIP/agent12-00000219”, “0?no_exten_assigned,1”) in new stack
    — Executing [s@sub-hot-desking-call:6] GotoIf(“SIP/agent12-00000219”, “0?no_exten_assigned,1”) in new stack
    — Executing [s@sub-hot-desking-call:7] Set(“SIP/agent12-00000219”, “CALL_CONTEXT=cos-all”) in new stack
    — Executing [s@sub-hot-desking-call:8] Set(“SIP/agent12-00000219”, “CALLERID(num)=125”) in new stack
    — Executing [s@sub-hot-desking-call:9] Set(“SIP/agent12-00000219”, “__hotdesk_moh=default”) in new stack
    — Executing [s@sub-hot-desking-call:10] Set(“SIP/agent12-00000219”, “CHANNEL(namedpickupgroup)=1”) in new stack
    — Executing [s@sub-hot-desking-call:11] Goto(“SIP/agent12-00000219”, “cos-all,5278301,1”) in new stack
    — Goto (cos-all,5278301,1)
    — Executing [5278301@cos-all:1] NoOp(“SIP/agent12-00000219”, “More than on digit pattern”) in new stack
    — Executing [5278301@cos-all:2] Gosub(“SIP/agent12-00000219”, “s,1(5278301)”) in new stack
    — Executing [s@cos-all:1] Set(“SIP/agent12-00000219”, “EXTENSION=5278301”) in new stack
    — Executing [s@cos-all:2] NoOp(“SIP/agent12-00000219”, “Dialing 5278301 from 125”) in new stack
    — Executing [s@cos-all:3] Gosub(“SIP/agent12-00000219”, “sub-set-global-vars,s,1(8c6785d40f7e83ba,5278301,parking-1)”) in new stack
    — Executing [s@sub-set-global-vars:1] NoOp(“SIP/agent12-00000219”, “Setting Global Vars”) in new stack
    — Executing [s@sub-set-global-vars:2] Set(“SIP/agent12-00000219”, “TENANT_PATH=8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-set-global-vars:3] Set(“SIP/agent12-00000219”, “PREFIX=”) in new stack
    — Executing [s@sub-set-global-vars:4] Set(“SIP/agent12-00000219”, “__PICKUPMARK=5278301”) in new stack
    — Executing [s@sub-set-global-vars:5] Set(“SIP/agent12-00000219”, “__PARKINGLOT=parking-1”) in new stack
    — Executing [s@sub-set-global-vars:6] Set(“SIP/agent12-00000219”, “__DYNAMIC_FEATURES=custom-features”) in new stack
    — Executing [s@sub-set-global-vars:7] Set(“SIP/agent12-00000219”, “ICALL=no”) in new stack
    — Executing [s@sub-set-global-vars:8] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@cos-all:4] Gosub(“SIP/agent12-00000219”, “sub-set-call-vars,s,1(8c6785d40f7e83ba,5278301,1,cos-all,ARS-all)”) in new stack
    — Executing [s@sub-set-call-vars:1] NoOp(“SIP/agent12-00000219”, “Setting Call Vars”) in new stack
    — Executing [s@sub-set-call-vars:2] Set(“SIP/agent12-00000219”, “_TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-set-call-vars:3] Set(“SIP/agent12-00000219”, “_CALL_DESTINATION=5278301”) in new stack
    — Executing [s@sub-set-call-vars:4] Set(“SIP/agent12-00000219”, “_COS_ID=1”) in new stack
    — Executing [s@sub-set-call-vars:5] Set(“SIP/agent12-00000219”, “_COS_NAME=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:6] Set(“SIP/agent12-00000219”, “__TRANSFER_CONTEXT=cos-all”) in new stack
    — Executing [s@sub-set-call-vars:7] Set(“SIP/agent12-00000219”, “_ARS=ARS-all”) in new stack
    — Executing [s@sub-set-call-vars:8] Set(“SIP/agent12-00000219”, “CDR(tenant)=vitalpbx”) in new stack
    — Executing [s@sub-set-call-vars:9] Set(“SIP/agent12-00000219”, “CDR(destination)=5278301”) in new stack
    — Executing [s@sub-set-call-vars:10] Set(“SIP/agent12-00000219”, “CDR(trunk)=”) in new stack
    — Executing [s@sub-set-call-vars:11] Set(“SIP/agent12-00000219”, “CDR(did)=”) in new stack
    — Executing [s@sub-set-call-vars:12] Set(“SIP/agent12-00000219”, “__CALLID=1614085271.1772”) in new stack
    — Executing [s@sub-set-call-vars:13] ExecIf(“SIP/agent12-00000219”, “0?Set(CHANNEL(language)=)”) in new stack
    — Executing [s@sub-set-call-vars:14] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@cos-all:5] Gosub(“SIP/agent12-00000219”, “sub-construct-cid,s,1”) in new stack
    — Executing [s@sub-construct-cid:1] NoOp(“SIP/agent12-00000219”, “Building CID”) in new stack
    — Executing [s@sub-construct-cid:2] Set(“SIP/agent12-00000219”, “_CALL_SOURCE=125”) in new stack
    — Executing [s@sub-construct-cid:3] Set(“SIP/agent12-00000219”, “_CS=125”) in new stack
    — Executing [s@sub-construct-cid:4] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s@sub-construct-cid:5] Gosub(“SIP/agent12-00000219”, “sub-get-device-tree,s,1”) in new stack
    — Executing [s@sub-get-device-tree:1] NoOp(“SIP/agent12-00000219”, “Configuring Device Tree”) in new stack
    — Executing [s@sub-get-device-tree:2] Set(“SIP/agent12-00000219”, “DEV_TECHNOLOGY=SIP”) in new stack
    — Executing [s@sub-get-device-tree:3] GosubIf(“SIP/agent12-00000219”, “0?s-local,1”) in new stack
    — Executing [s@sub-get-device-tree:4] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s@sub-get-device-tree:5] GotoIf(“SIP/agent12-00000219”, “0?pjsip”) in new stack
    — Executing [s@sub-get-device-tree:6] GotoIf(“SIP/agent12-00000219”, “0?:digital”) in new stack
    — Goto (sub-get-device-tree,s,12)
    — Executing [s@sub-get-device-tree:12] Set(“SIP/agent12-00000219”, “DEV_USER=agent12”) in new stack
    — Executing [s@sub-get-device-tree:13] Set(“SIP/agent12-00000219”, “INTERFACE=SIP/agent12”) in new stack
    — Executing [s@sub-get-device-tree:14] Set(“SIP/agent12-00000219”, “DEV_TREE=devices/SIP/agent12”) in new stack
    — Executing [s@sub-get-device-tree:15] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@sub-construct-cid:6] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s@sub-construct-cid:7] Set(“SIP/agent12-00000219”, “_CALL_SOURCE=125”) in new stack
    — Executing [s@sub-construct-cid:8] Set(“SIP/agent12-00000219”, “_CS=125”) in new stack
    — Executing [s@sub-construct-cid:9] ExecIf(“SIP/agent12-00000219”, “1?Set(CALLERID(all)=”Mazhar 125″ <125>)”) in new stack
    — Executing [s@sub-construct-cid:10] Set(“SIP/agent12-00000219”, “_CID_CONSTRUCTED=yes”) in new stack
    — Executing [s@sub-construct-cid:11] NoOp(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@sub-construct-cid:12] Set(“SIP/agent12-00000219”, “CDR(source)=125”) in new stack
    — Executing [s@sub-construct-cid:13] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@cos-all:6] Gosub(“SIP/agent12-00000219”, “set-global-tenant-vars,s,1”) in new stack
    — Executing [s@set-global-tenant-vars:1] NoOp(“SIP/agent12-00000219”, “Setting Global Vars for vitalpbx Tenant”) in new stack
    — Executing [s@set-global-tenant-vars:2] Set(“SIP/agent12-00000219”, “__TENANT_PATH=8c6785d40f7e83ba”) in new stack
    — Executing [s@set-global-tenant-vars:3] Set(“SIP/agent12-00000219”, “__TENANT_PREFIX=”) in new stack
    — Executing [s@set-global-tenant-vars:4] Set(“SIP/agent12-00000219”, “__QUEUE_AGENTS_CONTEXT=queue-call-to-agents”) in new stack
    — Executing [s@set-global-tenant-vars:5] Set(“SIP/agent12-00000219”, “__FOLLOWME_CONTEXT=ext-followme”) in new stack
    — Executing [s@set-global-tenant-vars:6] Set(“SIP/agent12-00000219”, “__HINTS_CONTEXT=extension-hints”) in new stack
    — Executing [s@set-global-tenant-vars:7] Set(“SIP/agent12-00000219”, “__DEFAULT_COS=cos-all”) in new stack
    — Executing [s@set-global-tenant-vars:8] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@cos-all:7] GotoIf(“SIP/agent12-00000219”, “0?local-dialing”) in new stack
    — Executing [s@cos-all:8] NoOp(“SIP/agent12-00000219”, “Check if is an Emergency Call”) in new stack
    — Executing [s@cos-all:9] GotoIf(“SIP/agent12-00000219”, “0?emergency-calls,5278301,1”) in new stack
    — Executing [s@cos-all:10] Gosub(“SIP/agent12-00000219”, “sub-lockphone-check,s,1”) in new stack
    — Executing [s@sub-lockphone-check:1] NoOp(“SIP/agent12-00000219”, “SUB: LOCK PHONE CHECK”) in new stack
    — Executing [s@sub-lockphone-check:2] GotoIf(“SIP/agent12-00000219”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:3] GotoIf(“SIP/agent12-00000219”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:4] GotoIf(“SIP/agent12-00000219”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:5] GotoIf(“SIP/agent12-00000219”, “0?unlock”) in new stack
    — Executing [s@sub-lockphone-check:6] GotoIf(“SIP/agent12-00000219”, “0?:unlock”) in new stack
    — Goto (sub-lockphone-check,s,12)
    — Executing [s@sub-lockphone-check:12] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@cos-all:11] Gosub(“SIP/agent12-00000219”, “sub-local-dialing,s,1”) in new stack
    — Executing [s@sub-local-dialing:1] NoOp(“SIP/agent12-00000219”, “Trying to determine if is a local extension”) in new stack
    — Executing [s@sub-local-dialing:2] GotoIf(“SIP/agent12-00000219”, “0?:return”) in new stack
    — Goto (sub-local-dialing,s,5)
    — Executing [s@sub-local-dialing:5] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@cos-all:12] GotoIf(“SIP/agent12-00000219”, “0?end-call”) in new stack
    — Executing [s@cos-all:13] Goto(“SIP/agent12-00000219”, “cos-all-post,5278301,1”) in new stack
    — Goto (cos-all-post,5278301,1)
    — Executing [5278301@cos-all-post:1] NoOp(“SIP/agent12-00000219”, “Outbound Route: Mobile_OutBoundRoute”) in new stack
    — Executing [5278301@cos-all-post:2] Gosub(“SIP/agent12-00000219”, “sub-setup-call-type,s,1(outgoing)”) in new stack
    — Executing [s@sub-setup-call-type:1] NoOp(“SIP/agent12-00000219”, “Determinating Call Type”) in new stack
    — Executing [s@sub-setup-call-type:2] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s@sub-setup-call-type:3] Gosub(“SIP/agent12-00000219”, “s-outgoing,1()”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:1] NoOp(“SIP/agent12-00000219”, “Outgoing Call”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:2] Set(“SIP/agent12-00000219”, “__CALL_TYPE=3”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:3] Set(“SIP/agent12-00000219”, “__CALL_TYPE_LABEL=OUT”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:4] GosubIf(“SIP/agent12-00000219”, “0?s-transit,1”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:5] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@sub-setup-call-type:4] Set(“SIP/agent12-00000219”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
    — Executing [s@sub-setup-call-type:5] Set(“SIP/agent12-00000219”, “CDR(calltype)=3”) in new stack
    — Executing [s@sub-setup-call-type:6] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [5278301@cos-all-post:3] NoOp(“SIP/agent12-00000219”, “Start to Dial Trunks”) in new stack
    — Executing [5278301@cos-all-post:4] Set(“SIP/agent12-00000219”, “DNID=5278301”) in new stack
    — Executing [5278301@cos-all-post:5] Goto(“SIP/agent12-00000219”, “s-1,1”) in new stack
    — Goto (cos-all-post,s-1,1)
    — Executing [s-1@cos-all-post:1] Set(“SIP/agent12-00000219”, “__CONFIGURED_BY_TENANT=yes”) in new stack
    — Executing [s-1@cos-all-post:2] Gosub(“SIP/agent12-00000219”, “sub-construct-cid,s-external,1”) in new stack
    — Executing [s-external@sub-construct-cid:1] NoOp(“SIP/agent12-00000219”, “Setting External CID”) in new stack
    — Executing [s-external@sub-construct-cid:2] Set(“SIP/agent12-00000219”, “EXTENSION_NUMBER=125”) in new stack
    — Executing [s-external@sub-construct-cid:3] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s-external@sub-construct-cid:4] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s-external@sub-construct-cid:5] Set(“SIP/agent12-00000219”, “EMERGENCY_CALL=no”) in new stack
    — Executing [s-external@sub-construct-cid:6] Set(“SIP/agent12-00000219”, “EXTENSION_EMERGENCY_CID=”) in new stack
    — Executing [s-external@sub-construct-cid:7] Set(“SIP/agent12-00000219”, “DYNAMIC_EXTERNAL_CID=no”) in new stack
    — Executing [s-external@sub-construct-cid:8] ExecIf(“SIP/agent12-00000219”, “1?Set(EXTENSION_EMERGENCY_CID=”Mazhar 125″ <125>)”) in new stack
    — Executing [s-external@sub-construct-cid:9] ExecIf(“SIP/agent12-00000219”, “1?Set(DYNAMIC_EXTERNAL_CID=no)”) in new stack
    — Executing [s-external@sub-construct-cid:10] GotoIf(“SIP/agent12-00000219”, “0?check-emergency”) in new stack
    — Executing [s-external@sub-construct-cid:11] Set(“SIP/agent12-00000219”, “EXTENSION_EXTERNAL_CID=”Mazhar 125″ <125>”) in new stack
    — Executing [s-external@sub-construct-cid:12] ExecIf(“SIP/agent12-00000219”, “1?Set(CALLERID(all)=”Mazhar 125″ <125>)”) in new stack
    — Executing [s-external@sub-construct-cid:13] Set(“SIP/agent12-00000219”, “TENANT_DEFAULT_EXTERNAL_CID=”) in new stack
    — Executing [s-external@sub-construct-cid:14] ExecIf(“SIP/agent12-00000219”, “0?Set(CALLERID(all)=)”) in new stack
    — Executing [s-external@sub-construct-cid:15] GotoIf(“SIP/agent12-00000219”, “0?:info”) in new stack
    — Goto (sub-construct-cid,s-external,23)
    — Executing [s-external@sub-construct-cid:23] NoOp(“SIP/agent12-00000219”, “CID Name: Mazhar 125, CID Number: 125”) in new stack
    — Executing [s-external@sub-construct-cid:24] Set(“SIP/agent12-00000219”, “SEND_CID=yes”) in new stack
    — Executing [s-external@sub-construct-cid:25] ExecIf(“SIP/agent12-00000219”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
    — Executing [s-external@sub-construct-cid:26] ExecIf(“SIP/agent12-00000219”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
    — Executing [s-external@sub-construct-cid:27] Set(“SIP/agent12-00000219”, “__EXT_CID_CONSTRUCTED=yes”) in new stack
    — Executing [s-external@sub-construct-cid:28] Set(“SIP/agent12-00000219”, “CDR(source)=125”) in new stack
    — Executing [s-external@sub-construct-cid:29] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s-1@cos-all-post:3] Gosub(“SIP/agent12-00000219”, “trk-1,5278301,1(from-trk-grp)”) in new stack
    — Executing [5278301@trk-1:1] Set(“SIP/agent12-00000219”, “_NTD=5278301”) in new stack
    — Executing [5278301@trk-1:2] Gosub(“SIP/agent12-00000219”, “trk-1-dial,5278301,1(from-trk-grp)”) in new stack
    — Executing [5278301@trk-1-dial:1] NoOp(“SIP/agent12-00000219”, “Trunk: NayaTel SIP Trunk”) in new stack
    — Executing [5278301@trk-1-dial:2] NoOp(“SIP/agent12-00000219”, “Dialing: 5278301”) in new stack
    — Executing [5278301@trk-1-dial:3] Set(“SIP/agent12-00000219”, “CDR(trunk)=1”) in new stack
    — Executing [5278301@trk-1-dial:4] Gosub(“SIP/agent12-00000219”, “sub-setup-call-type,s,1(outgoing,no)”) in new stack
    — Executing [s@sub-setup-call-type:1] NoOp(“SIP/agent12-00000219”, “Determinating Call Type”) in new stack
    — Executing [s@sub-setup-call-type:2] GotoIf(“SIP/agent12-00000219”, “0?return”) in new stack
    — Executing [s@sub-setup-call-type:3] Gosub(“SIP/agent12-00000219”, “s-outgoing,1(no)”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:1] NoOp(“SIP/agent12-00000219”, “Outgoing Call”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:2] Set(“SIP/agent12-00000219”, “__CALL_TYPE=3”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:3] Set(“SIP/agent12-00000219”, “__CALL_TYPE_LABEL=OUT”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:4] GosubIf(“SIP/agent12-00000219”, “0?s-transit,1”) in new stack
    — Executing [s-outgoing@sub-setup-call-type:5] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [s@sub-setup-call-type:4] Set(“SIP/agent12-00000219”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
    — Executing [s@sub-setup-call-type:5] Set(“SIP/agent12-00000219”, “CDR(calltype)=3”) in new stack
    — Executing [s@sub-setup-call-type:6] Return(“SIP/agent12-00000219”, “”) in new stack
    — Executing [5278301@trk-1-dial:5] ExecIf(“SIP/agent12-00000219”, “0?Set(CALLERID(all)=):”) in new stack
    — Executing [5278301@trk-1-dial:6] GotoIf(“SIP/agent12-00000219”, “0?:after-val-sim-calls”) in new stack
    — Goto (trk-1-dial,5278301,16)
    — Executing [5278301@trk-1-dial:16] NoOp(“SIP/agent12-00000219”, “”) in new stack
    — Executing [5278301@trk-1-dial:17] NoOp(“SIP/agent12-00000219”, “Configuring Trunk Parameters”) in new stack
    — Executing [5278301@trk-1-dial:18] ExecIf(“SIP/agent12-00000219”, “1?Set(CHANNEL(musicclass)=default):”) in new stack
    — Executing [5278301@trk-1-dial:19] Set(“SIP/agent12-00000219”, “__TRUNK_MOH_SET=yes”) in new stack
    — Executing [5278301@trk-1-dial:20] GotoIf(“SIP/agent12-00000219”, “0?after-overwrite”) in new stack
    — Executing [5278301@trk-1-dial:21] NoOp(“SIP/agent12-00000219”, “Overwrite CID with trunk CID (forced)”) in new stack
    — Executing [5278301@trk-1-dial:22] Set(“SIP/agent12-00000219”, “CALLERID(all)=”” <7241724>”) in new stack
    — Executing [5278301@trk-1-dial:23] NoOp(“SIP/agent12-00000219”, “CID to be sent: “” <7241724>”) in new stack
    — Executing [5278301@trk-1-dial:24] Set(“SIP/agent12-00000219”, “__TRKDIALOPTIONS=ktr”) in new stack
    — Executing [5278301@trk-1-dial:25] Set(“SIP/agent12-00000219”, “ORIGINATOR=125”) in new stack
    — Executing [5278301@trk-1-dial:26] Set(“SIP/agent12-00000219”, “RING_TIME=60”) in new stack
    — Executing [5278301@trk-1-dial:27] Set(“SIP/agent12-00000219”, “CALLED=5278301”) in new stack
    — Executing [5278301@trk-1-dial:28] Set(“SIP/agent12-00000219”, “__CIDNUM=7241724”) in new stack
    — Executing [5278301@trk-1-dial:29] Set(“SIP/agent12-00000219”, “__CIDNAME=”) in new stack
    — Executing [5278301@trk-1-dial:30] Set(“SIP/agent12-00000219”, “FORCE_RECORDING=no”) in new stack
    — Executing [5278301@trk-1-dial:31] Set(“SIP/agent12-00000219”, “FILTERED_NUMBER=5278301”) in new stack
    — Executing [5278301@trk-1-dial:32] Dial(“SIP/agent12-00000219”, “SIP/nayatel-sip-trunk/5278301,60,ktrU(sub-call-recording^8c6785d40f7e83ba^125^5278301^no)”) in new stack
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    — Called SIP/nayatel-sip-trunk/5278301
    > 0x7f4c902cdf70 — Strict RTP learning after remote address set to: 10.50.158.131:24142
    — SIP/nayatel-sip-trunk-0000021a is making progress passing it to SIP/agent12-00000219
    > 0x7f4c902cdf70 — Strict RTP switching to RTP target address 10.50.158.131:24142 as source
    > 0x7f4c902cdf70 — Strict RTP learning complete – Locking on source address 10.50.158.131:24142
    — SIP/nayatel-sip-trunk-0000021a answered SIP/agent12-00000219
    — SIP/nayatel-sip-trunk-0000021a Internal Gosub(sub-call-recording,s,1(8c6785d40f7e83ba,125,5278301,no)) start
    — Executing [s@sub-call-recording:1] NoOp(“SIP/nayatel-sip-trunk-0000021a”, “Check if call will be recorded on tenant 8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-call-recording:2] NoOp(“SIP/nayatel-sip-trunk-0000021a”, “Call Type: 3 “) in new stack
    — Executing [s@sub-call-recording:3] Set(“SIP/nayatel-sip-trunk-0000021a”, “TENANT=8c6785d40f7e83ba”) in new stack
    — Executing [s@sub-call-recording:4] Set(“SIP/nayatel-sip-trunk-0000021a”, “CALLER=125”) in new stack
    — Executing [s@sub-call-recording:5] Set(“SIP/nayatel-sip-trunk-0000021a”, “CALLEE=5278301”) in new stack
    — Executing [s@sub-call-recording:6] Set(“SIP/nayatel-sip-trunk-0000021a”, “APP_FORCE=no”) in new stack
    — Executing [s@sub-call-recording:7] GotoIf(“SIP/nayatel-sip-trunk-0000021a”, “1?:rec_no_available”) in new stack
    — Executing [s@sub-call-recording:8] GotoIf(“SIP/nayatel-sip-trunk-0000021a”, “0?perform-recording”) in new stack
    — Executing [s@sub-call-recording:9] GotoIf(“SIP/nayatel-sip-trunk-0000021a”, “0?perform-recording”) in new stack
    — Executing [s@sub-call-recording:10] GotoIf(“SIP/nayatel-sip-trunk-0000021a”, “0?perform-recording”) in new stack
    — Executing [s@sub-call-recording:11] GotoIf(“SIP/nayatel-sip-trunk-0000021a”, “0?perform-recording”) in new stack
    — Executing [s@sub-call-recording:12] GotoIf(“SIP/nayatel-sip-trunk-0000021a”, “1?perform-recording”) in new stack
    — Goto (sub-call-recording,s,14)
    — Executing [s@sub-call-recording:14] Gosub(“SIP/nayatel-sip-trunk-0000021a”, “sub-perform-recording,s,1”) in new stack
    — Executing [s@sub-perform-recording:1] NoOp(“SIP/nayatel-sip-trunk-0000021a”, “Perform Call Recording”) in new stack
    — Executing [s@sub-perform-recording:2] Set(“SIP/nayatel-sip-trunk-0000021a”, “RECORDING_ID=1614085271.1773”) in new stack
    — Executing [s@sub-perform-recording:3] Set(“SIP/nayatel-sip-trunk-0000021a”, “APP_TYPE=NONE”) in new stack
    — Executing [s@sub-perform-recording:4] Set(“SIP/nayatel-sip-trunk-0000021a”, “AUDIO_FILE=180119-OUT-NONE-125-5278301-1614085271.1773”) in new stack
    — Executing [s@sub-perform-recording:5] Set(“SIP/nayatel-sip-trunk-0000021a”, “RECORDING_FORMAT=wav”) in new stack
    — Executing [s@sub-perform-recording:6] Set(“SIP/nayatel-sip-trunk-0000021a”, “__REC_FILENAME=/var/spool/asterisk/monitor/2021/02/23/180119-OUT-NONE-125-5278301-1614085271.1773.wav”) in new stack
    — Executing [s@sub-perform-recording:7] GotoIf(“SIP/nayatel-sip-trunk-0000021a”, “0?:set_rec_file”) in new stack
    — Goto (sub-perform-recording,s,10)
    — Executing [s@sub-perform-recording:10] Set(“SIP/nayatel-sip-trunk-0000021a”, “CDR(recfile)=/var/spool/asterisk/monitor/2021/02/23/180119-OUT-NONE-125-5278301-1614085271.1773.wav”) in new stack
    — Executing [s@sub-perform-recording:11] MixMonitor(“SIP/nayatel-sip-trunk-0000021a”, “/var/spool/asterisk/monitor/2021/02/23/180119-OUT-NONE-125-5278301-1614085271.1773.wav,b,”) in new stack
    — Executing [s@sub-perform-recording:12] Return(“SIP/nayatel-sip-trunk-0000021a”, “”) in new stack
    — Executing [s@sub-call-recording:15] Goto(“SIP/nayatel-sip-trunk-0000021a”, “return”) in new stack
    — Goto (sub-call-recording,s,17)
    — Executing [s@sub-call-recording:17] Return(“SIP/nayatel-sip-trunk-0000021a”, “”) in new stack
    == Spawn extension (trk-1-in, , 1) exited non-zero on ‘SIP/nayatel-sip-trunk-0000021a’
    — SIP/nayatel-sip-trunk-0000021a Internal Gosub(sub-call-recording,s,1(8c6785d40f7e83ba,125,5278301,no)) complete GOSUB_RETVAL=
    == Begin MixMonitor Recording SIP/nayatel-sip-trunk-0000021a
    — Channel SIP/nayatel-sip-trunk-0000021a joined ‘simple_bridge’ basic-bridge <f698446b-f138-40f0-a684-7aefcd10482b>
    — Channel SIP/agent12-00000219 joined ‘simple_bridge’ basic-bridge <f698446b-f138-40f0-a684-7aefcd10482b>
    > 0x7f4c980957a0 — Strict RTP switching to RTP target address 10.0.1.7:4076 as source
    > 0x7f4c980957a0 — Strict RTP learning complete – Locking on source address 10.0.1.7:4076
    == Spawn extension (trk-1-dial, 03417315572, 32) exited non-zero on ‘SIP/agent6-00000216’
    — Executing [h@trk-1-dial:1] Gosub(“SIP/agent6-00000216”, “dynamic-routing-out,s,1(128,03417315572,CANCEL,1)”) in new stack
    — Executing [s@dynamic-routing-out:1] NoOp(“SIP/agent6-00000216”, “Test if save on dynamic routing list”) in new stack
    — Executing [s@dynamic-routing-out:2] Set(“SIP/agent6-00000216”, “CALLER=128”) in new stack
    — Executing [s@dynamic-routing-out:3] Set(“SIP/agent6-00000216”, “CALLED=03417315572”) in new stack
    — Executing [s@dynamic-routing-out:4] Set(“SIP/agent6-00000216”, “STATUS=CANCEL”) in new stack
    — Executing [s@dynamic-routing-out:5] Set(“SIP/agent6-00000216”, “TRKID=1”) in new stack
    — Executing [s@dynamic-routing-out:6] Set(“SIP/agent6-00000216”, “ALLOW_DR=no”) in new stack
    — Executing [s@dynamic-routing-out:7] Set(“SIP/agent6-00000216”, “DYNROUTING_OMC=yes”) in new stack
    — Executing [s@dynamic-routing-out:8] GotoIf(“SIP/agent6-00000216”, “0?:comeback”) in new stack
    — Goto (dynamic-routing-out,s,10)
    — Executing [s@dynamic-routing-out:10] Return(“SIP/agent6-00000216”, “”) in new stack
    — Executing [h@trk-1-dial:2] Hangup(“SIP/agent6-00000216”, “”) in new stack
    == Spawn extension (trk-1-dial, h, 2) exited non-zero on ‘SIP/agent6-00000216’
    == Spawn extension (ext-queues, 199, 15) exited non-zero on ‘SIP/nayatel-sip-trunk-00000215’
    — Executing [h@ext-queues:1] NoOp(“SIP/nayatel-sip-trunk-00000215”, “Ending Queue Call”) in new stack
    — Executing [h@ext-queues:2] Hangup(“SIP/nayatel-sip-trunk-00000215”, “”) in new stack
    == Spawn extension (ext-queues, h, 2) exited non-zero on ‘SIP/nayatel-sip-trunk-00000215’
    vitalpbx*CLI> exit
    Asterisk cleanly ending (0).
    Executing last minute cleanups
    [root@vitalpbx ~]# cd /etc/asterisk/vitalpbx/
    [root@vitalpbx vitalpbx]# nano queues__50-1-main.conf

    0