[OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Carlo Dimaggio
Hi all, I would like to know if CDRTool ver. 6.x supports the rating of diverted calls (I'm trying to find another way to bill a unconditional call forwarding...). In the web interface I don't find any reference to diverted calls... From an old changelog I see: 1.6 New major rating

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Adrian Georgescu
Carlo, CDRTool uses the radacct.UserName field for identifying who should pay for the session (the BillingParty). It is then up to your OpenSIPS configuration to store in the UserName field the SIP account that enabled the call diversion. Adrian On Jun 24, 2009, at 11:07 AM, Carlo

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Carlo Dimaggio
Il giorno 24/giu/09, alle ore 11:50, Iñaki Baz Castillo ha scritto: This means that when the called replies a 302, OpenSIPS should do recursion on it, extract the Contact of the 302 and generate a new branch for it. Also it should set the AVP which will be mapped to Radius UserName field to

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Iñaki Baz Castillo
2009/6/24 Carlo Dimaggio jaasmail...@gmail.com: Hi Iñaki, My aim is a little bit different because I want to handle a simple cfu directly from opensips (without a 302 from client). No problem. I don't understand very well how CDRTool bill the call diversion in this case (maybe is not

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Carlo Dimaggio
Il giorno 24/giu/09, alle ore 12:37, Iñaki Baz Castillo ha scritto: As Adrian already suggested: by setting an appropiate value for an AVP which will be mapped to Radius UserName field (billing username). Or well, if you set Billing-Party it has preference. ok, I will use

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Iñaki Baz Castillo
2009/6/24 Adrian Georgescu a...@ag-projects.com: Carlo, I am not entirely sure if this relates to 30X coming from downstream end-point or is the SIP Proxy that generates the 302 as a result of call control preferences set by called party. I think that is no one of them. Instead, him OpenSIPS

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Carlo Dimaggio
Il giorno 24/giu/09, alle ore 13:12, Adrian Georgescu ha scritto: Carlo, What you try to do is not entirely logical (except of course for earning more money from the same call), from the signaling and media perspective is a single call, not two. Is a way to abuse the calling party

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Adrian Georgescu
Carlo, CDRTool relies on the unicity of the triplet callid, fromtag and totag. The only way to use the system the way you describe is to artificially insert a new record with a fake callid, this you could do with an external script as you suggested. The logic to determine diverted sessions

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Carlo Dimaggio
Il giorno 24/giu/09, alle ore 16:17, Carlo Dimaggio ha scritto: Hi Adrian, I have thought about your words, I don't want more money from the same Sorry Adrian, another (little question). CDRTool checks in radacct the username (the billing-party), but as I can see the prepaid engine uses

Re: [OpenSIPS-Users] CDRTool and diverted calls

2009-06-24 Thread Adrian Georgescu
This is up to your call_control opensips configuration to request the rating engine the MaxSessionTime for right subscriber that enabled the diversion. Adrian On Jun 24, 2009, at 4:40 PM, Carlo Dimaggio wrote: Il giorno 24/giu/09, alle ore 16:17, Carlo Dimaggio ha scritto: Hi Adrian,