aloof-xylophone-42663
08/01/2025, 7:53 AMtall-airline-16756
08/01/2025, 7:53 AMtall-airline-16756
08/01/2025, 7:54 AMcreamy-scientist-61602
08/20/2025, 8:17 AMtall-airline-16756
08/20/2025, 8:19 AMcreamy-scientist-61602
08/20/2025, 8:51 AMtall-airline-16756
08/20/2025, 8:52 AM{
"trunk": {
"name": "asterisk-inbound-trunk",
"numbers": [
"+15105550100"
],
"auth_username": "your_sip_username",
"auth_password": "your_sip_password",
"allowed_addresses": [
"192.168.1.100/32"
]
}
}
• Create a Dispatch Rule:
◦ Next, set up a rule to route calls to a LiveKit room. Here’s an example: {
"dispatch_rule": {
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "call-"
}
},
"name": "asterisk-dispatch-rule",
"trunkIds": [
"trunk_id"
]
}
}
• Configure Asterisk SIP Trunk:
◦ Then, configure a SIP trunk in Asterisk using the LiveKit SIP URI as your host.
◦ Make sure to use the same username and password you set up in LiveKit.
• Call Transfer:
◦ Finally, you can transfer calls back to your Asterisk ring group using the LiveKit API. Here’s a handy example: sip_client.transfer_sip_participant(
room_name,
participant_identity,
"sip:ringgroup@asterisk_host",
play_dialtone: false
)
If you want me to walk you through any of these steps in more detail, just let me know—I’m here to help! Sources: SIP inbound trunk | LiveKit Docs | livekit-api/src/services/sip.rs | cmd/lk/sip.go | src/setup-livekit.ts | lib/livekit/proto/livekit_sip_pb.rbcreamy-scientist-61602
08/20/2025, 9:21 AMtall-airline-16756
08/20/2025, 9:21 AMcreamy-scientist-61602
08/20/2025, 9:33 AM