Print an xlog there, I think it&#39;s not hitting this condition ! <br><br><div class="gmail_quote">On Wed, Sep 28, 2011 at 1:26 AM, Sven Schulz <span dir="ltr">&lt;<a href="mailto:svens@psu.edu">svens@psu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Lets say for example, another SIP server sends my opensips server a header “P-Hint: 3”.<br>
I would like to extract the value (3) from that header (P-Hint:) and assign it to an AVP.<br>
How do I do this?<br>
<br>
I tried this but it doesn’t seem to work:<br>
<br>
if (is_present_hf(&quot;P-Hint&quot;)) {<br>
                $avp(i:20)=$(hdr(P-Hint));<br>
</span></font>
</div>


<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>
<br></blockquote></div><br>