[Kamailio-Users] new CDRTool release 6.6.9

2008-09-30 Thread Adrian Georgescu
Hello, The software contains bug fixes for parallel prepaid calls. Changelog since 6.6.8 cdrtool (6.6.9) unstable; urgency=low * Purge old entries from prepaid_history table * Fixed wrong return to call control engine because sessionDoesNotExist variable was not initialized properly

Re: [Kamailio-Users] CDRTool 6.6.4 with freeradius-cdrtool

2008-09-30 Thread Craig Guy
Check your radius database - seems like the radacct200809 table hasn't been created. If you issue 'show tables' in mysql you should see both a radacct table and radacct200809. The radacct table should be empty. If not then you may not be using the correct sql.conf / installed the procedures to m

Re: [Kamailio-Users] CDRTool 6.6.4 with freeradius-cdrtool

2008-09-30 Thread Graham Wooden
Hi Craig, Yup, that is the file that I used to based my /etc/cdtool/global.inc off of. DB_radius is pointing to my radius DB, but the CDRTool GUI is pointing to my the CDRTool DB for the cdrs: Database error: Invalid SQL: select count(*) as records from radacct200809 where (AcctStartTime >= '2008-

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread Diego Zuaneti Arruda
DanB, The problem was solved with the new version. I don't understand very well the python language. It's possible to return SIP-AVP = nocredit#1 when the user have no credits? So I can return a message to the user saying he has no credits. Thanks again. Diego. - Original Message

[Kamailio-Users] LCR vs Carrierroute and SRV Support Inquirer

2008-09-30 Thread Krom
Hello, I am/will be a newbie to 1.3.x and beyond and have a question regarding a new requirement of two of my upstream providers. We have been running 1.1.1-notls since it was released. We have been in the mindset of, "if it's not broken, don't fix it". But our upstream providers are now tellin

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread DanB
Hi Diego, fixed now in pre2. Cheers, DanB On Tue, Sep 30, 2008 at 5:58 PM, Diego Zuaneti Arruda < [EMAIL PROTECTED]> wrote: >DanB, > >I'm testing the freeradius-cdrtool, and found a possible problem. >When I turn off the call before answer, the session is not finished. >Here's a

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread Diego Zuaneti Arruda
DanB, I'm testing the freeradius-cdrtool, and found a possible problem. When I turn off the call before answer, the session is not finished. Here's a part of the logs: rlm_python [freeradius-cdrtool]: Entering accounting section rlm_python [freeradius-cdrtool]: Got the following para

Re: [Kamailio-Users] openser.cfg children=4

2008-09-30 Thread Mik Cheez
TCP is enabled by default. You can turn it off with the following: disable_tcp=yes Asim Riaz wrote: > > > On Tue, Sep 30, 2008 at 11:38 AM, Daniel-Constantin Mierla > <[EMAIL PROTECTED] > wrote: > > > > On 09/30/08 13:33, Asim Riaz wrote: > > > > On

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread DanB
"The avps received will be available in openser as: callMaxDur and credit, where callMaxDur is the maximum duration the user is allowed to be connected with the destination and credit represents the amount of credit available at starting of the call. This info can be used later in an bbua able to t

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread Diego Zuaneti Arruda
Thanks DanB, the problem was solved. How send BYE when expires credit in conversation? Thanks. Diego. - Original Message - From: DanB To: Diego Zuaneti Arruda Cc: users@lists.kamailio.org Sent: Tuesday, September 30, 2008 11:19 AM Subject: Re: [Kamailio-Users] Send Max

Re: [Kamailio-Users] How to prevent - Same username used on multiple sip phones

2008-09-30 Thread Daniel-Constantin Mierla
Hello, On 09/30/08 16:10, Alex Hermann wrote: > On Tuesday 30 September 2008, Daniel-Constantin Mierla wrote: > >> to deal with some >> broken NAT/STUN devices, when you are sure there is a single phone, but >> each registration gets with a new port for each register refresh. >> > > How us

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread DanB
Here is an already patched version: http://frad-cdrtool.sourceforge.net/rlm_digest.c You should replace your rlm_digest.c with this one and recompile the server. DanB On Tue, Sep 30, 2008 at 4:14 PM, Diego Zuaneti Arruda < [EMAIL PROTECTED]> wrote: >I'm using the freeradius 1.1.7, and not pa

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread Diego Zuaneti Arruda
I'm using the freeradius 1.1.7, and not patched the rlm_digest. Where to find the patch rlm_digest ? Diego. - Original Message - From: DanB To: Diego Zuaneti Arruda Cc: users@lists.kamailio.org Sent: Tuesday, September 30, 2008 11:08 AM Subject: Re: [Kamailio-Users] Se

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread DanB
Diego, the problem is with your digest module which is sanitizing the parameters in authentication phase only, therefore the parameters like Username, Digest-URI are not available in the authorization phase (no way for the connector to read them). Did u patch your rlm_digest as per the README.txt

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread Diego Zuaneti Arruda
me = "[EMAIL PROTECTED]"' rlm_acct_unique: Acct-Unique-Session-ID = "ff702e02176d5004". modcall[preacct]: module "acct_unique" returns ok for request 3 rlm_realm: Looking up realm "fastervoip.com.br" for User-Name = "[EMAIL PROTECTED]&

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread DanB
Diego, looks like there was no session started at first place. Did u change the openser.cfg config? You need to add callid into radius_proxy_authorize so that the callid should be used (example in README.txt of the freeradius-cdrtool sources). Also, can u post a full authorize/account_start/accou

Re: [Kamailio-Users] How to prevent - Same username used on multiple sip phones

2008-09-30 Thread Alex Hermann
On Tuesday 30 September 2008, Daniel-Constantin Mierla wrote: > to deal with some > broken NAT/STUN devices, when you are sure there is a single phone, but > each registration gets with a new port for each register refresh. How usefull is this? How do you get packets from the outside through the N

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread Diego Zuaneti Arruda
Hi DanB, I updated the CDRTool to version 6.6.8 and freeradius-cdrtool to version 1.2-pre. I'm getting this log and not doing the Debit. Sep 30 09:57:22 sipserver1 cdrtool[12948]: DebitBalance [EMAIL PROTECTED] [EMAIL PROTECTED] To=sip:[EMAIL PROTECTED] Gateway=127.0.0.1 Duration=11 Sep 30 0

Re: [Kamailio-Users] openser.cfg children=4

2008-09-30 Thread Asim Riaz
On Tue, Sep 30, 2008 at 11:38 AM, Daniel-Constantin Mierla < [EMAIL PROTECTED]> wrote: > > > On 09/30/08 13:33, Asim Riaz wrote: > >> >> >> On Tue, Sep 30, 2008 at 11:15 AM, Daniel-Constantin Mierla < >> [EMAIL PROTECTED] > wrote: >> >>Hello, >> >> >>On 09/30/08 1

Re: [Kamailio-Users] openser.cfg children=4

2008-09-30 Thread Daniel-Constantin Mierla
On 09/30/08 13:33, Asim Riaz wrote: > > > On Tue, Sep 30, 2008 at 11:15 AM, Daniel-Constantin Mierla > <[EMAIL PROTECTED] > wrote: > > Hello, > > > On 09/30/08 13:11, Asim Riaz wrote: > > Hi, > my openser.cfg is configured for childern=4, but I a

Re: [Kamailio-Users] openser.cfg children=4

2008-09-30 Thread Asim Riaz
On Tue, Sep 30, 2008 at 11:15 AM, Daniel-Constantin Mierla < [EMAIL PROTECTED]> wrote: > Hello, > > On 09/30/08 13:11, Asim Riaz wrote: > >> Hi, >> my openser.cfg is configured for childern=4, but I am seeing child >> processes? >> >> I don't get the problem/question... maybe you can rephrase. >

Re: [Kamailio-Users] How to prevent - Same username used on multiple sip phones

2008-09-30 Thread Jan Janak
Hello, On 29-09 16:31, Daniel-Constantin Mierla wrote: > Hello, > > I just added to svn a new function for registrar module: > uunregister(domain, uri), see commit: > > http://openser.svn.sourceforge.net/viewvc/openser?view=rev&revision=5010 > > The patch is small and clean. Backport to 1.4.1

Re: [Kamailio-Users] openser.cfg children=4

2008-09-30 Thread Daniel-Constantin Mierla
Hello, On 09/30/08 13:11, Asim Riaz wrote: > Hi, > my openser.cfg is configured for childern=4, but I am seeing child > processes? > I don't get the problem/question... maybe you can rephrase. Cheers, Daniel -- Daniel-Constantin Mierla http://www.asipto.com __

Re: [Kamailio-Users] How to prevent - Same username used on multiple sip phones

2008-09-30 Thread Daniel-Constantin Mierla
Hello Jan, On 09/30/08 12:59, Jan Janak wrote: > Hello, > > On 29-09 16:31, Daniel-Constantin Mierla wrote: > >> Hello, >> >> I just added to svn a new function for registrar module: >> uunregister(domain, uri), see commit: >> >> http://openser.svn.sourceforge.net/viewvc/openser?view=rev&revis

[Kamailio-Users] openser.cfg children=4

2008-09-30 Thread Asim Riaz
Hi, my openser.cfg is configured for childern=4, but I am seeing child processes? Thanks Asim Riaz ___ Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users

[Kamailio-Users] [offtopic] update vs delete/insert

2008-09-30 Thread Daniel-Constantin Mierla
Hello, I am trying to get out you knowledge as DBA ... in some discussions in the past was brought out that in some cases doing a delete on primary key followed by a pure insert might be faster than one update. It might be dependent of DB server type and perhaps the question would have better

Re: [Kamailio-Users] How to prevent - Same username used on multiple sip phones

2008-09-30 Thread Daniel-Constantin Mierla
Hello, moreover, the save() function can take now flag 0x04 in the second parameter to store and maintain only one contact per user: http://www.kamailio.org/docs/modules/devel/registrar.html#id2506197 If you can test and report the results would be great. Cheers, Daniel On 09/29/08 16:31, Dan

Re: [Kamailio-Users] Dispatcher hash algorithms.

2008-09-30 Thread Daniel-Constantin Mierla
On 09/30/08 08:17, Alex Balashov wrote: > Daniel, > > Daniel-Constantin Mierla wrote: > >> There are use cases even when doing stateful processing. So: >> - hash over call id - it is fast, good distribution, can be used for >> calls to be sent to gateways, etc, works for stateless processing as >

Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

2008-09-30 Thread DanB
Hi Diego, you don't need to set anything in Users file. The connector does that for you dynamically, based on the responses received from cdrtool. Your configuration will be static and always limit the user to the same call duration. For more information, see the README file within freeradius-cdrt

Re: [Kamailio-Users] CDRTool 6.6.4 with freeradius-cdrtool

2008-09-30 Thread Craig Guy
Hi Graham, That is correct - CDRTool looks in the radacct table of the radius database for the cdrs as defined in the ser_radius datasource in global.inc - the table definition is: "table" => "radacct".date("Ym"), Have a close look at CDRTool/setup/global.inc.simple.sample to see how it