Re: [SR-Users] cnxcc

2014-05-11 Thread Kelvin Chua
hi carlos, i'm looking at the commitdiff, seems like it's just indentations http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=d0f0ba702bd44524bc9f52e07341db03267b15f7 is there something i am missing? by the way, based on the module documentation, the only dependency is the

Re: [SR-Users] cnxcc

2014-05-11 Thread Carlos Ruiz Díaz
Hi, Check this commitdiff [1], it has some subtle lines of code that remove the deadlock. Rtimer is not required, it is only used in the sample configuration file to display the amount of concurrent calls and to grant more time when needed, but strictly in the business logic sense. Internally, di

Re: [SR-Users] CNXCC PrePaid module

2014-05-11 Thread Carlos Ruiz Díaz
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")

Re: [SR-Users] CNXCC PrePaid module

2014-05-11 Thread Rene Montilva
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) "); >> >> >>

Re: [SR-Users] CNXCC PrePaid module

2014-05-11 Thread Carlos Ruiz Díaz
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

[SR-Users] Kamailio Logged in users

2014-05-11 Thread Neville D'Souza
Hi, I am having a slight issue with Kamilio server. How do I disconnect users without restarting the server. When I run the command kamctl ul users i get the list of users connected, some that are already disconnected. I am using the Linphone android client to coonect through 5060 port. Kindly