Hi Carlos
is there any different issue with kamailio 4.2.1, because i have the same
error, you solved above, i got the same error with float value
/usr/sbin/kamailio[13336]: WARNING: [rvalue.c:1016]: rval_get_int():
automatic string to int conversion for "0.0005" failed
and with the basic value,
Hi Carlos
i've tested, works perfect, muchas gracias hermano!
On Mon, May 12, 2014 at 11:27 PM, Carlos Ruiz Díaz <
carlos.ruizd...@gmail.com> wrote:
> Get the latest updates, by cloning the repository and
> recompiling/reinstalling it.
>
> $ git clone git://git.sip-router.org/kamailio kamailio
Get the latest updates, by cloning the repository and
recompiling/reinstalling it.
$ git clone git://git.sip-router.org/kamailio kamailio
Regards,
Carlos
On Mon, May 12, 2014 at 2:21 PM, Rene Montilva wrote:
> Hi carlos,
>
> sorry my ignorance, where is it the master link?
>
> the test with on
Hi carlos,
sorry my ignorance, where is it the master link?
the test with only integers works perfect
On Sun, May 11, 2014 at 10:48 PM, Carlos Ruiz Díaz <
carlos.ruizd...@gmail.com> wrote:
> Yep, assignment failed because the variables contain floating point values
> and Kamailio does not hand
Yep, assignment failed because the variables contain floating point values
and Kamailio does not handle well this kind of precision.
I patched the module to add the check before initiating the call, it is in
master.
As a way of testing your code, replace those values with integer ones, like
5 and
Hi Carlos
kamailio version 4.1
El 11/05/2014 21:32, "Carlos Ruiz Díaz"
escribió:
> What Kamailio version are you using?
>
>
> On Sat, May 10, 2014 at 9:33 PM, Rene Montilva wrote:
>
>> Hi Carlos
>>
>> kamailio config:
>>
>> log("L_INFO", "saldo:$var(credit) y seg:$var(cost_per_sec) ");
>>
>>
>>
What Kamailio version are you using?
On Sat, May 10, 2014 at 9:33 PM, Rene Montilva wrote:
> Hi Carlos
>
> kamailio config:
>
> log("L_INFO", "saldo:$var(credit) y seg:$var(cost_per_sec) ");
>
>
> if($var(cost_per_sec) > $var(credit)) {
>
> sl_send_reply("402","payment required")
Hi Carlos
kamailio config:
log("L_INFO", "saldo:$var(credit) y seg:$var(cost_per_sec) ");
if($var(cost_per_sec) > $var(credit)) {
sl_send_reply("402","payment required");
exit;
}
if (!cnxcc_set_max_credit("$var(client)",
"$var(credit)",
"$var(cost_per_s
On Fri, May 9, 2014 at 3:52 PM, Rene Montilva wrote:
> these are the values before the function call:
>
> /usr/sbin/kamailio[24933]: INFO:
these are the values before the function call:
/usr/sbin/kamailio[24933]: INFO:
Oops, correction:
*if ($var(credit) < $var(cost_per_second)) {*
*sl_send_reply("402", "payment required");*
*exit;*
*}*
By the way, please inform of your results after doing your tests.
Thanks,
Carlos
On Fri, May 9, 2014 at 3:17 PM, Carlos Ruiz Díaz
wrote:
> Hello,
>
> "i_puls
Hello,
"i_pulse" and "f_pulse" are direct translations of the Spanish (I noticed
you speak it) phrases "pulso inicial" and "pulso final", which I don't
think have the same meaning in English. Updating the docs and using the
proper terminology are pending matters on this module.
Both values repres
Hi Carlos
This my kamailio config:
#!ifdef CNXCC_MONEY
sql_query("ca", "select * from
billing.sel_customer_credit('pepe','xxx","ra");
xlog("L_INFO", "Setting up money based credit control");
if($dbr(ra=>rows)> 0){
xlog("L_INFO", "saldo:$dbr(ra=>[0,0]) y seg:$dbr(ra=>[0,1]) ");
$var(credit)
Hi,
Can you paste the code you are using, with the values that each variable
contain at the moment of initiating the call?
Regards,
On Fri, May 9, 2014 at 2:35 PM, Rene Montilva wrote:
> Hi list
>
> I don't understand prepaid logic calculation, because when my credit is 0
> or lees than cost p
Hi list
I don't understand prepaid logic calculation, because when my credit is 0
or lees than cost per second, the call is established equal
$var(i_pulse) and $var(f_pulse) how this works
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-use
15 matches
Mail list logo