[OpenSIPS-Devel] [ opensips-Patches-3606324 ] Add {s.encode.int} transformation

SourceForge.net noreply at sourceforge.net
Thu Mar 7 18:14:08 CET 2013


Patches item #3606324, was opened at 2013-02-27 23:57
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3606324&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.9.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Umberto Mautone (umautone)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Add {s.encode.int} transformation

Initial Comment:
This patch adds the {s.encode.int} transformation to convert a 4-byte or 8-byte binary data into an unsigned integer. An example of this feature's use would be to convert IP addresses directly to unsigned integers to be used as dynamic group ID values by the load balancer or dispatcher. The patch utilizes "ntohl()" on the converted value to correctly manage endian.

$var(ip) = $(Ri{ip.pton}{s.encode.int});

The patch applies to 1.9.0-tls

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3606324&group_id=232389



More information about the Devel mailing list