why do I get this error whenever trying to make an...
# ask-ai
w
why do I get this error whenever trying to make an outbound trunk in the livekti cloud? Trunk creation failed: [internal] twirp error invalid_argument: for security, one of the fields must be set: AuthUsername+AuthPassword, AllowedAddresses or Numbers
t
Thanks for reaching out, Arthur. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error occurs because one of the required security fields must be set when creating a SIP trunk. To resolve this, ensure that at least one of the following fields is configured: • Authentication Credentials: Set both
AuthUsername
and
AuthPassword
. • Allowed Addresses: Provide a list of IP addresses or CIDR blocks in
AllowedAddresses
. • Allowed Numbers: Specify a list of phone numbers in
AllowedNumbers
. For example: • If using authentication:
Copy code
"auth_username": "your_username",
"auth_password": "your_password"
• If using IP-based security:
"allowed_addresses": ["192.168.1.0/24"]
• If using number-based security:
"allowed_numbers": ["+1234567890"]
This requirement ensures secure access to your SIP trunk. Let me know if you need further assistance! Sources: SIP APIs | LiveKit Docs
w
I did use both auth_username and auth_password, and put my numbers in, not sure why else I would get this issue. Is there any other reasons
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!