Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-08-07 Thread Tijmen de Mes
Hi, It is in CDRTool. Soon we will release a new version of call control which should be safe if OpenSIPS does not have support for this. --  Tijmen de Mes AG-Projects On 7 augustus 2014 at 04:16:01, osiris123d (duane.lar...@gmail.com) wrote: I fell off this for a while. Did this ever get

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-08-07 Thread Duane Larson
Great! Thanks On Thursday, August 7, 2014, Tijmen de Mes tij...@ag-projects.com wrote: Hi, It is in CDRTool. Soon we will release a new version of call control which should be safe if OpenSIPS does not have support for this. -- Tijmen de Mes AG-Projects On 7 augustus 2014 at 04:16:01,

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-02-19 Thread David M. Lee
I have an open pull request with OpenSIPS with this patch. https://github.com/OpenSIPS/opensips/pull/170 -- David M. Lee Digium, Inc. | Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com www.asterisk.org On Feb 18, 2014, at 6:52 AM, Tijmen

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-02-18 Thread Tijmen de Mes
Hi All, Already sent it to David  in private, but will post it here to be complete. We have trouble with the patch for call control. We get: Feb 18 12:51:09 node04 call-control[19257]: error: 'Request' object has no attribute ‘application' I looked into in and the call_control module of

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-02-12 Thread David M. Lee
For everyone following along at home: I’ve updated my CDRTool patch (again) to fix MaxSessionTime and ShowPrice commands, and fix some minor issues that cropped up with DebitBalance. CDRTool patch - https://gist.github.com/leedm777/8585690 I’ve also discovered that the call_control daemon also

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-02-06 Thread David M. Lee
I figured that out. I’ve updated the patch on my gist, and updated the rating doc to include a description of how the subtypes work. I’m sending the patch to de...@ag-projects.com now. Thanks! -- David M. Lee Digium, Inc. | Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-31 Thread David M. Lee
Sorry for the delayed response. I’ll take a look and see if I can correct the patch. Thanks! -- David M. Lee Digium, Inc. | Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com www.asterisk.org On Jan 28, 2014, at 6:12 AM, Tijmen de Mes

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-28 Thread Tijmen de Mes
Hi, I run into trouble and reversed the patch. In the rating engine (telnet) DebitBalance function does not return anything anymore with the patch applied, so something goes wrong. --  Tijmen de Mes AG-Projects On 27 januari 2014 at 17:55:01, Tijmen de Mes (tij...@ag-projects.com) wrote: Hi

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-27 Thread Tijmen de Mes
Hi I tested the patch and for now I don’t see any problem with it. Before adding it to trunk, can you update the rating docs and record all changes in 1 patch using darcs? After that I can apply it directly on trunk with your credentials. These instructions to submit the patch also apply on

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-25 Thread Duane Larson
Got CDRTool patched. Will update OpenSIPS config and then play with it. Hope to have some testing done later in the day. On Fri, Jan 24, 2014 at 5:35 AM, Tijmen de Mes tij...@ag-projects.comwrote: Hi David, Thanks for the patch. If have some time Monday I will analyze it and give you some

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-25 Thread Duane Larson
David/Tijmen/Adrian, It is working for me too. Both inbound and outbound are being recognized and the different rates are being applied. I will keep looking at it while more calls are being made to make sure there are no unforeseen issues. On Fri, Jan 24, 2014 at 5:35 AM, Tijmen de Mes

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-25 Thread Duane Larson
Not sure my price is being calculated correctly. My audio.outbound should be $0.005 My audio.inbound should be $0.0035 Here is an example of a call that lasted 2:06 minutes and is audio.outbound Increment=6 MinDuration=6 MaxDuration=6 ConnectFee=0. CallId=dc1e32b1ba18ff91a3

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-25 Thread Duane Larson
Ugh Nevermind. My Max Duration was set to 6 on the Destinations rate setup. I set it to zero and I think things are looking better now. Think I'm done for the day. Good work David! Really appreciate the patch. On Sat, Jan 25, 2014 at 6:56 PM, Duane Larson duane.lar...@gmail.comwrote:

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-24 Thread Tijmen de Mes
Hi David, Thanks for the patch. If have some time Monday I will analyze it and give you some feedback so we include this in CDRTool. Besides the rating, I’ve to check if the code that now sets the the ‘route’ for the CDRs and if there are no problems.    --  Tijmen de Mes AG-Projects On 23

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-23 Thread Adrian Georgescu
I think it would be a good idea. Adrian On 22 Jan 2014, at 16:58, David Lee (digium) d...@digium.com wrote: Duane Larson wrote: I have been playing with CDRTool for a while but I am not sure if it is possible to rate Origination (Inbound) calls differently than Termination (Outbound) calls

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-23 Thread David M. Lee
I’ve got a first attempt at a patch: https://gist.github.com/leedm777/8585690 To get this to work, your CDR’s will have to record the application subtype. For me, I set $avp(s:call_class) = “audio.inbound” or “audio.outbound” as appropriate in the routes, and added

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-22 Thread David Lee (digium)
Duane Larson wrote: I have been playing with CDRTool for a while but I am not sure if it is possible to rate Origination (Inbound) calls differently than Termination (Outbound) calls from my SIP Provider. For Origination I pay 0.0035 and for Termination I pay 0.005. Keep in mind these costs

Re: [OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-22 Thread Duane Larson
If you are going to make a patch I might be interested in testing it as long as AG-Projects are ok with adding it into future version. On Wed, Jan 22, 2014 at 12:58 PM, David Lee (digium) d...@digium.comwrote: Duane Larson wrote: I have been playing with CDRTool for a while but I am not sure

[OpenSIPS-Users] CDRTool - Rating Origination and Termination differently

2014-01-04 Thread Duane Larson
I have been playing with CDRTool for a while but I am not sure if it is possible to rate Origination (Inbound) calls differently than Termination (Outbound) calls from my SIP Provider. For Origination I pay 0.0035 and for Termination I pay 0.005. Keep in mind these costs are for destination 1.