SMSGatewayCenter Blog

Voice Call Compliance in India: 140, 1600 and 1601 Numbers, A2P Declaration and a Pre-Dial Gate

TRAI's 2025 and 2026 amendments changed what counts as a transactional voice call, moved login OTPs into the service class, put promotional calls on 140 numbers and service calls on 1600 or 1601, and made undeclared automated calls spam by definition. Here's how to classify every call before you dial it, with tested Python, a ledger schema and a go-live checklist.

Featured image for Voice Call Compliance in India: 140, 1600 and 1601 Numbers, A2P Declaration and a Pre-Dial Gate
Abstract teal shapes passing through a blue geometric gate and becoming sound waves, with blocked shapes stacked in orange below
Every automated call gets classified and checked before it rings. The ones that fail stop at the gate, with a reason you can read later.

Table of Contents

  1. The Short Answer
  2. TL;DR
  3. What Changed in 2025 and 2026, and What Didn’t
  4. The Call Classes the Regulations Define
  5. The Thirty-Minute Rule That Decides Transactional
  6. Number Series: 140, 1600 and 1601
  7. A2P Declaration and Your CLI Ranges
  8. Consent, Preferences and Who You May Call
  9. Calling Windows
  10. How Complaints Turn Into Suspensions
  11. The Pre-Dial Gate at a Glance
  12. The Classifier and Gate in Python
  13. The Gate Ledger Schema
  14. Wiring the Gate to VoiceApi/send
  15. Voice OTP Under the New Service Definition
  16. Watching Your Own Complaint Exposure
  17. Credential Misuse and the Three-Day Clock
  18. Decision Matrix
  19. Testing the Gate
  20. Go-Live Checklist
  21. Unspecified Behaviour and How to Code Around It
  22. FAQs

The Short Answer

Before your code dials anyone, it has to know which kind of call it’s making, because in India the class decides almost everything else: which number series the call goes out on, whether you need consent, whether the person’s DND preference applies, and what time of day you’re allowed to ring.

TRAI’s Telecom Commercial Communications Customer Preference Regulations (TCCCPR 2018) were amended twice recently, in February 2025 and again on 18 September 2026. Put together, the parts that matter for automated voice are these:

  • A transactional call is one made to your customer in response to a transaction the customer started, within thirty minutes of that transaction. Payment OTPs and transaction alerts fit. A reminder sent the next morning doesn’t.
  • An OTP for authentication (app login, password reset, two-factor) is now a service call. The 2026 amendment moved it there and took “apps login” out of the transactional definition.
  • Promotional calls go out on 140 series numbers. Service and transactional calls go out on 1600 (BFSI and government) or 1601 (utilities, courier and logistics in phase one). Any promotional content mixed into a call makes the whole call promotional.
  • Every sender has to declare its automated (A2P) calling in advance, with the CLI ranges it’ll use, and the operator records that declaration on the DLT platform. An A2P call made without that declaration is treated as unsolicited commercial communication.

So build a small gate in front of your dialler. It classifies each call from a fixed list of purposes, checks the rules for that class, picks the right sending identity, records the decision with its reasons, and refuses anything it can’t classify. The rest of this page builds that gate in tested Python and wires it to VoiceApi/send.

TL;DR

  • Classify first, dial second. The class comes from a purpose your code declares (payment_otp, login_otp, offer), never from whatever the audio happens to say.
  • Transactional means a customer-initiated transaction and thirty minutes or less since it happened. Outside that, block the call. Don’t quietly relabel it.
  • Login, password reset and 2FA OTPs are service calls under the 2026 text. They still need the recipient to be your customer.
  • Service calls that need explicit consent get seven days from that consent, renewable by the customer.
  • Promotional calls need a 140 number, a calling window, and either explicit consent or a route that scrubs against the national preference register. Mixed content counts as promotional.
  • Declare your A2P calling and CLI ranges to your originating operator before the first automated call. Undeclared means spam.
  • Five or more complaints from unique recipients in ten days is the threshold that triggers operator action in several paths. Track your own count per CLI and alert well before that.
  • If your access credentials are found to be misused, the 2026 text gives you three business days to reset passwords and API keys. Rehearse it.
  • Save the gate decision before the network call, and keep transactionId as text.

What Changed in 2025 and 2026, and What Didn’t

The principal rules are still TCCCPR 2018. Two amendments rewrote large parts of them, and a set of TRAI Directions put dates on the number series.

The Second Amendment, notified on 12 February 2025 (TRAI regulation text), redefined the call types. It defined a Promotional Voice Call and said mixed content makes a call promotional. It tied “transactional” to a customer-initiated transaction within thirty minutes. It split “service” into calls to your own customers about something they bought, and calls that need explicit consent, valid for seven days. It also required every sender to tell its originating operator in writing, in advance, that it uses auto diallers or robo-calls and why.

The Third Amendment, dated 18 September 2026 (TRAI regulation text), went further on automated voice:

  • It defines an Application-to-Person (A2P) call as a voice call “initiated by an application, software system, or automated platform without direct human dialling”, including autodialling, robo-calls and pre-recorded or artificial voice.
  • It replaces the old auto dialler intimation with a declaration of A2P calling, including the CLI ranges you’ll use, recorded on the DLT platform by the originating operator. A call made without that prior declaration is treated as unsolicited commercial communication.
  • It moves OTPs for authentication (app login, password reset, two-factor) into the service definition, and deletes “apps login” from the transactional one.
  • It lets service explicit consent be renewed by the customer for another seven days at a time.
  • It lets a terminating operator charge the originating operator up to Rs. 0.05 per minute for A2P calls, with an exemption for calls from 140xx, 1600xx, 1601xx and other designated series.
  • It says no CLI from those designated series may be flagged to recipients as “Suspected UCC/spam”.
  • It adds an AI-based “suspected high probability UCC CLI” flag, and a three-business-day clock to reset credentials if your headers or templates are misused.

The amendment comes into force in stages: thirty days after publication in the Official Gazette for most provisions, sixty days for some (the A2P declaration, the A2P termination charge and the header misuse rules among them), and ninety days for the items in its Annexure. Counted from the notification date, ninety days lands on 17 December 2026, so by the end of this year every part of it should be live.

