On Wed, 22 Jan 2025, at 18:01, James Browne via sr-users wrote:
Hi Barry
I tested this in kamailio 5.8.4 (x86_64/linux) and it works for me.
.....
Thanks James.
Those header fields look like they're SIP header
fields not HTTP
header fields. Are you by any chance expecting that the
event_route[xhttp:request] should handle the SIP messages over
websocket (it does not)?
Yes, it was sip headers I was looking for. Issue was actually elsewhere in my code.
Many thanks.
-Barry
James
On Tue, 21 Jan 2025 at 08:37, Daniel-Constantin Mierla via sr-users
<sr-users(a)lists.kamailio.org> wrote:
Hello,
can you print $mb and see if the headers are there? Any errors in the syslog?
Cheers,
Daniel
On 20.01.25 22:26, Barry Flanagan via sr-users wrote:
Hi,
I need to be able to pull in a header provided by a webrtc endpoint so I can use it in my
request_route. I understand that I will need to use shm/htable to make it visible but I am
unable to get the xhttp header using $header(x-p-push), or any header by name.
In my event_route[xhttp:request] I have the following:
if ($hdr(Upgrade) =~ "websocket" && $hdr(Connection) =~
"Upgrade" && $rm =~ "GET") {
....
xlog("L_INFO", "BF x-p-push header is $hdr(x-p-push) Contact is
$hdr(Contact)\n");
}
The log shows both x-p-push and Contact header as null. sipdump shows the headers present
in the request.
Am I missing something? Running Kamailio 5.8.4
Thanks
-Barry
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions --
sr-users(a)lists.kamailio.org
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
--
Daniel-Constantin Mierla (@
asipto.com)
twitter.com/miconda --
linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services --
asipto.com
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions --
sr-users(a)lists.kamailio.org
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions --
sr-users(a)lists.kamailio.org
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only
to the sender!