[OpenSIPS-Users] Extracting a value from a header and assigning it to an AVP

Sven Schulz svens at psu.edu
Tue Sep 27 22:26:06 CEST 2011


Lets say for example, another SIP server sends my opensips server a header
³P-Hint: 3².
I would like to extract the value (3) from that header (P-Hint:) and assign
it to an AVP.
How do I do this?

I tried this but it doesn¹t seem to work:

if (is_present_hf("P-Hint")) {
                $avp(i:20)=$(hdr(P-Hint));

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110927/74cfd275/attachment.htm>


More information about the Users mailing list