Custom header not passing by janus

Hello,
I am using janus server for clients to connect with kamailio. Kamailio having cluster of asterisk behind. For the incoming calls from asterisk—>kamailio------>janus------>client. I am passing a custom header with the call invite. But when i pass the custom header with value greater than 6 digits, janus is rejecting with tcpconnect error showing in kamailio. I have took the tcp trace and found that the header has reached from asterisk to kamailio, but from janus its not able to pass to the client. When I change the header value to 6 digits or less, then its working fine. Is there any limitation in janus for custom header to pass with any specific byte length. If so what should be the way to change the settings and how can i attain this. I want to pass some value with the header to the agent/client. Kindly help on this

The only limitation we have is that header name + value can’t exceed 255 characters (CRLF included). I don’t know what header you’re trying to send, but if its name is huge, then that may be the reason why the value has a limited allowed size.

1 Like

cdridscreenshot

I have attached the pcap file opened in wireshark. the header name is tfcdrid: and its value is 1711533950.2468742.
when i make the value to 123456, its working fine. Otherwise the janus is not passing the call to the client