<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I think it would be a good idea.<div><br></div><div>Adrian<br><div><br></div><div><div><div>On 22 Jan 2014, at 16:58, David Lee (digium) <<a href="mailto:dlee@digium.com">dlee@digium.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Duane Larson wrote:<br><blockquote type="cite">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></blockquote><br>I've recently run into nearly the same situation.<br><br><div>I tried overloading the Sip-Application-Type field, but it's limited</div><div>by the supportedApplicationTypes array in cdr_generic.php. There also</div><div>seems to be hard coded logic for the different application types.</div><div><br></div>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/">www.digium.com</a> & <a href="http://www.asterisk.org/">www.asterisk.org</a></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></div></body></html>