<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dovid,<br>
<br>
It is just a formating transformation - the xlog buffer is
constructed by doing memcpy and then when the buffer is printed with
%s, the unsigned integer is written as signed one. <br>
You can not change something easily to make it output -1 instead of
those many numbers. But the value stored in $avp(s:222) is the
integer -1. It should not be such a nuisance to you, if it is 0 it
is success, if it has a lot of numbers it is error.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a></pre>
<br>
<br>
On 01/26/2011 05:12 PM, Dovid Bender wrote:
<blockquote
cite="mid:47FC199FD5814AF9BE9AB19183E9CC0A@mypbxmanager.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta content="MSHTML 6.00.6000.17093" name="GENERATOR">
<div><font size="2" face="Arial">Bogdan,</font></div>
<div> </div>
<div><font size="2" face="Arial">I am not sure if I fully
understand what you wrote. How do I get OpenSips to just
output -1 or what ever the value is instead of having to
convert it to binary.</font></div>
<div><font size="2" face="Arial"><br>
Dovid</font></div>
<blockquote style="padding-right: 0px; padding-left: 5px;
margin-left: 5px; border-left: 2px solid rgb(0, 0, 0);
margin-right: 0px;">
<div style="font: 10pt arial;">----- Original Message ----- </div>
<div style="background: none repeat scroll 0% 0% rgb(228, 228,
228); font: 10pt arial;"><b>From:</b> <a
moz-do-not-send="true" title="anca@opensips.org"
href="mailto:anca@opensips.org">Anca Vamanu</a> </div>
<div style="font: 10pt arial;"><b>To:</b> <a
moz-do-not-send="true" title="users@lists.opensips.org"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>
</div>
<div style="font: 10pt arial;"><b>Sent:</b> Wednesday, January
26, 2011 11:25</div>
<div style="font: 10pt arial;"><b>Subject:</b> Re:
[OpenSIPS-Users] Value of www_authorize function</div>
<div><br>
</div>
Hi Dovid,<br>
On 01/25/2011 06:15 PM, Dovid Bender wrote:
<blockquote
cite="mid:A4B42C7DB1E846AD876AEDAE02252687@mypbxmanager.net"
type="cite">
<meta content="MSHTML 6.00.6000.17093" name="GENERATOR">
<style></style>
<div><font size="2" face="Arial">Hi,</font></div>
<div><font size="2" face="Arial"><br>
When doing:</font></div>
<div><font size="2" face="Arial">
$avp(s:222) = www_authorize("", "phones");<br>
xlog(".-.-.-. $avp(s:222)
.-.-.-.-.");</font></div>
<div> </div>
<div><font size="2" face="Arial">I get back: .-.-.-.
18446744073709551615 .-.-.-.-.</font></div>
<div> </div>
</blockquote>
If you write it in binary it is 128 of 1 - so that number is in
fact -1. Seems like <font size="2" face="Arial">www_authorize
returns error.<br>
<br>
Regards,</font><br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a></pre>
</blockquote>
<br>
</blockquote>
</body>
</html>