The number series came through Directions and press notes rather than the amendments. TRAI mandated 1600 numbers for service and transactional calls by entities regulated by RBI, SEBI and PFRDA, with deadlines from 1 January to 15 March 2026 (PR 135/2025), and for IRDAI-regulated insurers by 15 February 2026 (PR 151/2025). On 10 August 2026 it started phase one of the 1601 series for utilities, courier and logistics (PR 113/2026).

What didn’t change: commercial communication still has to come from a registered sender using registered headers or special-series numbers. Transactional and service calls still don’t need explicit consent, and BLOCK PROMO still doesn’t block them. Complaints still have to arrive within seven days of the call to count as complaints rather than reports. And the national preference register still lets people block promotional calls by category, time band and day type.


The Call Classes the Regulations Define

Here are the classes your gate has to tell apart. The definitions are paraphrased from the 2025 and 2026 texts, so check the regulation if a call sits near a boundary.

ClassWhat it isConsentPreference register
TransactionalTo your customer, in response to a customer-initiated transaction, within 30 minutes. OTPs for a payment, transaction alerts, refund informationNot requiredDoesn’t block it
Service (information)To your customer about something they’ve bought: warranty, recall, safety, periodic balance alerts, delivery updates, OTPs for authenticationNot requiredDoesn’t block it
Service (with explicit consent)To a recipient, to facilitate an ongoing purchase or use, not promotionalExplicit, valid seven days, renewableDoesn’t block it
PromotionalPromotional material or an advert, or anything mixed with itExplicit consent overrides the register; otherwise the register appliesApplies, by category, time band and day type
GovernmentOn the directions of central or state government, a constitutional body, or TRAI, through the DLT platformNot requiredCan’t be blocked

Three things in that table trip people up.

First, “your customer” carries real weight. The service (information) class is for people who already bought something from you. A prospect who filled in a form isn’t a customer, so a call to them about that product isn’t a service call.

Second, the mixed-content rule cuts one way only. Add “and while you’re here, our new card has zero fees” to a delivery update and the whole call becomes promotional. There’s no reverse rule that makes a promotional call transactional because it mentions an order number. The SMS side follows the same split, covered in transactional vs promotional SMS.

Third, the government class isn’t something you can choose. It’s defined by who directs them. If you’re a private company sending public-interest reminders on contract, that isn’t the government class.


The Thirty-Minute Rule That Decides Transactional

The 2025 definition says a transactional call is made “in response to Customer initiated transaction within thirty minutes of the transaction”. That gives you a test you can actually code: you need the time of the customer’s transaction, and the call has to be placed no more than thirty minutes after it.

That has some consequences you’ll feel in production:

  • Store the transaction time on the job. When your payment service asks for a voice alert, it passes customer_txn_at along with the request. The dialler can’t reconstruct it later from logs.
  • Queues eat your budget. If a voice job sits behind a large promotional batch for 35 minutes, it’s no longer transactional when it finally gets dialled. Give transactional calls their own queue, or at least their own priority, and check the clock at dial time, not at enqueue time.
  • Redials count too. A redial of a transactional call 31 minutes after the transaction is outside the window. If your platform redials on its own schedule, budget for that inside the thirty minutes. With a 5-minute interval and two redials, the last attempt is at least 10 minutes after the first, so the first attempt has to start by minute 20 at the latest.
  • Don’t relabel late calls. A late transaction alert might fit the service (information) class if it’s to your customer and about something they bought. But that’s a decision a person should make once, by adding a separate purpose like balance_alert, not something the dialler does silently when it notices it’s late. Blocking with a reason is easier to defend than a class that changed under you.

A future transaction time is also a bug, not a feature. If customer_txn_at is later than the dial time, something upstream has its clocks or zones wrong. The gate in the code section treats that as outside the window.


Number Series: 140, 1600 and 1601

India now separates commercial voice traffic by the number it comes from, so the recipient can tell what kind of call it is before answering.

SeriesUsed forWhoStatus
140xxPromotional callsRegistered senders and telemarketers in any sectorMandated for promotional calls
1600xxService and transactional callsBFSI entities (RBI, SEBI, PFRDA and IRDAI regulated) and governmentDeadlines from 1 January to 15 March 2026 for the listed regulated entities
1601xxService and transactional callsUtilities, courier and logistics (phase one)Directed 10 August 2026; operators to onboard within 90 days; allotted directly to entities, not to aggregators

A few rules hang off that table. The 1601 press note says those numbers “shall not be used for promotional voice calls by any entity”, and the 2025 regulation set out separate enforcement for promotional calls made from the series meant for service and transactional calls. The 2026 amendment exempts A2P calls from these designated series from the new termination charge, and says no CLI from them may be flagged to recipients as suspected spam.

For your code, the rule is this: a call’s class picks the sending identity, and an identity never carries more than one kind of traffic. If your promotional and transactional calls share one account or one CLI range, one mixed-content mistake puts a promotional call on a 1600 number, and that’s the case the regulations single out.

If you’re outside BFSI, government and the phase-one 1601 sectors, there may be no designated service and transactional series for you yet. Keep those calls on whatever identity your provider has registered and declared for that purpose, and still keep them apart from promotional traffic. The gate below calls that case ts-declared.


A2P Declaration and Your CLI Ranges

Under the 2026 text, every sender declares its A2P calling to the originating operator in advance, “along with the details such as Calling Line Identification (CLI) ranges to be used for making A2P calls”. The operator records it on the DLT platform with the number resources assigned to you. A call made without that declaration “shall be treated as Unsolicited commercial communication”.

If you’re tempted to argue that your calls are special, read TRAI’s reasoning in the explanatory memorandum first. It says the declaration applies to all A2P calls, not just commercial ones, because limiting it “may result in regulatory arbitrage”. It also turned down requests to exclude calls with a live agent, because operators can’t technically tell which A2P calls have a human on them. And it points out that in April 2026, 15,736 of 20,591 disconnections for these violations were SIP/PRI connections used for A2P calling.

Your code can’t file the declaration. Your provider and operator handle that. What your code can do is refuse to dial from anything that hasn’t been declared:

  • Keep a sender profile in configuration: your sector, and the declared CLI range for each kind of traffic (promotional, and ts for transactional and service).
  • Make the gate look up the range for the call’s class and block with a2p_not_declared if it’s missing. That turns a missing declaration into a failed call at your end instead of a complaint at the operator’s.
  • Treat the profile as something compliance signs off, not something a developer edits to unblock a release. Put it behind code review and keep a history.
  • When the range changes, change the profile and bump a rules_version. Every gate decision records the version it used, so you can show later which declaration a call relied on.

