Time Condition Toggle Codes does not work

VitalPBX Community Support Reporting an Issue Time Condition Toggle Codes does not work

  • Post
    Up
    0
    Down
    ::
    Hello there,

    We are running the following software versión, and we have discover a bug where Toggle Code <b class=”red-color”>*</b> does change the apparently, but when making a call, the condition is always checked.

    Distro CentOS Linux release 7.9.2009 (Core)
    Kernel 3.10.0-1160.11.1.el7.x86_64
    Asterisk 18.1.1
    VitalPBX 3.0.6-2

    See traces setting the toggle code to unmatched:

    — Goto (cos-all-post,550,1)
    — Executing [550@cos-all-post:1] NoOp(“PJSIP/Grandstream-000000d0”, “Time Condition: Abierto”) in new stack
    — Executing [550@cos-all-post:2] Gosub(“PJSIP/Grandstream-000000d0”, “sub-toggle-tc-state,s,1(1,TG-1,1111)”) in new stack
    — Executing [s@sub-toggle-tc-state:1] NoOp(“PJSIP/Grandstream-000000d0”, “SUB: Toggle Time Condition State”) in new stack
    — Executing [s@sub-toggle-tc-state:2] Set(“PJSIP/Grandstream-000000d0”, “TC_ID=1”) in new stack
    — Executing [s@sub-toggle-tc-state:3] Set(“PJSIP/Grandstream-000000d0”, “TC=TC1”) in new stack
    — Executing [s@sub-toggle-tc-state:4] Set(“PJSIP/Grandstream-000000d0”, “TG=TG-1”) in new stack
    — Executing [s@sub-toggle-tc-state:5] Set(“PJSIP/Grandstream-000000d0”, “PIN=1111”) in new stack
    — Executing [s@sub-toggle-tc-state:6] Answer(“PJSIP/Grandstream-000000d0”, “”) in new stack
    — Executing [s@sub-toggle-tc-state:7] Wait(“PJSIP/Grandstream-000000d0”, “1”) in new stack
    — Executing [s@sub-toggle-tc-state:8] GotoIf(“PJSIP/Grandstream-000000d0”, “0?get_state”) in new stack
    — Executing [s@sub-toggle-tc-state:9] Authenticate(“PJSIP/Grandstream-000000d0”, “1111,j”) in new stack
    — <PJSIP/Grandstream-000000d0> Playing ‘agent-pass.ulaw’ (language ‘en’)
    — <PJSIP/Grandstream-000000d0> Playing ‘auth-thankyou.ulaw’ (language ‘en’)
    — Executing [s@sub-toggle-tc-state:10] Set(“PJSIP/Grandstream-000000d0”, “OVERRIDE_STATE=no”) in new stack
    — Executing [s@sub-toggle-tc-state:11] GotoIf(“PJSIP/Grandstream-000000d0”, “0?reset”) in new stack
    — Executing [s@sub-toggle-tc-state:12] Gosub(“PJSIP/Grandstream-000000d0”, “TG-1,s,1”) in new stack
    — Executing [s@TG-1:1] NoOp(“PJSIP/Grandstream-000000d0”, “Time Group: Time Group Abierto”) in new stack
    — Executing [s@TG-1:2] Set(“PJSIP/Grandstream-000000d0”, “__TGMATCH=0”) in new stack
    — Executing [s@TG-1:3] GotoIfTime(“PJSIP/Grandstream-000000d0”, “00:00-23:59,mon-sun,1-31,jan-dec,?match:”) in new stack
    — Goto (TG-1,s,5)
    — Executing [s@TG-1:5] Set(“PJSIP/Grandstream-000000d0”, “__TGMATCH=1”) in new stack
    — Executing [s@TG-1:6] Return(“PJSIP/Grandstream-000000d0”, “”) in new stack
    — Executing [s@sub-toggle-tc-state:13] Set(“PJSIP/Grandstream-000000d0”, “NEW_OVERRIDE_STATE=force_unmatch”) in new stack
    — Executing [s@sub-toggle-tc-state:14] Set(“PJSIP/Grandstream-000000d0”, “AUDIO=vital-tc-temporary-unmatch”) in new stack
    — Executing [s@sub-toggle-tc-state:15] Playback(“PJSIP/Grandstream-000000d0”, “vpbx/vital-tc-temporary-unmatch”) in new stack
    — <PJSIP/Grandstream-000000d0> Playing ‘vpbx/vital-tc-temporary-unmatch.slin’ (language ‘en’)
    — Executing [s@sub-toggle-tc-state:16] Goto(“PJSIP/Grandstream-000000d0”, “end”) in new stack
    — Goto (sub-toggle-tc-state,s,20)
    — Executing [s@sub-toggle-tc-state:20] Hangup(“PJSIP/Grandstream-000000d0”, “”) in new stack
    == Spawn extension (sub-toggle-tc-state, s, 20) exited non-zero on ‘PJSIP/Grandstream-000000d0’
    — Executing [h@sub-toggle-tc-state:1] NoOp(“PJSIP/Grandstream-000000d0”, “”) in new stack
    — Executing [h@sub-toggle-tc-state:2] GotoIf(“PJSIP/Grandstream-000000d0”, “0?end”) in new stack
    — Executing [h@sub-toggle-tc-state:3] Set(“PJSIP/Grandstream-000000d0”, “DB(30fc3876b172afa8/time_conditions/TC1/override)=force_unmatch”) in new stack
    — Executing [h@sub-toggle-tc-state:4] System(“PJSIP/Grandstream-000000d0”, “/usr/share/vitalpbx/scripts/synchronizer “update-TC-state” “30fc3876b172afa8” “1” “force_unmatch””) in new stack
    — Executing [h@sub-toggle-tc-state:5] System(“PJSIP/Grandstream-000000d0”, “/usr/share/vitalpbx/scripts/update_tc “30fc3876b172afa8” “1””) in new stack
    — Executing [h@sub-toggle-tc-state:6] Hangup(“PJSIP/Grandstream-000000d0”, “”) in new stack
    == Spawn extension (sub-toggle-tc-state, h, 6) exited non-zero on ‘PJSIP/Grandstream-000000d0’

    Now I make the call to test and it always checks the condition:

    Executing [s@sub-construct-cid:12] Set(“PJSIP/Grandstream-000000d1”, “CDR(source)=210”) in new stack
    — Executing [s@sub-construct-cid:13] Return(“PJSIP/Grandstream-000000d1”, “”) in new stack
    — Executing [s@cos-all:6] Gosub(“PJSIP/Grandstream-000000d1”, “set-global-tenant-vars,s,1”) in new stack
    — Executing [s@set-global-tenant-vars:1] NoOp(“PJSIP/Grandstream-000000d1”, “Setting Global Vars for vitalpbx Tenant”) in new stack
    — Executing [s@set-global-tenant-vars:2] Set(“PJSIP/Grandstream-000000d1”, “__TENANT_PATH=30fc3876b172afa8”) in new stack
    — Executing [s@set-global-tenant-vars:3] Set(“PJSIP/Grandstream-000000d1”, “__TENANT_PREFIX=”) in new stack
    — Executing [s@set-global-tenant-vars:4] Set(“PJSIP/Grandstream-000000d1”, “__QUEUE_AGENTS_CONTEXT=queue-call-to-agents”) in new stack
    — Executing [s@set-global-tenant-vars:5] Set(“PJSIP/Grandstream-000000d1”, “__FOLLOWME_CONTEXT=ext-followme”) in new stack
    — Executing [s@set-global-tenant-vars:6] Set(“PJSIP/Grandstream-000000d1”, “__HINTS_CONTEXT=extension-hints”) in new stack
    — Executing [s@set-global-tenant-vars:7] Set(“PJSIP/Grandstream-000000d1”, “__DEFAULT_COS=cos-all”) in new stack
    — Executing [s@set-global-tenant-vars:8] Return(“PJSIP/Grandstream-000000d1”, “”) in new stack
    — Executing [s@cos-all:7] GotoIf(“PJSIP/Grandstream-000000d1”, “0?local-dialing”) in new stack
    — Executing [s@cos-all:8] NoOp(“PJSIP/Grandstream-000000d1”, “Check if is an Emergency Call”) in new stack
    — Executing [s@cos-all:9] GotoIf(“PJSIP/Grandstream-000000d1”, “0?emergency-calls,560,1”) in new stack
    — Executing [s@cos-all:10] Gosub(“PJSIP/Grandstream-000000d1”, “sub-lockphone-check,s,1”) in new stack
    — Executing [s@sub-lockphone-check:1] NoOp(“PJSIP/Grandstream-000000d1”, “SUB: LOCK PHONE CHECK”) in new stack
    — Executing [s@sub-lockphone-check:2] GotoIf(“PJSIP/Grandstream-000000d1”, “1?unlock”) in new stack
    — Goto (sub-lockphone-check,s,12)
    — Executing [s@sub-lockphone-check:12] Return(“PJSIP/Grandstream-000000d1”, “”) in new stack
    — Executing [s@cos-all:11] Gosub(“PJSIP/Grandstream-000000d1”, “sub-local-dialing,s,1”) in new stack
    — Executing [s@sub-local-dialing:1] NoOp(“PJSIP/Grandstream-000000d1”, “Trying to determine if is a local extension”) in new stack
    — Executing [s@sub-local-dialing:2] GotoIf(“PJSIP/Grandstream-000000d1”, “0?:return”) in new stack
    — Goto (sub-local-dialing,s,5)
    — Executing [s@sub-local-dialing:5] Return(“PJSIP/Grandstream-000000d1”, “”) in new stack
    — Executing [s@cos-all:12] GotoIf(“PJSIP/Grandstream-000000d1”, “0?end-call”) in new stack
    — Executing [s@cos-all:13] Goto(“PJSIP/Grandstream-000000d1”, “cos-all-post,560,1”) in new stack
    — Goto (cos-all-post,560,1)
    — Executing [560@cos-all-post:1] Gosub(“PJSIP/Grandstream-000000d1”, “sub-set-call-vars,app-incoming,1”) in new stack
    — Executing [app-incoming@sub-set-call-vars:1] NoOp(“PJSIP/Grandstream-000000d1”, “Incoming Call App CDR”) in new stack
    — Executing [app-incoming@sub-set-call-vars:2] GotoIf(“PJSIP/Grandstream-000000d1”, “1?:return”) in new stack
    — Executing [app-incoming@sub-set-call-vars:3] Set(“PJSIP/Grandstream-000000d1”, “CDR(source)=210”) in new stack
    — Executing [app-incoming@sub-set-call-vars:4] Set(“PJSIP/Grandstream-000000d1”, “CDR(tenant)=vitalpbx”) in new stack
    — Executing [app-incoming@sub-set-call-vars:5] Set(“PJSIP/Grandstream-000000d1”, “CDR(destination)=560”) in new stack
    — Executing [app-incoming@sub-set-call-vars:6] Return(“PJSIP/Grandstream-000000d1”, “”) in new stack
    — Executing [560@cos-all-post:2] NoOp(“PJSIP/Grandstream-000000d1”, “Custom Application: Prueba Código”) in new stack
    — Executing [560@cos-all-post:3] Goto(“PJSIP/Grandstream-000000d1”, “app-time-condition,TC-1,1”) in new stack
    — Goto (app-time-condition,TC-1,1)
    — Executing [TC-1@app-time-condition:1] NoOp(“PJSIP/Grandstream-000000d1”, “Time Condition: Abierto”) in new stack
    — Executing [TC-1@app-time-condition:2] Set(“PJSIP/Grandstream-000000d1”, “TC_TIMEZONE=Europe/Paris”) in new stack
    — Executing [TC-1@app-time-condition:3] Gosub(“PJSIP/Grandstream-000000d1”, “TG-1,s,1”) in new stack
    — Executing [s@TG-1:1] NoOp(“PJSIP/Grandstream-000000d1”, “Time Group: Time Group Abierto”) in new stack
    — Executing [s@TG-1:2] Set(“PJSIP/Grandstream-000000d1”, “__TGMATCH=0”) in new stack
    — Executing [s@TG-1:3] GotoIfTime(“PJSIP/Grandstream-000000d1”, “00:00-23:59,mon-sun,1-31,jan-dec,Europe/Paris?match:”) in new stack
    — Goto (TG-1,s,5)
    — Executing [s@TG-1:5] Set(“PJSIP/Grandstream-000000d1”, “__TGMATCH=1”) in new stack
    — Executing [s@TG-1:6] Return(“PJSIP/Grandstream-000000d1”, “”) in new stack
    — Executing [TC-1@app-time-condition:4] NoOp(“PJSIP/Grandstream-000000d1”, “1”) in new stack
    — Executing [TC-1@app-time-condition:5] Set(“PJSIP/Grandstream-000000d1”, “OVERRIDE_STATE=no”) in new stack
    — Executing [TC-1@app-time-condition:6] GotoIf(“PJSIP/Grandstream-000000d1”, “0?:check-default”) in new stack
    — Goto (app-time-condition,TC-1,9)
    — Executing [TC-1@app-time-condition:9] GotoIf(“PJSIP/Grandstream-000000d1”, “1?match”) in new stack
    — Goto (app-time-condition,TC-1,13)
    — Executing [TC-1@app-time-condition:13] NoOp(“PJSIP/Grandstream-000000d1”, “Time Condition Matched”) in new stack
    — Executing [TC-1@app-time-condition:14] Goto(“PJSIP/Grandstream-000000d1”, “app-ivr,IVR-1,1”) in new stack
    — Goto (app-ivr,IVR-1,1)
    — Executing [IVR-1@app-ivr:1] Goto(“PJSIP/Grandstream-000000d1”, “IVR-1,s,1”) in new stack
    — Goto (IVR-1,s,1)
    — Executing [s@IVR-1:1] NoOp(“PJSIP/Grandstream-000000d1”, “IVR: BienVenida”) in new stack
    — Executing [s@IVR-1:2] Set(“PJSIP/Grandstream-000000d1”, “INVALIDATTEMPTS=0”) in new stack
    — Executing [s@IVR-1:3] Set(“PJSIP/Grandstream-000000d1”, “TIMEOUTATTEMPTS=0”) in new stack
    — Executing [s@IVR-1:4] Set(“PJSIP/Grandstream-000000d1”, “TIMEOUT(digit)=2”) in new stack
    — Digit timeout set to 2.000
    — Executing [s@IVR-1:5] Set(“PJSIP/Grandstream-000000d1”, “TIMEOUT(response)=0”) in new stack
    — Response timeout set to 0.000
    — Executing [s@IVR-1:6] Answer(“PJSIP/Grandstream-000000d1”, “”) in new stack
    — Executing [s@IVR-1:7] NoOp(“PJSIP/Grandstream-000000d1”, “IVR Menu Begin”) in new stack
    — Executing [s@IVR-1:8] BackGround(“PJSIP/Grandstream-000000d1”, “/var/lib/vitalpbx/static/30fc3876b172afa8/recordings/e4da3b7fbbce2345d7772b0674a318d5”) in new stack
    — <PJSIP/Grandstream-000000d1> Playing ‘/var/lib/vitalpbx/static/30fc3876b172afa8/recordings/e4da3b7fbbce2345d7772b0674a318d5.slin’ (language ‘en’)
    == Spawn extension (IVR-1, s, 8) exited non-zero on ‘PJSIP/Grandstream-000000d1’

    Can you assist?

    0
  • The forum ‘Reporting an Issue’ is closed to new topics and replies.