[OpenSIPS-Users] HEX encoding of a avp value

Ali Pey alipey at gmail.com
Tue Jun 26 19:19:23 CEST 2012


Hi There,

Is there a way to convert an avp variable to hex?

I've tried the following but it's not working.

$(avp(id){s.encode.hexa})

For instance if avp(id) is 11, it returns 3131, if it's 3, it returns 33.

Am I doing something wrong?
Is there a better way?

Thanks,
Ali Pey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120626/7536d7df/attachment.htm>


More information about the Users mailing list