<div dir="ltr">Got CDRTool patched. Will update OpenSIPS config and then play with it. Hope to have some testing done later in the day.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 24, 2014 at 5:35 AM, Tijmen de Mes <span dir="ltr"><<a href="mailto:tijmen@ag-projects.com" target="_blank">tijmen@ag-projects.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Hi David,</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Thanks for the patch. If have some time Monday I will analyze it and give you some feedback so we include this in CDRTool.</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">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.</div>
<span class="HOEnZb"><font color="#888888"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
</div> <div><span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Tijmen de Mes<br>AG-Projects</div></font></span><div><div class="h5"> <br><p style="color:#a0a0a8">On 23 januari 2014 at 21:21:26, David M. Lee (<a href="mailto:dlee@digium.com" target="_blank">dlee@digium.com</a>) wrote:</p>
<blockquote type="cite"><span><div><div>I’ve got a first attempt at a patch:
<br> <a href="https://gist.github.com/leedm777/8585690" target="_blank">https://gist.github.com/leedm777/8585690</a>
<br>
<br>To get this to work, your CDR’s will have to record the application
<br>subtype. For me, I set $avp(s:call_class) = “audio.inbound” or
<br>“audio.outbound” as appropriate in the routes, and added
<br>Sip-Application-Type=$avp(s:call_class) to “radius_extra”.
<br>
<br>Billing rates will be matched on the full application, allowing
<br>different rates depending on the application subtype.
<br>
<br>It works with the simple testing I’ve been able to do on my desktop.
<br>Feedback, of course, is greatly appreciated.
<br>
<br>Duane - Does the patch work for you?
<br>
<br>Adrian - Any objections/concerns with this approach?
<br>
<br>If it looks good, I’ll work on updating the docs.
<br>
<br>Thanks!
<br>--
<br>David M. Lee
<br>Digium, Inc. | Software Developer
<br>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
<br>Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a>
<br>
<br>On Jan 23, 2014, at 4:43 AM, Adrian Georgescu <<a href="mailto:ag@ag-projects.com" target="_blank">ag@ag-projects.com</a>> wrote:
<br>
<br>> I think it would be a good idea.
<br>>
<br>> Adrian
<br>>
<br>> On 22 Jan 2014, at 16:58, David Lee (digium) <<a href="mailto:dlee@digium.com" target="_blank">dlee@digium.com</a>> wrote:
<br>>
<br>>> Duane Larson wrote:
<br>>>> I have been playing with CDRTool for a while but I am not sure if it is
<br>>>> possible to rate Origination (Inbound) calls differently than Termination
<br>>>> (Outbound) calls from my SIP Provider. For Origination I pay 0.0035 and
<br>>>> for Termination I pay 0.005. Keep in mind these costs are for destination
<br>>>> "1”.
<br>>>
<br>>> I've recently run into nearly the same situation.
<br>>>
<br>>> I tried overloading the Sip-Application-Type field, but it's limited
<br>>> by the supportedApplicationTypes array in cdr_generic.php. There also
<br>>> seems to be hard coded logic for the different application types.
<br>>>
<br>>> I think I will patch CDRTool so that you can have subtypes of
<br>>> application types (audio.inbound, audio.outbound, etc.). This would
<br>>> allow the billing rates to be a bit more specific for these
<br>>> situations.
<br>>>
<br>>> Thoughts?
<br>>> --
<br>>> David M. Lee
<br>>> Digium, Inc. | Software Developer
<br>>> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
<br>>> Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a>
<br>>> _______________________________________________
<br>>> Users mailing list
<br>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<br>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>>
<br>> _______________________________________________
<br>> Users mailing list
<br>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<br>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
<br>
<br>_______________________________________________
<br>Users mailing list
<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br></div></div></span></blockquote></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--
</div>