Yes - there is a namespace container called $hdr that will serve that purpose, e.g.
xlog("L_INFO", "From header value: $hdr(From)\n");
or
if($hdr(X-Custom-Header) == "value")
Chandrakant Solanki wrote:
Hi
I am using kamailio 1.5.0.2
How can i read SIP Header in kamailio for every sip request.
Is there any method / function which will help to read SIP Header...??
-- Regards,
Chandrakant Solanki
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users