white-fireman-9846
09/07/2025, 10:10 PMtall-airline-16756
09/07/2025, 10:10 PMtall-airline-16756
09/07/2025, 10:11 PMauth_username and auth_password in your SIPInboundTrunkInfo setup are spot on. These should exactly match the credentials from your SIP trunking service.
• Try using the list_inbound_trunk method in the Python SipService to peek at your current trunk configuration and verify those authentication details.
• If you need to tweak anything, you can update the credentials with the update_inbound_trunk_fields method—no need to recreate the trunk from scratch.
If you want, I’m here to help walk you through these steps or troubleshoot further. Just let me know!
Sources: livekit-protocol/livekit/protocol/analytics.pyi | sip/sip_test.go | SIP troubleshooting guide | LiveKit Docswhite-fireman-9846
09/07/2025, 10:14 PMtall-airline-16756
09/07/2025, 10:15 PMwhite-fireman-9846
09/07/2025, 10:15 PMtall-airline-16756
09/07/2025, 10:16 PM"sip": { "admin": true }.
• Call Permission: Needed for making outbound SIP calls. Make sure the token includes "sip": { "call": true }.
Here’s a quick example of how you can generate a token with these permissions:
from livekit.api import AccessToken, SIPGrants
token = (
AccessToken(api_key="your_api_key", api_secret="your_secret")
.with_sip_grants(SIPGrants(admin=True, call=True))
.to_jwt()
)
And if you want to double-check the token’s claims, you can use a TokenVerifier like this:
from livekit.api import TokenVerifier
verifier = TokenVerifier(api_key="your_api_key", api_secret="your_secret")
claims = verifier.verify(token)
assert claims.sip.admin == True # Verify admin permission
If you hit any bumps or have questions along the way, just give me a shout—I’m here to help!
Sources: Authentication | LiveKit Docs | SIP APIs | LiveKit Docs | pkg/service/auth.go | livekit-api/tests/test_access_token.pywhite-fireman-9846
09/07/2025, 10:17 PMtall-airline-16756
09/07/2025, 10:18 PMwhite-fireman-9846
09/07/2025, 10:20 PMwhite-fireman-9846
09/07/2025, 10:24 PM