Skip to content

Feature Suggestion - IndividualCallee Dispatch Rule ({called-number}::{caller-number}) #450

@yaniv-peretz

Description

@yaniv-peretz

Request for Feature

Feature

Add a 4th dispatch rule: IndividualCallee for inbound SIP calls.

The outcome destination room name would follow the format:
{room-prefix}-{called-number}::{caller-number}

Example

SIP Call from +123+456
Expected room name: test-+456::+123

Usage / Reason

Current dispatch rules expose either the caller-number or the called-number.
This proposed rule allows encoding both in the room name, enabling:

  • Multi-tenant caller systems.
  • Agent instructions determined by the called number.
  • Caller context determined by the caller number.

This separation is critical in environments where the same system handles calls for multiple companies/clients, but agent behavior depends on which company is being called.


Example Scenario

  • EndUserB calls CompanyA.
  • With IndividualCallee, the room name becomes unique per callee-caller pair, allowing proper routing and context injection.

Reference

@dennwc

Relevant code location:
sip.go#L98

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions