[OpenSIPS-Users] Value of custom header

Saúl Ibarra Corretgé saul at ag-projects.com
Fri Oct 15 18:26:50 CEST 2010


On 10/15/2010 06:22 PM, Daniel Goepp wrote:
> I see several functions for searching, removing, substituting or
> appending to headers, but I'm not seeing anything about just getting the
> value of a custom header.  I must be missing something.  The closest I
> thought would be the search, but it just returns true or false, not a
> value, from what I can see.  Is there a way to say get the value of a
> custom header?  An example of what I am thinking would be something like
> this:
>
> $avp(s:my_header_value) = value_hf("X-My-Custom-Header")
>

Just do $hdr(My-Custom-Header) and you'll get the value.


Regards,

-- 
Saúl Ibarra Corretgé
AG Projects



More information about the Users mailing list