Netgsm SIP Trunk – IP Whitelisting and Single Concurrent Call

Hello LiveKit Team,

We are developing an AI-powered telephone assistant using LiveKit Cloud (Build plan) and a self-hosted Python AI Agent running on our own Windows PC.

Our telephony provider is Netgsm (Türkiye).

Netgsm has provided the following technical information:

  • Incoming calls can be routed directly using SIP INVITE (without SIP REGISTER).

  • SIP signaling source IP range: 185.88.7.0/24

  • Supported protocols: UDP/TCP

  • Provider-supported codecs: G.711 A-law / μ-law, G.722, and G.729

  • We plan to use G.711 PCMA/PCMU initially.

  • We want to support only one concurrent inbound phone call.

We have two questions:

1. SIP IP Whitelisting

Could you enable the allowed_addresses feature for our LiveKit Cloud project so that we can restrict incoming SIP traffic to Netgsm’s signaling IP range (185.88.7.0/24)?

Is this feature available on the free Build plan?

We can share our project ID privately if needed.

2. Single Concurrent Call Limit

We want to allow only one active phone call at a time.

If a second caller dials our number while the first call is active, we want to reject the second call with a busy response (for example, SIP 486 Busy Here).

Can this restriction be configured directly in LiveKit SIP Trunk or Dispatch Rules, or should we implement it in our self-hosted Python Agent?

We would appreciate your guidance.

Thank you!

Hi,

Yes, it is, I can enable that for you.

I can see a project whose ID ends with 4l6 on your account, is that the one?

We don’t really support that kind of logic in LiveKit, ideally you would have something upstream in your provider, or an intermediary, that would send the 486. That would be the correct way to address your requirement.

As a hacky workaround, you could try configuring your self-hosted server availability to only handle 1 call at a time, Self-hosted deployments | LiveKit Documentation, then rely on the ringing_timeout, Inbound trunk | LiveKit Documentation, to return the 486 after the agent does not pick up.

Yes, that’s our MentaFlux AI project. Please enable the requested feature for this project. Thank you for clarifying the single-call limitation.

This has now been done :lk-party: