[Kamailio-Users] i want to get user defined header value

Alex Balashov abalashov at evaristesys.com
Tue Nov 24 09:50:45 CET 2009


Daniel-Constantin Mierla wrote:

> Hello,
> 
> On 23.11.2009 11:37 Uhr, Alex Balashov wrote:
>> Please don't forget to copy your responses back to the list so that 
>> others can benefit from this discussion.
>>
>> I must have misunderstood your intended meaning of "user-defined." 
>> $hdr(...) takes only string literals as arguments, not pseudovariables.
> actually $hdr(...) should be able to take PV as header name:
> 
> $var(n) = "From";
> xlog("--- $hdr($var(n))\n");
> 
> If it is no longer working, that should be fixed.

I came to the same conclusion a few hours ago after reviewing the 
code.  It is strange that it does not work.

-- 
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