[Kamailio-Users] i want to get user defined header value
Daniel-Constantin Mierla
miconda at gmail.com
Tue Nov 24 09:54:29 CET 2009
Hello,
On 24.11.2009 9:50 Uhr, Alex Balashov wrote:
> 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.
have you tested and does not work? Any error message in the logs? I can
test later today...
Thanks,
Daniel
--
Daniel-Constantin Mierla
* http://www.asipto.com/
More information about the sr-users
mailing list