[SR-Users] Hex to Dec conversion

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 14 21:39:44 CEST 2015



On 14/09/15 18:16, Alex Balashov wrote:
> On 09/14/2015 11:37 AM, Yufei Tao wrote:
>
>> I want to convert a Hex number string into a Dec number string, e.g. Hex
>> number "123" into Dec number "291". What is the best way? I didn't find
>> any transformation for this.
>
> As far as I know, Kamailio has no facility for this. I didn't see one
> in the transformations or the various utility modules, either.
>
Isn't the s.decode.hexa transformation what it actually needed here?

  - http://www.kamailio.org/wiki/cookbooks/4.3.x/transformations#sdecodehexa

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat




More information about the sr-users mailing list