[SR-Users] Hex to Dec conversion

Yufei Tao yufei.tao at gmail.com
Wed Sep 16 10:59:16 CEST 2015


Hi,

Thanks for the replies! The first thing I looked at was the
encode/decode.hexa transformations but it only transforms between ASCII
characters and Hex numbers. Then I used exec_avp to call a bash command
(for example, 'echo $((0x123))' gives you 291) which works. But calling
something external may not be optimal I thought?

I found OpenSIPS has hex2dec and dec2hex transformations and wonder if we
could have these in Kamailio as well?

Cheers,
Yufei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150916/c9a70093/attachment.html>


More information about the sr-users mailing list