Actually i amtrying to set up inbound call service...
# telephony
s
Actually i amtrying to set up inbound call service i am trying to make call from zoiper associated 9970 to 7559 on livekit via freeswitsh in which i ma getting issue { "sipTrunkId": "ST_33oFFNenn6RJ", "name": "FreeSWITCH-Fresh-Trunk", "numbers": [ "7559" ], "allowedAddresses": [ "0.0.0.0/0" ], "includeHeaders": "SIP_ALL_HEADERS" } { callId: "SCL_brbgFXF6fkia" trunkId: "ST_33oFFNenn6RJ" region: "ohyderabad1a" fromUri: { user: "9970" host: "10.58.8.40" port: 62548 transport: "SIP_TRANSPORT_TCP" } toUri: { user: "7559" host: "39fhgtadejz.sip.livekit.cloud" port: 5060 transport: "SIP_TRANSPORT_TCP" } callDirection: "SCD_INBOUND" callStatus: "SCS_ERROR" createdAtNs: "1756805302020107279" endedAtNs: "1756805304340951490" error: "call was not authorized by trunk configuration" } i am getting this error @refined-appointment-81829
r
The error message "call was not authorized by trunk configuration" indicates that there is an issue with the SIP trunk configuration for the inbound call from Zoiper (user 9970) to LiveKit (user 7559). Here are some steps to troubleshoot and resolve this issue: 1. Verify SIP Trunk Configuration: Ensure that the SIP trunk with ID
ST_33oFFNenn6RJ
is correctly configured to accept calls from the Zoiper client. The
numbers
field in your trunk configuration should include the number you are dialing (7559). It appears that you have configured it correctly, but double-check that the trunk is active and properly set up in your LiveKit account. 2. Allowed Addresses: The
allowedAddresses
field is set to
0.0.0.0/0
, which should allow calls from any IP address. However, ensure that your FreeSWITCH server is correctly routing calls to the LiveKit SIP endpoint. If there are any firewall rules or NAT configurations, they should allow traffic from your FreeSWITCH server to the LiveKit SIP server. 3. SIP URI Format: Ensure that the SIP URI format is correct. The
fromUri
and
toUri
should be properly formatted. In your case, it looks like: • From:
sip:9970@10.58.8.40:62548
• To:
sip:7559@39fhgtadejz.sip.livekit.cloud:5060
Make sure that the
toUri
is correctly pointing to the LiveKit SIP endpoint. 4. Check Trunk Permissions: Ensure that the trunk has the necessary permissions to accept calls. This includes checking if the trunk is set to allow inbound calls and that the authentication settings (if any) are correctly configured. 5. Debugging Logs: Check the logs on both FreeSWITCH and LiveKit for any additional error messages that might provide more context about why the call was not authorized. This can help identify if the issue is on the FreeSWITCH side or the LiveKit side. 6. Testing with Other Clients: If possible, try making a call from another SIP client to see if the issue is specific to Zoiper or if it persists across different clients. If you continue to experience issues, you may want to refer to the LiveKit documentation on setting up inbound trunks and troubleshooting SIP calls, particularly the sections on creating and configuring an inbound trunk and troubleshooting SIP. Notes: • Ensure that the SIP trunk is active and properly configured in the LiveKit dashboard. • The error message suggests a configuration issue, so reviewing the trunk settings and permissions is crucial. • If you have any specific configurations or additional logs, sharing those may help in further troubleshooting.
Is your agent getting the call? Does it have the correct agent_name set in the worker options? Is the media IP/Port publicly routable?
s
I tried setting up the trunk by following doc properly as per freeswitch sip pcap it is showing call routing to livekit but livekit sip not accepting that there is no acknowledgement from livekit side i will attach my pcap data check it once also the issue is in my trunk there is no authentication steps still this issue persist why ? @refined-appointment-81829