[Kamailio-Users] [kamailio-users] Read SIP Header from call request

Alex Balashov abalashov at evaristesys.com
Mon Nov 23 09:55:01 CET 2009


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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov - Principal
Evariste Systems
Web     : http://www.evaristesys.com/
Tel     : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671



More information about the Users mailing list