DEV Community

Xianghua Feng
Xianghua Feng

Posted on

Whose number is this if they ask you to call back? Logging return-call claims in Python

A missed call, a voicemail that says "we will ring back", or a screening message that asks you to return the call can feel like unfinished business. Whose number is this is the wrong first question if you have no record of an enquiry or an appointment. A more useful one is whether the claimed return matches something you already opened, and whether you are about to place the next call on the same unauthenticated CLI.

About this post: This piece was commissioned and paid for by whocallme.co.uk. AI tools helped draft it. It uses anonymous visitor notes from five number pages, together with a small standard-library log that classifies return-call claims against records you already hold. These are not calls I received. The post does not identify a number holder. The listing uses invented rows and Ofcom drama-range numbers only.

Five pages, five shapes of "we'll get back to you"

0333 202 9470 appears as a non-geographic, UK-wide line. The fetch used for this post showed 10 searches, two reports and a Neutral rating. The page first-seen label was 2026-10-27, which is not a date for the visitor notes. Both notes arrived as imports; the original publication dates are not given. This page should not be flattened. One note, labelled Legitimate by the visitor, says they had already booked a British Gas appointment to replace a smart meter; a caller checked they were still available, the visitor confirmed, and the call ended. The other, labelled Scam/Fraud, is different: the visitor did not answer, and an automated voicemail they described as sounding like AI said it was British Gas, that the call was "not important", and that they would ring back another day. The visitor wrote that the call came up as British Gas, and advised others not to call back. A display name is not a verified identity.

01823 774657 is recorded as a landline (66 searches, two reports, Neutral; first-seen label 2026-10-15). Both imported notes describe a caller who asked for company directors, gave a short name, and would not give a full company name. In one, the visitor was told the caller would call back; the directors, the visitor wrote, had not heard of him. In the other, the caller spoke of "phase 2 completion of the network", then was rude when told the organisation had its own IT department. Personal names from those notes are not repeated here.

01603 859636 is recorded as a landline (74 searches, three reports, Positive; first-seen label 2026-10-30). Two imported notes say the call was not answered. The third, labelled Legitimate, is the one that matters for the log: the visitor writes that they know they should not have called back, but the CLI looked local. They reached an automated message saying it was a Boots Opticians booking team, which, they said, made sense because they had been receiving texts about an eye test. A Positive rating does not make the inbound CLI a verified return channel.

01274 790599 appears as a Bradford-area landline (29 searches, two reports, Negative, plus a relative "days ago" first-seen label). One imported note says call screening played a message from "Solutions", offering an overview of services and asking the recipient to call back. The other says a message asked the visitor to call back because the caller was looking forward to hearing from them. The visitor writes that they do not know the number and will not return it.

01726 254220 is recorded as a landline (29 searches, one report, Positive, plus a relative "days ago" first-seen label). The single imported note, labelled Legitimate, says a surveyors' firm the visitor named was calling back after the visitor had enquired about a Land Registry compliant plan. That is the useful contrast: the recipient already had an outbound enquiry. One short note cannot prove who was calling.

Nobody has independently confirmed these visitor notes. A number or a name on the display can be copied, reused or invented.

A return-call claim is not a trusted channel

An inbound call you did not start arrives unauthenticated. A voicemail that says they will ring back, or a screening message that asks you to call back, is still only a claim. A display name that matches a firm you use is only a label the inbound call presented.

The useful test is an artefact you already hold: a booking reference, a text thread you already had, a written enquiry, or a diary entry. If that record exists, finish the check through the same route you used to create it, not necessarily through the CLI that just rang. If it does not exist, "we will call back" and "please call us back" are not reasons to create one by returning the call. Take Five to Stop Fraud advice points in the same direction. The log below records the type of return-call claim and whether you already had a matching record; it does not issue a verdict on a CLI.

A small stdlib log

The listing below is standard-library Python only. All rows are made up, and the CLIs are Ofcom drama ranges (0113 496, 0114 496, 020 7946, 07700 900), reserved for fiction.

# Invented Ofcom drama-range identifiers only. Not for dialling.
# Fields: when, cli, claimed, kind, own_record, display_shown, i_returned

