<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:15:42 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Jira</title>
    <link>https://jira.astppbilling.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.13.3</version>
        <build-number>813003</build-number>
        <build-date>14-01-2021</build-date>
    </build-info>


<item>
            <title>[ASTPPCOM-273] SEVERE BILLING BUG - TERMINATION COSTS ARE WRONGFULLY CALCULATED</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-273</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;I have just realized that the &quot;Cost&quot; in the CDR reports are incorrectly calculated when &quot;lower level:&quot; matching codes exist with a lower price. For example - if you have a price for the code &quot;+1&quot; of USD 0.01 and a price for the code &quot;+1234&quot; of USD 0.20 and a call terminating to +1234567890123 ASTPP wrongfully calculates the cost with the USD 0.01 rate. Below is the query used to determine the termination rate - as one can see - the data is sorted by TR.COST ASC - I suppose if it were DESC all should work as it is supposed to. I am fresh to the community so I don&apos;t have a patch for the problem - can someone please have a look and fix this? Thanks!&lt;/p&gt;

&lt;p&gt;2017-11-30 20:07:03.041860 &lt;span class=&quot;error&quot;&gt;&amp;#91;DEBUG&amp;#93;&lt;/span&gt; switch_cpp.cpp:1365 &lt;span class=&quot;error&quot;&gt;&amp;#91;ASTPP&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;GET_CARRIER_RATES&amp;#93;&lt;/span&gt; Query :SELECT TK.id as trunk_id,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TK.cid_translation,TR.init_inc,TK.status,TK.dialed_modify,TK.maxchannels,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern =&apos;&lt;sup&gt;&lt;ins&gt;1234567890123.&lt;b&gt;&apos; OR pattern =&apos;&lt;/sup&gt;+123456789012.&lt;/b&gt;&apos; OR pattern =&apos;&lt;sup&gt;+12345678901.&lt;b&gt;&apos; OR pattern =&apos;&lt;/sup&gt;+1234567890.&lt;/b&gt;&apos; OR pattern =&apos;&lt;sup&gt;+12345678.&lt;b&gt;&apos; OR pattern =&apos;&lt;/sup&gt;+1234567.&lt;/b&gt;&apos; OR pattern =&apos;&lt;sup&gt;+123456.&lt;b&gt;&apos; OR pattern =&apos;&lt;/sup&gt;+12345.&lt;/b&gt;&apos; OR pattern =&apos;&lt;sup&gt;+1234.&lt;b&gt;&apos; OR pattern =&apos;&lt;/sup&gt;+123.&lt;/b&gt;&apos; OR pattern =&apos;&lt;sup&gt;+12.&lt;b&gt;&apos; OR pattern =&apos;&lt;/sup&gt;+1.&lt;/b&gt;&apos; OR pattern =&apos;^&lt;/ins&gt;.*&apos; OR pattern =&apos;--&apos;) AND TR.status = 0  AND TR.trunk_id=1 ORDER by TR.cost ASC,TR.precedence ASC, TK.precedence&lt;/p&gt;</description>
                <environment></environment>
        <key id="12093">ASTPPCOM-273</key>
            <summary>SEVERE BILLING BUG - TERMINATION COSTS ARE WRONGFULLY CALCULATED</summary>
                <type id="10201" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10700&amp;avatarType=issuetype">New Feature</type>
                                                <status id="10001" iconUrl="https://jira.astppbilling.org/images/icons/status_generic.gif" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="samir.doshi">Samir Doshi</assignee>
                                    <reporter username="ibwl">ibwl</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Dec 2017 01:04:20 +0530</created>
                <updated>Thu, 1 Apr 2021 19:02:18 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 19:02:18 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="13104" author="smrdoshi" created="Mon, 4 Dec 2017 18:16:10 +0530"  >&lt;p&gt;It seems you have selected cost based routing option in rate group. Chagne it to rate LCR and check it out. &lt;/p&gt;</comment>
                            <comment id="13105" author="ketan-kothari" created="Thu, 28 Dec 2017 16:17:46 +0530"  >&lt;p&gt;Closing this because of no activity since long time. Please respond to it to reopen it.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10703" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>273</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10006" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i00abj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>