Hello,

On 04.08.2009 9:24 Uhr, catalina oancea wrote:
Hello, thanks for answering.

I tried like this:
$avp(s:didheader) = "Contact";
xlog("L_ERR","My test value is $hdr($avp(s:didheader))");

you should get to at least rev:
http://openser.svn.sourceforge.net/viewvc/openser/branches/1.5/pvapi.c?r1=5869&r2=5868&pathrev=5869

Thanks,
Daniel

and the error is:
Aug  4 10:17:04 catalinaovoipnow /usr/sbin/kamailio[16225]:
ERROR:core:pv_get_spec_name: name type is PV_NAME_OTHER - cannot
resolve
Aug  4 10:17:04 catalinaovoipnow /usr/sbin/kamailio[16225]:
ERROR:pv:pv_get_hdr: invalid name
Aug  4 10:17:04 catalinaovoipnow /usr/sbin/kamailio[16225]: My test value is

But my version of kamailio, 1.5.1, is older than the one you used for
testing. So probably the problem is now solved.

Thanks,
Catalina



2009/7/31 Daniel-Constantin Mierla <mico...@gmail.com>:
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/



_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users


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


_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Reply via email to