Hi again,
I tested with latest 1.5 branch and worked. I have in my config:
$avp(s:h) = "From";
xlog("+++ $hdr($avp(s:h))\n);
The from header is printed ok. Can you give the config part that causes
your error?
Cheers,
Daniel
On 31.07.2009 10:57 Uhr, Daniel-Constantin Mierla wrote:
Hello,
On 30.07.2009 16:55 Uhr, catalina oancea wrote:
Hello
I need to get the value of a header using a dynamic variable. I have
the name of the header in an avp and I get the value using
$hdr($avp(s:headername))). This worked in kamailio 1.4.0, I am sure of
it because I tried it now on 1.4.0. But now in kamailio 1.5.1 I get an
error when trying to retrieve the value:
/usr/sbin/kamailio[32761]: ERROR:core:pv_get_spec_name: name type is
PV_NAME_OTHER - cannot resolve
/usr/sbin/kamailio[32761]: ERROR:pv:pv_get_hdr: invalid name
Does anybody have any idea what the problem might be?
Seems an error introduced when polishing the pv api. I will check it
and fix.
Thanks,
Daniel
--
Daniel-Constantin Mierla
* SIP Router Bootcamp
* Kamailio (OpenSER) and Asterisk Training
* Berlin, Germany, Sep 1-4, 2009
*
http://www.asipto.com/index.php/sip-router-bootcamp/