<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:14:57 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-190] Bad limit counter</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-190</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;hi, we create 5 trunks using the same Gateway,&lt;br/&gt;
every trunk has he own limit.&lt;br/&gt;
but when astpp launch the call it use &lt;em&gt;limit_execute&lt;/em&gt;, example:&lt;br/&gt;
&lt;em&gt;limit_execute(db FS-OUT gw_FS-OUT 20 bridge sofia/gateway/FS-OUT/5742792866)&lt;/em&gt;&lt;br/&gt;
we see this line repeat for every trunk call out, but there is a problem it use the same resource &lt;em&gt;gw_FS-OUT&lt;/em&gt; for every call, so this not limit well.&lt;/p&gt;

&lt;p&gt;you can check, calling from &lt;em&gt;fs_cli&lt;/em&gt; &lt;em&gt;limit_usage db FS-OUT gw_FS-OUT&lt;/em&gt; you see we always using the same counter for each trunk limit.&lt;/p&gt;

&lt;p&gt;our solution was edit, astpp.xml.lua:&lt;/p&gt;

&lt;p&gt;~~~lua&lt;br/&gt;
able.insert(xml, [&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;action application=&amp;quot;limit_execute&amp;quot; data=&amp;quot;db &amp;#93;&lt;/span&gt;]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[[ gw_]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[[ ]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;maxchannels&amp;#39;&amp;#93;&lt;/span&gt;..[[ bridge sofia/gateway/]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[&lt;span class=&quot;error&quot;&gt;&amp;#91;/&amp;#93;&lt;/span&gt;]..temp_destination_number..[&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;/&amp;gt;&amp;#93;&lt;/span&gt;]);&lt;br/&gt;
~~~&lt;/p&gt;

&lt;p&gt;replace with, variable resource &lt;em&gt;outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;&lt;/em&gt; with &lt;em&gt;outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;trunk_id&amp;#39;&amp;#93;&lt;/span&gt;&lt;/em&gt;&lt;br/&gt;
~~~lua&lt;br/&gt;
able.insert(xml, [&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;action application=&amp;quot;limit_execute&amp;quot; data=&amp;quot;db &amp;#93;&lt;/span&gt;]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[[ gw_]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;trunk_id&amp;#39;&amp;#93;&lt;/span&gt;..[[ ]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;maxchannels&amp;#39;&amp;#93;&lt;/span&gt;..[[ bridge sofia/gateway/]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[&lt;span class=&quot;error&quot;&gt;&amp;#91;/&amp;#93;&lt;/span&gt;]..temp_destination_number..[&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;/&amp;gt;&amp;#93;&lt;/span&gt;]);&lt;br/&gt;
~~~&lt;/p&gt;</description>
                <environment></environment>
        <key id="12010">ASTPPCOM-190</key>
            <summary>Bad limit counter</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="Neurotec">Neurotec Tecnologia S.A.S</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Mar 2017 22:58:25 +0530</created>
                <updated>Thu, 1 Apr 2021 19:00:10 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 19:00:10 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="12837" author="smrdoshi" created="Wed, 5 Apr 2017 07:32:06 +0530"  >&lt;p&gt;I guess you have gateways created with same name right?&lt;br/&gt;
If so then yeah this will happen.&lt;/p&gt;

&lt;p&gt;Its good idea to use id in place of gateway name. We will update that.&lt;/p&gt;

&lt;h2&gt;&lt;a name=&quot;BestRegards&quot;&gt;&lt;/a&gt;Best Regards&lt;/h2&gt;
&lt;p&gt;Samir Doshi&lt;br/&gt;
&lt;em&gt;iNextrix Technologie&lt;/em&gt;&lt;em&gt;s Pvt. Ltd&lt;/em&gt;.&lt;br/&gt;
&lt;a href=&quot;http://www.inextrix.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.inextrix.com&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;em&gt;Disclaimer:&lt;/em&gt;&lt;br/&gt;
The information contained in this communication is confidential and may be&lt;br/&gt;
legally privileged. It is intended solely for the use of the individual or&lt;br/&gt;
entity to whom it is addressed and others authorized to receive it. If you&lt;br/&gt;
are not the intended recipient you are hereby notified that any disclosure,&lt;br/&gt;
copying, distribution or taking action in reliance of the contents of this&lt;br/&gt;
information is strictly prohibited and may be unlawful. Please notify the&lt;br/&gt;
sender immediately and destroy all copies of this message and any&lt;br/&gt;
attachments contained in it.&lt;/p&gt;

&lt;p&gt;On Tue, Mar 28, 2017 at 10:58 PM, Neurotec Tecnologia S.A.S &amp;lt;&lt;br/&gt;
notifications@github.com&amp;gt; wrote:&lt;/p&gt;

&lt;p&gt;&amp;gt; hi, we create 5 trunks using the same Gateway,&lt;br/&gt;
&amp;gt; every trunk has he own limit.&lt;br/&gt;
&amp;gt; but when astpp launch the call it use &lt;em&gt;limit_execute&lt;/em&gt;, example:&lt;br/&gt;
&amp;gt; *limit_execute(db FS-OUT gw_FS-OUT 20 bridge&lt;br/&gt;
&amp;gt; sofia/gateway/FS-OUT/5742792866)*&lt;br/&gt;
&amp;gt; we see this line repeat for every trunk call out, but there is a problem&lt;br/&gt;
&amp;gt; it use the same resource &lt;em&gt;gw_FS-OUT&lt;/em&gt; for every call, so this not limit&lt;br/&gt;
&amp;gt; well.&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; you can check, calling from &lt;em&gt;fs_cli&lt;/em&gt; &lt;em&gt;limit_usage db FS-OUT gw_FS-OUT&lt;/em&gt;&lt;br/&gt;
&amp;gt; you see we always using the same counter for each trunk limit.&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; our solution was edit, astpp.xml.lua:&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; able.insert(xml, [&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;action application=&amp;quot;limit_execute&amp;quot; data=&amp;quot;db &amp;#93;&lt;/span&gt;]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[[ gw_]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[[ ]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;maxchannels&amp;#39;&amp;#93;&lt;/span&gt;..[[ bridge sofia/gateway/]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[&lt;span class=&quot;error&quot;&gt;&amp;#91;/&amp;#93;&lt;/span&gt;]..temp_destination_number..[&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;/&amp;gt;&amp;#93;&lt;/span&gt;]);&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; replace with, variable resource &lt;em&gt;outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;&lt;/em&gt; with&lt;br/&gt;
&amp;gt; &lt;em&gt;outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;trunk_id&amp;#39;&amp;#93;&lt;/span&gt;&lt;/em&gt;&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; able.insert(xml, [&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;action application=&amp;quot;limit_execute&amp;quot; data=&amp;quot;db &amp;#93;&lt;/span&gt;]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[[ gw_]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;trunk_id&amp;#39;&amp;#93;&lt;/span&gt;..[[ ]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;maxchannels&amp;#39;&amp;#93;&lt;/span&gt;..[[ bridge sofia/gateway/]]..outbound_info&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;path&amp;#39;&amp;#93;&lt;/span&gt;..[&lt;span class=&quot;error&quot;&gt;&amp;#91;/&amp;#93;&lt;/span&gt;]..temp_destination_number..[&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;/&amp;gt;&amp;#93;&lt;/span&gt;]);&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; &#8212;&lt;br/&gt;
&amp;gt; You are receiving this because you are subscribed to this thread.&lt;br/&gt;
&amp;gt; Reply to this email directly, view it on GitHub&lt;br/&gt;
&amp;gt; &amp;lt;&lt;a href=&quot;https://github.com/iNextrix/ASTPP/issues/190&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/issues/190&lt;/a&gt;&amp;gt;, or mute the thread&lt;br/&gt;
&amp;gt; &amp;lt;&lt;a href=&quot;https://github.com/notifications/unsubscribe-auth/AA6gcd7HQIzkzEwWqPQDqMqassEjfRtQks5rqUM6gaJpZM4Mr8dc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/notifications/unsubscribe-auth/AA6gcd7HQIzkzEwWqPQDqMqassEjfRtQks5rqUM6gaJpZM4Mr8dc&lt;/a&gt;&amp;gt;&lt;br/&gt;
&amp;gt; .&lt;br/&gt;
&amp;gt;&lt;/p&gt;</comment>
                            <comment id="12838" author="smrdoshi" created="Fri, 21 Apr 2017 17:21:13 +0530"  >&lt;p&gt;Fixed. We changed code. &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>190</customfieldvalue>

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

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