callDirection: "SCD_OUTBOUND" callStatus: "SCS_ERR...
# ask-ai
p
callDirection: "SCD_OUTBOUND" callStatus: "SCS_ERROR" createdAtNs: "1756414750002501820" endedAtNs: "1756414750388865958" error: "unexpected status from INVITE response: sip status: 405: CLI Restriction in effect" callStatusCode: { code: "SIP_STATUS_METHOD_NOT_ALLOWED" status: "CLI Restriction in effect" } I get this error when I try to initiate an outbound call
t
Thanks for reaching out, GODGIFT. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like you're running into the error "unexpected status from INVITE response: sip status: 405: CLI Restriction in effect." This happens when the SIP INVITE request gets rejected with a 405 "Method Not Allowed" response. Usually, this means the SIP trunk or dispatch rule isn’t set up to allow the specific method used in the INVITE request. Here are some friendly steps to help you fix this: • Double-check your SIP trunk configuration to make sure the INVITE method is allowed. • Make sure your SIP trunk has the right inbound and outbound addresses, numbers, and authentication details as your SIP provider requires. • Take a look at the allowed addresses and numbers in the SIP trunk settings to confirm they’re set to accept traffic from where you expect. • If your trunk needs authentication, verify that the username and password are correct. • Have a peek at any CLI (Caller Line Identification) restrictions and tweak them if needed to allow the INVITE method. • Confirm that your outbound trunk configuration fits the call requirements, including the transport protocol and any necessary headers. By going through these steps, you should be able to clear up the CLI restriction and get your SIP call working smoothly. If you need a hand with any of this, just let me know—I’m here to help! Sources: pkg/sip/service_test.go | livekit/livekit_agent_dispatch.twirp.go | sip/message.go