It's been a while since I needed this but try:<div>$avp(s:foovalue) = $hdr(X-Foo-Value);</div><div><br></div><div><a href="http://www.opensips.org/Resources/DocsCoreVar15#toc82">http://www.opensips.org/Resources/DocsCoreVar15#toc82</a></div>
<div><br><br><div class="gmail_quote">On Fri, Jun 12, 2009 at 8:49 AM, Uwe Kastens <span dir="ltr"><<a href="mailto:kiste@kiste.org">kiste@kiste.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
How can I put the value of a header field in one AVP?<br>
<br>
BR<br>
<br>
Uwe<br>
<font color="#888888"><br>
--<br>
<br>
kiste lat: 54.322684, lon: 10.13586<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br></div>