-
Notifications
You must be signed in to change notification settings - Fork 71
Unable to pass INVITE headers to SIP Participant #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @nharris-star2star ! How are you accessing the headers after the call is established? Is it in the webhook? |
Hi @dennwc! Thanks for the quick response. I am using the python agents version 1.0.20 and looking for the headers on the participant attributes. I have all the standard SIP attributes described here, but none of the X-*, or any other headers for that matter make it to the participant.
|
Please note that header-related attributes won't be set immediately. Ideally, you should use the attributes changed hook on the participant to see the headers when they become available. |
Ok. I will check that out and report back. I don't know if it is helpful, but it appears the headers are null when the call is accepted. Is that in line with what you are saying and expected? |
I added a listener for the participant attributes, and I am seeing the default attributes update, but none of the INVITE headers ever make it in to the participant.
|
I logged out the value of opts in types.go and it shows I confirmed the participant in the agent code has all the attributes by commenting out that check for testing (line 257 of pkg/sip/types.go). I'll see if I can figure out why this is. |
It looks like the I see there are some open PRs to sync up some of the libs with livekit server. I'm not sure if any of those updates will resolve the problem. I'll try to dig deeper as soon as I can. |
Hello, I am able to make calls in to LLM agent without issue. The livekit ecosystem is really great. However, I am having a problem passing the INVITE headers along to the participant attributes.
inbound-trunk.json
{ "trunk": { "include_headers": 2, "headers_to_attributes: { "X-Test": "xTest" }, "name": "{REDACTED} inbound trunk", "numbers": ["+1{REDACTED}"] } }
I have tested using the v1.0.0 tag of the SIP service and v1.8.4 of livekit-server. I have tried various permutations and combinations of include_headers values along with or without headers_to_attributes and attributes_to_headers. I have used the python SDK as well as the lk-cIi to create the inbound trunk. I apologize if I am missing something or have something misconfigured. Any suggestions on how to get this working or is this feature not yet implemented?
Thanks
The text was updated successfully, but these errors were encountered: