- Shipped
- October 6, 2026 at 12:55 AM UTC
- Author
- Kamo
- Commit
- 37c0665
Checked against Harmony Home Loans' JustCall account (read-only GETs): the newest 100 of its 1,058 /calls match PHONE_CALL_LOG one for one, so the ordinary log syncs. Two things never reached Kamo. 1. No synced call was credited to anyone (all 145 rows member_id NULL). An account-wide log answers every extension with the same page, the sweep credited only the extension its loop was visiting, and JustCall names who took a call by agent_id, never by putting an extension on either end. CallLogEntry.agentExternalId now carries agent_id (JustCallProvider), and the sweep credits the extension whose externalId it is — the same id the voicemail sweep already files messages under — else the asked extension when it is on the call, as before. 2. The Sales Dialer was never read. JustCall keeps it out of /calls entirely: 13,085 calls there, nearly all of Harmony's outbound calling, none on any lead's Communications tab. **************** (default empty; JustCall reads /sales_dialer/calls newest first) feeds **************** page until a call already held, a short page, or MAX_DIALER_PAGES_PER_TICK (5) — a predictive campaign dials ~100 numbers in 7 minutes, so one page per 10-minute tick would drop calls, and the cap keeps a first sweep off JustCall's 30/min budget. Ids are "sd:<call_id>" (a separate sequence from /calls ids). Credited and linked to leads like any call; all outbound, so none reaches the missed-call badge. Read-only: nothing dials or texts. Crediting re-read calls would have handed Myles and Jorge dozens of weeks-old missed calls on their phone badges at once, so CallLogIngestService stamps missedSeenAt on an INBOUND MISSED call first credited more than 24 hours after it rang — the same line D17 draws for voicemail cards. The call the report was about (lead 1200096283021650986, Oct 5) is in neither JustCall log; the assigned agent's last outbound JustCall call was a Sales Dialer call on Sep 29. Tests: JustCallProviderTest +3 (agent on a call; dialer mapping; agent-scoped dialer read), **************** (7), **************** (6) — RED first, 10 failures on the surface-only code. Full suite 946/947; the one failure, **************** fails identically on origin/main.
