Good morning, Kyle,
What I want is to prevent a pseudo number from being dialed from any public IP address other than the one of my SIP trunk. Usually, setting type=peer is enough. I have tried enabling all possible authentication options in the SIP trunk and assigned the pseudo number to use my SIP trunk. However, I can still dial the number from any source.
I'm sharing the anonymized SIP trunk and number data below so you can review them and see if anything is missing, or if it could be a bug in Vapi.
[
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"orgId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"provider": "byo-sip-trunk",
"createdAt": "2025-06-30T08:12:32.875Z",
"updatedAt": "2025-06-30T08:12:32.875Z",
"gateways": [
{
"ip": "3x.2xx.2x.2xx",
"outboundEnabled": true,
"optionsPingEnabled": true
}
],
"name": "ANON_PBX",
"outboundAuthenticationPlan": {
"authUsername": "REDACTED_USERNAME",
"sipRegisterPlan": {
"domain": "example.com",
"username": "REDACTED_USERNAME",
"realm": "example.com",
"publicIpInContactEnabled": true
}
},
"outboundLeadingPlusEnabled": false
}
]
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"orgId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"assistantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"number": "+00000000000",
"createdAt": "2025-06-30T08:13:48.244Z",
"updatedAt": "2025-06-30T08:15:50.982Z",
"name": "+00000000000",
"credentialId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"provider": "byo-phone-number",
"numberE164CheckEnabled": false,
"status": "active",
"providerResourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"smsEnabled": true
}
Thank you very much.
S. Caballero