The memorandum also mentions declaring the levels or series assigned to you, and the regulation keeps “any other details as specified by the Authority from time to time” open. Expect the declaration to grow. A profile with named fields is easier to extend than a single CLI string.


Consent rules differ by class, so your gate needs to know three things about each recipient: whether they’re your customer, whether you hold a live explicit consent of the right kind, and whether they’re on your own suppression list.

Transactional and service (information) calls don’t need explicit consent. They do need a real relationship, and they reach DND-registered numbers, which is what the transactional OBD and DND answer describes. For service (information), that’s a customer who bought the product or service the call is about. The 2026 amendment also rewrote the definition of “Relationship”: a prior or existing business relationship, an inquiry from the recipient made within the previous seven days (in writing or digitally, kept in a verifiable form), or an application from the recipient within the previous three months. Keep those timestamps if you rely on them.

Service calls that need explicit consent get it for seven days, or until the customer revokes it, whichever comes first, and the customer can renew it for another seven days at a time. Store the grant time and check it at dial time. A consent recorded at 11:00 on 1 December is still live at 10:59 on 8 December and dead at 11:00.

Promotional calls go only to people who haven’t blocked the relevant category in the preference register, or who’ve given consent in the Consent Register. If you’ve got explicit digital consent, the call can be delivered whatever their registered preference. In practice that leaves two paths:

  1. You hold explicit consent that’s registered the way the regulations describe. The 2026 definition covers consent verified directly with the recipient and recorded by the Consent Registrar, and consent you got earlier through other verifiable means that’s then registered in the Consent Register. Record the reference with the decision.
  2. You don’t, so the call must go out on a route that scrubs against the preference register. The OBD product page says DND numbers are filtered out of promotional broadcasts before dialling begins. Your gate marks those calls scrub_required and only hands them to a route that you’ve configured as scrubbed.

Your own opt-out list sits on top of all that. Someone who told you “no more offers” stays off your promotional calls even if the national register would allow them. Someone who said “don’t call me at all” stays off everything except what you’re legally bound to send. The gate takes a suppression scope per number, promotional or all. If you’re building that list across channels, see opt-out and suppression across SMS, WhatsApp, RCS and Telegram and the consent capture and evidence design.

One note from the 2026 text: revoking consent under TCCCPR stops commercial calls and messages, and the amendment says it doesn’t exempt you from your obligations under the Digital Personal Data Protection Act, 2023. Those are two separate records. Don’t let one table pretend to be both.


Calling Windows

Transactional and service calls aren’t restricted by time band. The 2026 schedule notes say transactional and service types “shall not be blocked during any time band” or day type when a customer sets preferences. A payment OTP at 23:10 is fine.

Promotional calls are different. The preference register lets people block promotional calls by time band and day type, and SMSGatewayCenter’s guidance for promotional voice campaigns, in its voice compliance answer and promotional voice campaign answer, is to call only between 10:00 AM and 8:00 PM IST. The OBD product page mentions a 9 AM to 9 PM window in another spot. When two published windows disagree, enforce the narrower one in your own validator. The gate uses 10:00 to 20:00 IST.

In code, that turns into four habits:

  • Evaluate the window in Asia/Kolkata, always. Your servers probably run in UTC. 10:00 IST is 04:30 UTC. Convert the dial time to IST before you compare.
  • The end is exclusive. A call that starts at 20:00:00 is outside the window. That avoids arguments about whether “until 8 PM” includes the minute at 8.
  • Check at dial time, and again for redials. A campaign that starts at 19:40 with two 10-minute redials will try to ring after 20:00. Either stop redials at the window edge, or stop starting first attempts early enough that the last redial still fits.
  • Scheduled campaigns need the same check. If you book with scheduleTime, check the booked time against the window before you submit, and remember a schedule can be moved later. The scheduling guide covers the time zone traps for schedule inputs.

How Complaints Turn Into Suspensions

You don’t need to memorise the operator’s whole complaint procedure, but you do need to know which numbers trigger action, because they tell you where to set your own alarms.

  • A complaint has to come within seven days of the call. After that it’s recorded as a report, not a complaint. Under the 2026 text, the operators record those late ones too.
  • For a registered sender, the operator checks the call records within two business days of getting the complaint (2026 text), then checks within three business days whether all regulatory pre-checks were done before the call.
  • For promotional calls made from the series meant for service and transactional calls, the 2025 text set a threshold of complaints from five or more unique recipients in the last ten days, after which outgoing services could be suspended pending investigation. A first violation barred all the sender’s telecom resources for fifteen days. Repeat violations meant disconnection for a year and blacklisting. The 2026 text now says action in that case follows TRAI’s directions “from time to time”, so the exact numbers can move.
  • For unregistered telemarketers, the 2026 threshold is three or more complaints from unique recipients in ten days when one of the sender’s CLIs is also flagged by the AI system, or five or more without the flag.
  • Separately, if five or more of your CLIs are flagged as “suspected high probability UCC CLI” within ten days, operators start KYC re-verification on the first instance and physical verification on the second, and the second can end in a fifteen-day bar on all your outgoing services.

The pattern is the same everywhere: unique recipients, ten-day windows, and small numbers. Five unhappy people in a week and a half can take a whole sender offline. That’s why the gate has a ledger, and why the complaint exposure query later counts unique complainants per CLI over ten days.


The Pre-Dial Gate at a Glance

The gate sits between whatever wants a call made (your payment service, your CRM, a campaign tool) and the code that calls VoiceApi/send. Nothing reaches the dialler without a decision row.

Three-panel flow showing a call request being classified by purpose, checked against the rules for its class, then either dialled from the matching sending identity or blocked with a reason
Classify from a declared purpose, check the class rules, then dial from the identity that matches the class. Every outcome gets a ledger row.

It does three jobs, in this order.

Classify. The caller passes a purpose from a fixed list. The gate maps it to a class. If the request says the audio contains promotional content, the class is promotional whatever the purpose was. An unknown purpose is refused. That last rule is the one that saves you: a developer who adds a new kind of call has to add a purpose and get its class reviewed, rather than reusing txn_alert because it happens to work.

Check. Each class has its own checks. Transactional needs a customer transaction time within thirty minutes. Service (information) needs a customer. Service with consent needs a live consent under seven days old. Promotional needs the calling window and either explicit consent or a scrubbed route. Every class needs a declared CLI range for its kind of traffic, and nobody on your suppression list for that scope.

Route and record. The class picks the sending identity: a promotional account for promotional calls, a service and transactional account for everything else. The decision, with all its reasons, is saved before the network call. Then, and only then, the dialler sends.

A blocked call isn’t an error. It’s a normal outcome with a reason code (txn_window_elapsed, outside_promo_window, no_live_service_consent) that your product can show to whoever asked for the call. It’s much easier for a product team to fix a request when it can see why the call didn’t happen. If you already run a preference centre, its purposes map neatly onto gate purposes.


The Classifier and Gate in Python

Here’s the whole gate. It’s standard library Python (3.9 or later, for zoneinfo), and it ran against the sixteen tests in the testing section.

"""Pre-dial compliance gate for automated (A2P) voice calls in India.

Classify every call before it is dialled, check the rules for its class,
and record the decision. Standard library only (Python 3.9+).
"""
from dataclasses import dataclass, field
from datetime import datetime, time, timedelta
from typing import Dict, List, Optional
from zoneinfo import ZoneInfo

IST = ZoneInfo("Asia/Kolkata")

TXN_WINDOW = timedelta(minutes=30)          # transactional: within 30 minutes
SERVICE_CONSENT_TTL = timedelta(days=7)     # explicit consent for service (ii)
PROMO_START = time(10, 0)                   # strictest published window
PROMO_END = time(20, 0)

# Purposes your product code is allowed to request. Anything else fails closed.
PURPOSE_CLASS = {
    "payment_otp": "transactional",
    "txn_alert": "transactional",
    "refund_info": "transactional",
    "login_otp": "service_info",       # OTPs for authentication are service calls
    "password_reset_otp": "service_info",
    "delivery_update": "service_info",
    "balance_alert": "service_info",
    "product_recall": "service_info",
    "purchase_followup": "service_consented",
    "offer": "promotional",
    "renewal_offer": "promotional",
}

T_AND_S = ("transactional", "service_info", "service_consented")


@dataclass(frozen=True)
class CallIntent:
    msisdn: str
    purpose: str
    requested_at: datetime            # must be timezone-aware
    has_promo_content: bool = False
    is_customer: bool = False
    customer_txn_at: Optional[datetime] = None


@dataclass(frozen=True)
class Consent:
    msisdn: str
    kind: str                         # 'service_explicit' | 'promo_explicit'
    granted_at: datetime
    revoked_at: Optional[datetime] = None
    ref: str = ""


@dataclass(frozen=True)
class SenderProfile:
    sector: str                       # 'bfsi' | 'government' | 'utilities' | ...
    declared_cli: Dict[str, str]      # 'promotional' / 'ts' -> declared CLI range


@dataclass
class Decision:
    allowed: bool
    call_class: str
    reasons: List[str] = field(default_factory=list)
    series: str = ""
    cli_range: str = ""
    scrub_required: bool = False
    consent_ref: str = ""


def required_series(call_class: str, sector: str) -> str:
    if call_class == "promotional":
        return "140"
    if sector in ("bfsi", "government"):
        return "1600"
    if sector in ("utilities", "logistics"):
        return "1601"
    return "ts-declared"


def classify(intent: CallIntent) -> str:
    if intent.has_promo_content:
        return "promotional"          # mixed content is promotional
    return PURPOSE_CLASS.get(intent.purpose, "unclassified")


def _active(c: Consent, kind: str, now: datetime, ttl=None) -> bool:
    if c.kind != kind or c.granted_at > now:
        return False
    if c.revoked_at is not None and c.revoked_at <= now:
        return False
    return ttl is None or now - c.granted_at < ttl


def gate(intent: CallIntent, profile: SenderProfile,
         consents: List[Consent], suppressed: Dict[str, str]) -> Decision:
    now = intent.requested_at
    if now.tzinfo is None:
        raise ValueError("requested_at must be timezone-aware")
    cls = classify(intent)
    d = Decision(allowed=False, call_class=cls)
    if cls == "unclassified":
        d.reasons.append("unknown_purpose")
        return d

    d.series = required_series(cls, profile.sector)
    key = "promotional" if cls == "promotional" else "ts"
    d.cli_range = profile.declared_cli.get(key, "")
    if not d.cli_range:
        d.reasons.append("a2p_not_declared")

    scope = suppressed.get(intent.msisdn)
    if scope == "all" or (scope == "promotional" and cls == "promotional"):
        d.reasons.append("suppressed")

    mine = [c for c in consents if c.msisdn == intent.msisdn]

    if cls == "transactional":
        t = intent.customer_txn_at
        if t is None:
            d.reasons.append("no_customer_transaction")
        elif not (timedelta(0) <= now - t <= TXN_WINDOW):
            d.reasons.append("txn_window_elapsed")
    elif cls == "service_info":
        if not intent.is_customer:
            d.reasons.append("not_a_customer")
    elif cls == "service_consented":
        live = [c for c in mine
                if _active(c, "service_explicit", now, SERVICE_CONSENT_TTL)]
        if live:
            d.consent_ref = max(live, key=lambda c: c.granted_at).ref
        else:
            d.reasons.append("no_live_service_consent")
    elif cls == "promotional":
        local = now.astimezone(IST).time()
        if not (PROMO_START <= local < PROMO_END):
            d.reasons.append("outside_promo_window")
        live = [c for c in mine if _active(c, "promo_explicit", now)]
        if live:
            d.consent_ref = max(live, key=lambda c: c.granted_at).ref
        else:
            d.scrub_required = True   # must go out on a preference-scrubbed route

    d.allowed = not d.reasons
    return d

If your policy differs, these are the places to change:

  • PURPOSE_CLASS is the policy. It’s deliberately a plain dictionary so a compliance reviewer can read it. payment_otp is transactional because it answers a customer’s payment. login_otp and password_reset_otp are service (information) because the 2026 text puts OTPs for authentication there.
  • Mixed content is a flag the caller sets. The gate can’t listen to audio. Make has_promo_content part of the clip’s metadata when the clip is approved, so it can’t be forgotten per call.
  • Transactional failures don’t fall through. txn_window_elapsed blocks the call. If a late alert should still go out as a service call, that’s a new purpose with its own review.
  • The thirty-minute check is inclusive and the window end is exclusive. A call at exactly 30:00 after the transaction passes. A promotional call at exactly 20:00 fails. Pick your own edges if your legal team reads them differently, but pick them in one place.
  • Promotional calls without consent aren’t blocked, they’re marked. scrub_required tells the dialler this call may only go out on a route that filters the preference register. The dialler refuses it if no such route is configured.
  • series is informational. The gate records which series the class should use (140, 1600, 1601 or ts-declared), but the actual CLI comes from the account and the declaration. Checking the observed CLI is a test you run before go-live, covered in the unspecified behaviour section.
  • Naive datetimes raise. A dial time without a zone is how you end up comparing UTC to IST. Fail loudly.

The Gate Ledger Schema

The decision has to outlive the call. If a complaint arrives six days later, you want to answer four questions in one query: what class did we think this was, why, under which rules version, and what did the platform say.

CREATE TABLE gate_decision (
  decision_id     TEXT PRIMARY KEY,
  msisdn          TEXT NOT NULL,
  purpose         TEXT NOT NULL,
  call_class      TEXT NOT NULL,
  allowed         INTEGER NOT NULL,
  reasons         TEXT NOT NULL,          -- comma-separated reason codes
  series          TEXT NOT NULL,
  cli_range       TEXT NOT NULL,
  scrub_required  INTEGER NOT NULL,
  consent_ref     TEXT NOT NULL DEFAULT '',
  customer_txn_at TIMESTAMPTZ,
  evaluated_at    TIMESTAMPTZ NOT NULL,
  rules_version   TEXT NOT NULL
);

CREATE TABLE voice_dispatch (
  decision_id     TEXT PRIMARY KEY REFERENCES gate_decision(decision_id),
  provider_txn_id TEXT UNIQUE,            -- transactionId, kept as text
  status          TEXT NOT NULL,          -- 'sent' | 'rejected' | 'error'
  reason          TEXT NOT NULL DEFAULT '',
  dispatched_at   TIMESTAMPTZ NOT NULL
);

CREATE TABLE complaint_notice (
  notice_id       TEXT PRIMARY KEY,
  cli             TEXT NOT NULL,
  complainant     TEXT NOT NULL,          -- or an HMAC of it
  call_date       DATE NOT NULL,
  received_at     TIMESTAMPTZ NOT NULL,
  source          TEXT NOT NULL           -- 'oap_notice' | 'own_ivr' | ...
);

Notes on the columns:

  • gate_decision gets a row for every request, allowed or not. Blocked rows are how you find a product team that keeps asking for calls at 21:00.
  • reasons is a comma-separated list of the gate’s reason codes. An allowed call has an empty string.
  • rules_version names the version of PURPOSE_CLASS, the window constants and the sender profile that made the decision. Bump it whenever any of them changes.
  • customer_txn_at is stored for transactional calls so the thirty-minute check can be shown later, not just claimed.
  • voice_dispatch.provider_txn_id is text. Voice transaction IDs are long numbers, and JSON parsers in several languages round long numbers silently. The lossless JSON parsing guide shows what that does to a 19-digit ID.
  • complaint_notice holds whatever complaint information reaches you: notices from your operator or provider, or complaints your own support line takes. Store the complainant number, or an HMAC of it if your retention rules prefer that, so you can count unique complainants.

The DDL above ran as written in SQLite. In PostgreSQL, TIMESTAMPTZ is a real type and you’d add an index on complaint_notice (cli, received_at). If you already keep an outbound message table, these rows sit next to it. The outbound message table design covers the parts this schema leaves out.


Wiring the Gate to VoiceApi/send

The dialler is short because the gate did the thinking. It saves the decision, refuses anything the gate blocked, refuses scrub-required calls if no scrubbed route is configured, picks the account for the class, and posts to VoiceApi/send.

"""Dial only what the gate allowed, and record what the platform said."""
import json
import uuid

import requests

from voicegate import gate

BASE = "https://unify.smsgateway.center/VoiceApi/send"


def dial(intent, profile, consents, suppressed, cfg, save_decision, save_dispatch):
    d = gate(intent, profile, consents, suppressed)
    decision_id = str(uuid.uuid4())
    save_decision(decision_id, intent, d)          # saved before any network call
    if not d.allowed:
        return decision_id, d, None
    if d.scrub_required and not cfg["promo_route_scrubs"]:
        save_dispatch(decision_id, None, "rejected", "no_scrubbed_route")
        return decision_id, d, None

    account = cfg["accounts"]["promotional" if d.call_class == "promotional" else "ts"]
    form = {
        "userid": account["userid"],
        "sendMethod": "quick",
        "audioType": "library",
        "libraryId": cfg["clips"][intent.purpose],
        "mobile": intent.msisdn,
        "reDial": "0" if intent.purpose.endswith("otp") else "1",
        "redialInterval": "5",
        "output": "json",
    }
    try:
        r = requests.post(BASE, data=form, headers={"apikey": account["apikey"]},
                          timeout=15)
        body = json.loads(r.text, parse_int=str, parse_float=str)
    except (requests.RequestException, ValueError) as exc:
        save_dispatch(decision_id, None, "error", type(exc).__name__)
        return decision_id, d, None

    if str(body.get("status", "")).lower() != "success":
        save_dispatch(decision_id, None, "rejected", str(body.get("reason", ""))[:200])
        return decision_id, d, None
    txn = str(body.get("transactionId", ""))
    save_dispatch(decision_id, txn or None, "sent", "")
    return decision_id, d, txn

The request fields come from the voice API reference: userid, sendMethod (quick, group or bulkupload), audioType set to library, libraryId for the approved clip, mobile, reDial (0, 1 or 2), redialInterval (5, 10 or 15) and output. The apikey header is accepted on every endpoint, alongside userid, so the password stays out of the form. The reply is flat: status, mobile, invalidMobile, transactionId, statusCode and reason. The voice call API wire contract walks through every field, the schedule calls and the delivery report shapes, and the developer reference has the request samples.

