Can we send custom X-headers with BYE signal from livekit for inbound calls ?
We are using Five9 -> Kamailio -> Livekit server -> Agents
t
tall-airline-16756
03/18/2026, 1:16 PM
Hi YASH,
⚠️ This channel will be deleted soon ⚠️
Please use our new community at https://community.livekit.io for technical discussions and to post technical questions. The Slack community is not going away, but we are migrating technical questions to our new forum. Please see full details here.
f
freezing-france-64950
03/18/2026, 1:42 PM
@gentle-needle-76462 You can’t directly attach custom X-headers to BYE from LiveKit for inbound calls, as BYE is typically generated by the SIP stack.
A solution is to handle call teardown metadata in your application layer or via Kamailio using
append_hf
to inject custom headers before forwarding the BYE.
g
gentle-needle-76462
03/18/2026, 1:49 PM
Thanks @freezing-france-64950.
I want to set dynamic attributes for attibutes_to_header map.
Can you provide more info on that how can we do that ?