I’m trying to increase security for my SIP trunk so I just allow receiving calls coming from a specific IP. My understanding is that I can use the AllowedAddresses field for that.
So I have the following:
$ lk sip inbound list
Using default project [******] ┌─────────────────┬───────┬───────────────────────────────────────────────┬──────────────────┬────────────────┬────────────────┬────────────┬─────────┬──────────┐ │ SipTrunkID │ Name │ Numbers │ AllowedAddresses │ AllowedNumbers │ Authentication │ Encryption │ Headers │ Metadata │ ├─────────────────┼───────┼───────────────────────────────────────────────┼──────────────────┼────────────────┼────────────────┼────────────┼─────────┼──────────┤ │ ST_****** │ Tests │ +34*********,*********,+34*********,********* │ 1.2.3.4/32 │ │ │ DISABLE │ │ │ └─────────────────┴───────┴───────────────────────────────────────────────┴──────────────────┴────────────────┴────────────────┴────────────┴─────────┴──────────┘
With this configuration, I would expect a call to be rejected, but I am still receiving it. Am I doing anything wrong?
For the example provided, you can check the calls SCL_w3Frck9y7DnB, SCL_iDCKLsZ5X4db, **SCL_jtb8XvhJfRf2
**
This corresponds to a local deployment in my local machine, for testing. I also did an equivalent test in a diferent Livekit project in some machine on the cloud, just in case it had relation, with equivalent results. For this other experiment, you can check calls SCL_vCeWEpnLW7VM, SCL_5bcSjV64uggA
I set allowedAddresses on my inbound trunk to 1.2.3.4/32 just for testing(Same as Nestor), but I can still call the LiveKit SIP URI directly from MizuDroid and the call gets established.
What do you mean you are self hosting. You mean you are self hosting LiveKit server or self hosting LiveKit agents?
If you are using LiveKit cloud what is your project ID? What trunk is it not working on? If you are self hosting LiveKit server I am not sure how to help you.