Skip to content

SIP Trunk Configuration Authorization Error #318

Description

@dedayoa

I am using the livekit cloud and I have created a SIP Inbound trunk to accept requests only from specific IP addresses. The relevant piece of code looks like the below

  const trunkOptions = {
    allowedAddresses: [A.B.C.D]
  } as CreateSipInboundTrunkOptions
  try {
    const trunk = await sipClient.createSipInboundTrunk(
      name,
      numbers,
      trunkOptions
    );
    return trunk
  } catch (e) {
    logger.error("Failed to create livekit sip trunk", e);
  }

Inbound calls do not succeed and in the telephony logs, I get "call was not authorized by trunk configuration".
Any ideas on why this doesn't work?

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