Before you copy it, know this:

  • Two accounts, two keys. cfg["accounts"] holds one entry for promotional traffic and one for service and transactional traffic. Each maps to an identity your provider has registered and declared for that kind of call. Mixing them is the fastest way to put a promotional call on a 1600 number.
  • The decision is saved first. If the process dies after the POST and before the dispatch row, you still have a decision row with no dispatch, which is exactly what a reconciliation job looks for. Don’t swap the order to “save one round trip”.
  • The reply is parsed with parse_int=str. That keeps transactionId exact whether it arrives quoted or not. Read only status to decide success, as the code does. statusCode and reason are recorded for people, not branched on.
  • OTP calls don’t redial. reDial is "0" for any purpose ending in otp. An OTP that rings again ten minutes later is useless and, for a transactional OTP, may be outside the thirty minutes anyway.
  • Promotional redials are capped at one here. Combined with the window check, that keeps the last attempt from drifting past 20:00 if you stop first attempts early enough. If you raise it, recompute where your cutoff should be.
  • Duplicate protection lives outside this function. If the same request can arrive twice, put an idempotency key on it before it reaches the gate. The idempotency guide has a design that works for voice too.

For bulk campaigns you’d call VoiceApi/send with sendMethod set to group or bulkupload instead of one call per number. The gate still runs per recipient. Build the list from the numbers that passed, record a decision row for every number including the ones that didn’t, then submit the list. Blocked numbers never reach the upload file.


Voice OTP Under the New Service Definition

Voice OTP is where the 2026 change bites hardest, because the same six digits can now be two different classes.

  • An OTP that confirms a payment or other customer-initiated transaction is transactional. It’s covered by the thirty-minute rule, and in practice it’s dialled within seconds.
  • An OTP for authentication (login, password reset, two-factor) is a service (information) call under the 2026 text. It still doesn’t need explicit consent, but it does need the recipient to be your customer.

For code, that means two purposes, payment_otp and login_otp, even if they share a clip. It also means the login flow has to tell the gate whether the number belongs to a known customer. A sign-up flow that sends a voice OTP to a brand-new number is the awkward case: the person isn’t your customer yet. Give it its own purpose, signup_otp, and leave it out of PURPOSE_CLASS until someone has decided its class and recorded why. Until then the gate refuses it as unknown_purpose, which fails safe, and the SMS OTP path carries sign-ups.

On the platform side, voice OTP is a GET to VoiceApi/send with sendMethod=pin, the mobile, the pin and a pinClipId for the prompt. The voice OTP PIN API answer and how the voice OTP PIN API works cover the flow. Two habits carry over from SMS OTP:

  • Send the PIN as a string. Leading zeros matter, and a PIN typed as an integer anywhere in your stack loses them.
  • Use the same PIN on every channel. If voice is a fallback for SMS, the call reads out the code the SMS carried. The multi-channel fallback design explains why, and the OTP delivery checklist covers the SMS side.

Watching Your Own Complaint Exposure

The regulations count unique complainants over ten days. So should you, per CLI, and you should alert long before the regulator’s number.

SELECT cli,
       COUNT(DISTINCT complainant) AS unique_complainants_10d
FROM complaint_notice
WHERE received_at >= :since
GROUP BY cli
HAVING COUNT(DISTINCT complainant) >= :alert_at
ORDER BY unique_complainants_10d DESC;

Run it hourly with :since set to ten days before now and :alert_at set to your own threshold. With complaints from recipients a (twice), b and c against one CLI, where c complained eleven days ago, the query returns that CLI with 2 unique complainants: the repeat from a counts once and the old one from c falls outside the window.

Where to set :alert_at is your call. The regulatory thresholds discussed above are three (with an AI flag) and five. An alert at two gives you room to stop a campaign, pull a clip or fix a list before you’re near either. Whatever you pick, page a person. A dashboard nobody’s watching doesn’t help.

When the alert fires:

  1. Stop new first attempts from that CLI’s traffic class. Let the gate return a new reason such as paused_for_review by adding a pause flag to the sender profile.
  2. Pull the decision rows for each complainant. Check class, purpose, window, consent reference and rules_version. You’re looking for a pattern, not a single bad row.
  3. Check the audio. A service clip that someone edited to add an offer is a promotional call on the wrong series.
  4. Answer the operator with evidence. The decision rows are your record that pre-checks were done before the call, which is exactly what the operator’s investigation asks about.

Complaint data arrives late and from outside your system, so complaint_notice.received_at is when you learned about it, not when the call happened. Keep both if the notice tells you the call date.


Credential Misuse and the Three-Day Clock

The 2026 amendment tightened what happens if someone else uses your headers or templates. When misuse is noticed, the originating operator suspends the misused header or template within six hours and sends you a notice within forty-eight hours. Then you have to:

  • Reset, within three business days of the notice, all access credentials, “including passwords, API keys and system permissions” used to submit or deliver commercial communications.
  • File a complaint with law enforcement within three business days, saying whether the misuse came from compromised logins, unauthorised system access, a telemarketer or aggregator, or something else, and share a copy with the operator within two business days of filing.
  • Review all your headers, content templates and consent templates within ten business days.

If the misuse came from leaked or cloned credentials, the registrar operator de-registers all your headers and templates within five business days and you re-register them with new IDs. Until you comply, all your commercial traffic can be suspended.

Three business days is not long enough to work out a key rotation from scratch. Do the rehearsal now:

  • Keep the voice API keys in a secrets store, not in config files, so rotating them is a deploy, not a code change.
  • Know which services hold which key. The two-account setup above helps: the promotional key and the transactional key can be rotated separately.
  • Practise a rotation that doesn’t drop calls. The API key rotation guide covers the single-slot key problem, and the account security audit trail shows how to spot sessions and devices you don’t recognise.

Decision Matrix

Use this when someone asks “can we make this call?” The answer is a row, not a debate.

Table of five voice call classes against number series, consent, preference register, calling window and timing rule
Each class has one series, one consent rule and one timing rule. Mixed content always lands in the promotional row.
ClassSeriesConsentPreference registerWindowTiming ruleGate purpose examples
Transactional1600 (BFSI, government), 1601 (utilities, logistics), else your declared T/S rangeNot requiredDoesn’t block itAny time bandWithin 30 minutes of the customer’s transactionpayment_otp, txn_alert, refund_info
Service (information)Same as transactionalNot required, recipient must be a customerDoesn’t block itAny time bandNonelogin_otp, delivery_update, balance_alert, product_recall
Service (explicit consent)Same as transactionalExplicit, seven days, renewableDoesn’t block itAny time bandConsent under seven days oldpurchase_followup
Promotional140Explicit consent, or scrub against the registerApplies unless explicit digital consent10:00 to 20:00 IST (strictest published)Noneoffer, renewal_offer
Government1600Not requiredCan’t be blockedOutside your gateDirected by government or TRAINot something a private sender can claim

And the shortcuts that settle most arguments:

  • Is there any offer, upsell or advert in the audio? Promotional. Stop there.
  • Did the customer just do something, in the last thirty minutes, that this call answers? Transactional.
  • Is it an OTP for logging in or resetting a password? Service (information).
  • Is it about something the customer already bought? Service (information).
  • Is it to someone who isn’t a customer, about an ongoing purchase, with no offer? Service with explicit consent, and you’d better have the consent.
  • None of the above? Don’t make the call until it has a purpose and a class.

Testing the Gate

A gate that’s never been tested at the edges is a gate that fails at the edges. These sixteen cases cover every reason code and every boundary in the code above, and they pass against the module as printed.

TestWhat it proves
Payment OTP five minutes after the transactionAllowed, transactional, series 1600 for a BFSI sender
Transaction alert 31 minutes afterBlocked with txn_window_elapsed
Transaction alert exactly 30 minutes afterAllowed, the boundary is inclusive
Transaction time five minutes in the futureBlocked, a clock or zone bug upstream
Login OTP to a non-customer, then to a customernot_a_customer, then allowed
Delivery update with promotional content, logistics sender with no promotional rangePromotional, series 140, a2p_not_declared
Offer at 10:00, 20:00 and 09:59 ISTAllowed, blocked, blocked
Offer at 04:00 and 04:30 UTCBlocked (09:30 IST), allowed (10:00 IST)
Offer with no consentAllowed with scrub_required
Offer with explicit consentAllowed, no scrub, consent reference recorded
Offer with revoked consentBack to scrub_required
Consented service call at 6 days 23:59 and at exactly 7 daysAllowed, then no_live_service_consent
Suppression scopes promotional and allBlocks offers only, then blocks everything
Unknown purposeunknown_purpose, fails closed
Naive datetimeRaises ValueError
Courier delivery update at 22:00Allowed, series 1601

Here’s a slice of the test file so you can see the shape:

import unittest
from datetime import datetime, timezone
from voicegate import CallIntent, Consent, SenderProfile, gate, IST

BANK = SenderProfile("bfsi", {"ts": "1600XXXXXX", "promotional": "140XXXXXXX"})
M = "919800000001"


def at(h, m=0, day=3):
    return datetime(2026, 12, day, h, m, tzinfo=IST)


class GateTests(unittest.TestCase):
    def test_txn_alert_after_30_minutes_is_blocked(self):
        d = gate(CallIntent(M, "txn_alert", at(12, 31),
                            customer_txn_at=at(12, 0)), BANK, [], {})
        self.assertEqual(d.reasons, ["txn_window_elapsed"])

    def test_window_uses_ist_even_for_utc_input(self):
        utc = datetime(2026, 12, 3, 4, 0, tzinfo=timezone.utc)  # 09:30 IST
        d = gate(CallIntent(M, "offer", utc), BANK, [], {})
        self.assertIn("outside_promo_window", d.reasons)

    def test_service_consent_lasts_seven_days(self):
        c = Consent(M, "service_explicit", at(11, day=1), ref="SC-7")
        ok = gate(CallIntent(M, "purchase_followup", at(10, 59, day=8)),
                  BANK, [c], {})
        self.assertTrue(ok.allowed)
        late = gate(CallIntent(M, "purchase_followup", at(11, 0, day=8)),
                    BANK, [c], {})
        self.assertEqual(late.reasons, ["no_live_service_consent"])


if __name__ == "__main__":
    unittest.main()

The dialler has its own six tests, run with a fake requests module dropped into sys.modules: the transaction ID comes back as the exact string "6305583318236810379", a blocked call never touches the network, promotional calls use the promotional account, a scrub-required call with no scrubbed route is rejected, a network error is recorded as error, and a reply with status other than success is recorded as rejected with its reason.

Two more tests belong in staging rather than in unit tests. Place one call of each class to a handset you control and write down the CLI it showed. And book a promotional call for 19:55 with a redial, and check that nothing rings after 20:00.


Go-Live Checklist

  • Every automated call type you make has a purpose in PURPOSE_CLASS, and compliance has signed off on its class.
  • Promotional and service/transactional traffic use separate accounts, keys and declared CLI ranges.
  • Your A2P calling and CLI ranges are declared to the originating operator, and the sender profile matches the declaration.
  • Each recorded clip carries a has_promo_content flag set at approval time.
  • Transactional requests carry customer_txn_at, and transactional jobs have their own queue or priority.
  • Redial settings fit inside the thirty-minute transactional window and the 20:00 promotional cutoff.
  • Login, password reset and 2FA OTPs use service purposes; payment OTPs use a transactional purpose.
  • Service consents store a grant time, and the gate checks the seven-day limit at dial time.
  • Promotional calls without explicit consent only go out on a route you’ve confirmed filters the preference register.
  • Your own suppression list is checked with the right scope (promotional or all).
  • Every request writes a gate_decision row before any network call, including blocked ones.
  • transactionId is stored as text.
  • The complaint exposure query runs hourly and pages a person at your threshold.
  • You’ve rehearsed a full credential rotation inside three business days.
  • A staging call of each class has been placed to a test handset, and the CLI series it showed was recorded.

Unspecified Behaviour and How to Code Around It

Some of what follows isn’t pinned down by anything you can read today, either in the regulations or in the platform reference. Each item gives you a choice that stays safe whichever way the answer turns out, so none of them needs you to wait.

One. Record the CLI a test handset actually sees, per class, and refuse to run a class whose series doesn’t match. The send request has no field for choosing a caller ID, and the product page says calls show “your registered caller ID”. Before go-live, call a handset from each account and log the number shown. If the promotional account shows anything other than a 140 number, or the transactional one shows a 140 number, set that class’s range to empty in the sender profile. The gate then blocks it with a2p_not_declared until it’s fixed.

Two. Treat a promotional call as scrub-required unless you hold registered explicit consent. Whether a particular route filters the preference register for voice, and against which categories, isn’t something you can check from your side. The gate’s scrub_required flag plus a configured promo_route_scrubs switch means an unconfirmed route sends nothing promotional. A delay, not a complaint.

Three. Enforce 10:00 to 20:00 IST for promotional calls. Published windows differ (10 AM to 8 PM in the knowledge base, 9 AM to 9 PM on the product page). The narrower window satisfies both readings.

Four. Budget redials inside the class’s limits instead of relying on the platform to stop them. Whether a redial that would fall outside the promotional window, or past thirty minutes for a transactional call, is skipped automatically isn’t stated. If you stop first attempts early enough that the last redial still fits, it doesn’t matter.

Five. Keep the thirty-minute boundary inclusive and the transaction time mandatory. The regulation says “within thirty minutes” without defining the edge or how to prove the start. Recording customer_txn_at and the dial time on every transactional decision means you can show the gap either way.

Six. Give sign-up OTPs their own purpose and leave it unclassified until someone decides. Whether a voice OTP to a number that isn’t yet a customer is transactional or service isn’t settled by the definitions. An unclassified purpose fails closed, and sign-ups can use SMS OTP in the meantime.

Seven. Version every rules change and store the version on the decision. TRAI can change thresholds, consent validity and series rules by direction “from time to time”. If each decision carries rules_version, a later change never makes an old decision unexplainable.

Eight. Count unique complainants per CLI and per sender, both. The regulations count by sender in some paths and by CLI in others. Running the exposure query both ways covers both.

Nine. Store complaint dates as when you learned and, separately, when the call happened. Notices may not tell you the call date. Keeping received_at mandatory and the call date optional means the ten-day query still works, and gets more precise when the date is known.

Ten. Store voice transaction IDs as text and parse replies without converting numbers. Whether transactionId arrives quoted or as a bare number can vary by endpoint. parse_int=str gives you the exact digits in both cases.

Eleven. Keep the TCCCPR consent record and your DPDP Act record as two things. The 2026 text says TCCCPR revocation stops commercial calls and messages and doesn’t exempt you from the DPDP Act. Two records can’t contradict each other the way one overloaded flag can.


FAQs

Is a login OTP voice call transactional or service?
Service. The Third Amendment (18 September 2026) put “OTPs for authentication, such as app login, password reset, two-factor authentication” into the service definition and deleted “apps login” from the transactional one. A payment OTP is still transactional.

Do I need consent for a transactional or service voice call?
No, not explicit consent. Transactional and service (information) calls go to your own customers about their transactions or purchases. Service calls to facilitate an ongoing purchase for someone who isn’t yet a customer need explicit consent, valid for seven days and renewable by the customer.

Can I call DND-registered numbers?
Yes for transactional and service calls, which BLOCK PROMO doesn’t block. For promotional calls, only if you hold explicit digital consent, or if the person hasn’t blocked that category, time band or day type.

What’s the difference between 1600 and 1601 numbers?
1600 is for service and transactional calls by BFSI entities and government. 1601 is for service and transactional calls by other sectors, starting with utilities, courier and logistics in phase one from August 2026. Neither may be used for promotional calls.

Which number series do promotional voice calls use?
140. It’s for promotional calls by registered senders and telemarketers in any sector.

What happens if I don’t declare my A2P calling?
Every A2P call made without prior declaration to the originating operator is treated as unsolicited commercial communication, and the operator acts against you under the complaint and enforcement rules.

Does a call with a live agent count as A2P?
If an application or automated platform starts the call without a human dialling, it fits the A2P definition. TRAI considered excluding calls where a live agent joins and decided not to, because operators can’t tell which calls have one.

What time can I make promotional voice calls?
Between 10:00 and 20:00 IST if you follow the strictest published guidance, which is what the gate enforces. Transactional and service calls aren’t restricted by time band.

How many complaints does it take to get suspended?
It depends on the path, but the numbers are small: complaints from five or more unique recipients in ten days in several cases, three when combined with an AI spam flag for unregistered senders, and five flagged CLIs in ten days for KYC re-verification. Watch your own count per CLI well below that.

Does mentioning an offer at the end of a delivery update matter?
Yes. Mixed content makes the whole call promotional, so it needs a 140 number, the calling window and a promotional consent basis.

How long do I have to reset API keys after credential misuse?
Three business days from the operator’s notice, for all access credentials used to submit or deliver commercial communications, including passwords and API keys.

Can my code pick the caller ID in VoiceApi/send?
Not directly. The send call has no caller ID field, so the identity comes from the account you send with. That’s why the dialler uses one account per traffic class.


Make Every Automated Call Pass the Right Checks Before It Rings

If you’re running OBD campaigns, transaction alerts or voice OTP in India, the class of each call now decides its number series, its consent rule and its calling window. Put the gate in front of your dialler, keep promotional and transactional traffic on separate accounts, and save a decision for every call. You can try the voice API in a sandbox account, compare voice call pricing, read how automated OBD voice calls work, or create an account and start building. If you want help mapping your call types to classes, get in touch.


More from our blog

Building Recurring SMS in Your Own Scheduler: Anchored Dates, Occurrence Keys and Missed Runs

Hardening Webhook Receivers for SMS and WhatsApp: Secrets, Duplicates and the Push That Never Came

The WhatsApp 24-Hour Window as a State Machine: Session Replies, Templates and a Send Router That Never Guesses


Save this interesting page on your favorite Social Media

Blog Author logo

SMS Gateway Center Desk

SMS Gateway Center is one of the largest and leading SMS Provider in India. It is run by a large professional team to cater small companies to large corporate companies. SMS Gateway Center is associated with the best operators in India covering the entire states in India. SMS Gateway Center has been serving through its SMS Resellers in more than 20 states in India. To become our SMS Reseller, kindly contact us

Looking for the best business communication solutions, get in touch!