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