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

SourceForge.net noreply at sourceforge.net
Sun Apr 7 13:03:10 CEST 2013


Patches item #3606324, was opened at 2013-02-27 23:57
Message generated for change (Comment added) made by umautone
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

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

>Comment By: Umberto Mautone (umautone)
Date: 2013-04-07 04:03

Message:
Just following up on this patch to see if there are any objections to its
inclusion.

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

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