EVENTS = [
    ("2026-11-24 09:10 UTC", "01134960201", "utility-appointments", "appointment_held", True, True, False),
    ("2026-11-24 09:40 UTC", "01134960202", "utility-appointments", "will_ring_back", False, True, False),
    ("2026-11-24 11:15 UTC", "02079460201", "unspecified-firm", "will_ring_back", False, False, False),
    ("2026-11-24 13:05 UTC", "01144960201", "opticians-booking", "you_called_them", True, False, True),
    ("2026-11-24 15:20 UTC", "07700900201", "solutions-overview", "please_call_back", False, False, False),
    ("2026-11-24 16:45 UTC", "01134960203", "surveyors", "after_your_enquiry", True, False, False),
]


def tag(ev):
    when, cli, claimed, kind, own_record, display_shown, i_returned = ev
    marks = []
    if not i_returned:
        marks.append("unauthInbound")
    if i_returned:
        marks.append("openedByMe")
    if display_shown:
        marks.append("displayNameShown")
    if not own_record:
        marks.append("noOwnRecord")
    else:
        marks.append("ownRecordPresent")
    if kind in {"please_call_back", "you_called_them", "will_ring_back"} and not own_record:
        marks.append("callbackWithoutRecord")
    if kind == "you_called_them":
        marks.append("returnedInboundCli")
    marks.append("type:" + kind)
    return marks


for ev in EVENTS:
    when, cli, claimed, kind, own_record, display_shown, i_returned = ev
    print(
        f"{when} CLI={cli} claimed={claimed} type={kind} "
        f"flags={','.join(tag(ev))}"
    )

risky = [ev[1] for ev in EVENTS if "callbackWithoutRecord" in tag(ev)]
returned = [ev[1] for ev in EVENTS if "returnedInboundCli" in tag(ev)]
print("callbackWithoutRecord CLIs:", ", ".join(risky) or "none")
print("returnedInboundCli CLIs:", ", ".join(returned) or "none")
Enter fullscreen mode Exit fullscreen mode

Example run:

2026-11-24 09:10 UTC CLI=01134960201 claimed=utility-appointments type=appointment_held flags=unauthInbound,displayNameShown,ownRecordPresent,type:appointment_held
2026-11-24 09:40 UTC CLI=01134960202 claimed=utility-appointments type=will_ring_back flags=unauthInbound,displayNameShown,noOwnRecord,callbackWithoutRecord,type:will_ring_back
2026-11-24 11:15 UTC CLI=02079460201 claimed=unspecified-firm type=will_ring_back flags=unauthInbound,noOwnRecord,callbackWithoutRecord,type:will_ring_back
2026-11-24 13:05 UTC CLI=01144960201 claimed=opticians-booking type=you_called_them flags=openedByMe,ownRecordPresent,returnedInboundCli,type:you_called_them
2026-11-24 15:20 UTC CLI=07700900201 claimed=solutions-overview type=please_call_back flags=unauthInbound,noOwnRecord,callbackWithoutRecord,type:please_call_back
2026-11-24 16:45 UTC CLI=01134960203 claimed=surveyors type=after_your_enquiry flags=unauthInbound,ownRecordPresent,type:after_your_enquiry
callbackWithoutRecord CLIs: 01134960202, 02079460201, 07700900201
returnedInboundCli CLIs: 01144960201
Enter fullscreen mode Exit fullscreen mode

The first invented row is an inbound confirmation of an appointment you already hold. The second and third say they will ring back, with no matching record. The fourth is the habit in the opticians note: you still returned the inbound CLI. The fifth is a "please call us back" message with no record. The sixth is an inbound return after an enquiry you made. The log flags callbackWithoutRecord where a return is promised or requested with no matching file, and returnedInboundCli where you placed the next call. It does not mark a row as safe. Store your log offline. Do not paste names or appointment details.

How to use a row after you have logged it

  1. If there is no record of an enquiry or appointment, do not return the CLI, and do not wait on it for a promised second call.
  2. If a display name matches a firm you use, still open that firm's official channel.
  3. If you already booked an appointment, confirm it from the confirmation you already have, not only from the inbound call.
  4. If you already made an enquiry, you can still ask the caller to continue in the thread or reference you already have.
  5. If you did call a missed CLI back, log that fact, then move any genuine business onto a channel you trust.

What to take from the five pages

The five sets of notes still leave the number holder unknown. They show a booked appointment and, on the same page, a "we will ring back" voicemail; a caller who would not name the firm and said they would call back; a local CLI a visitor returned; a "please call us back" message with no prior request; and a return after an enquiry the recipient had already made. That pattern is a reason to look up the number page before you return a missed call, then to record whether the claimed return matches a file you already opened.

Top comments (0)