Re: [SR-Users] converting integer to string

2016-05-30 Thread Henry Fernandes
I tried this but the same problem occurs. It translates the integer -3 into the string ³18446744073709551613". Does anyone have a suggestion for converting an integer into a string in Kamailio? -H On 2016-05-26, 12:33 AM, "ycaner" wrote: >Hello; >you can try to $_s($avp(auth_code)) . For exa

Re: [SR-Users] converting integer to string

2016-05-26 Thread Daniel-Constantin Mierla
Apparently the string representation for avps via pv framework used unsigned int. I pushed a patch to master to use signed version. What you can do is to use $var(auth_code) instead of $avp(auth_code). Cheers, Daniel On 25/05/16 19:33, Henry Fernandes wrote: > In Kamailio 4.2, I’m having proble

Re: [SR-Users] converting integer to string

2016-05-25 Thread ycaner
Hello; you can try to $_s($avp(auth_code)) . For example , i use that $rU = $_s($avp(69)$var(v)); Cheers -- View this message in context: http://sip-router.1086192.n5.nabble.com/converting-integer-to-string-tp148781p148810.html Sent from the Users mailing list archive at Nabble.com. _

[SR-Users] converting integer to string

2016-05-25 Thread Henry Fernandes
In Kamailio 4.2, I’m having problems converting an AVP integer value into a string. My Kamailio config stores the return code from auth_check() and outputs it. $avp(auth_code) = auth_check("$fd", "subscriber", "1"); xlog("L_NOTICE", “response = $avp(auth_code)”); When I check the AVP