<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:14:54 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-184] IP_MAP bad matching netmask</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-184</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;hi when we register a ip settings for example, 89.80.70.0/24 this not allow calls from 89.80.70.55 throws (&lt;span class=&quot;error&quot;&gt;&amp;#91;ASTPP&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;Dialplan&amp;#93;&lt;/span&gt; Call authentication fail..!!).&lt;/p&gt;

&lt;p&gt;this was our fast solution on &lt;b&gt;astpp.functions.lua&lt;/b&gt;:&lt;/p&gt;

&lt;p&gt;replace&lt;br/&gt;
~~~lua&lt;br/&gt;
local query = &quot;SELECT &quot;..TBL_IP_MAP..&quot;.*, (SELECT number FROM &quot;..TBL_USERS..&quot; where id=accountid AND status=0 AND deleted=0) AS account_code FROM &quot;..TBL_IP_MAP..&quot; WHERE SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND prefix IN (NULL,&apos;&apos;) OR SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND \&quot;&quot; .. destination_number .. &quot;\&quot;  RLIKE prefix ORDER BY LENGTH(prefix) DESC LIMIT 1&quot;&lt;br/&gt;
~~~&lt;/p&gt;

&lt;p&gt;with&lt;br/&gt;
~~~lua&lt;br/&gt;
local query = &quot;SELECT &quot;..TBL_IP_MAP..&quot;.*, (SELECT number FROM &quot;..TBL_USERS..&quot; where id=accountid AND status=0 AND deleted=0) AS account_code FROM &quot;..TBL_IP_MAP..&quot; WHERE (INET_ATON(\&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot;) &amp;amp; (0xFFFFFFFF &amp;amp; (-1 &amp;lt;&amp;lt; 32 - SUBSTRING_INDEX(ip, &apos;/&apos;,-1)))) =  ((0xFFFFFFFF &amp;amp; (-1 &amp;lt;&amp;lt; 32 - SUBSTRING_INDEX(ip, &apos;/&apos;,-1))) &amp;amp; INET_ATON(SUBSTRING_INDEX(ip,&apos;/&apos;,1))) OR SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND prefix IN (NULL,&apos;&apos;) OR SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND \&quot;&quot; .. destination_number .. &quot;\&quot;  RLIKE prefix ORDER BY LENGTH(prefix) DESC LIMIT 1&quot;&lt;br/&gt;
~~~&lt;/p&gt;

&lt;p&gt;thanks for you work&lt;/p&gt;</description>
                <environment></environment>
        <key id="12004">ASTPPCOM-184</key>
            <summary>IP_MAP bad matching netmask</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>Wed, 22 Feb 2017 20:44:10 +0530</created>
                <updated>Thu, 1 Apr 2021 19:01:45 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 19:01:45 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="12831" author="smrdoshi" created="Fri, 24 Feb 2017 17:03:19 +0530"  >&lt;p&gt;Thanks for the patch. We will test it out and merge it.&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 authorised 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.&lt;/p&gt;

&lt;p&gt;On Wed, Feb 22, 2017 at 8:44 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 when we register a ip settings for example, 89.80.70.0/24 this not&lt;br/&gt;
&amp;gt; allow calls from 89.80.70.55 for example.&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; this was our fast solution on &lt;em&gt;astpp.functions.lua&lt;/em&gt;:&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; replace&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; local query = &quot;SELECT &quot;..TBL_IP_MAP..&quot;.*, (SELECT number FROM &quot;..TBL_USERS..&quot; where id=accountid AND status=0 AND deleted=0) AS account_code FROM &quot;..TBL_IP_MAP..&quot; WHERE SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND prefix IN (NULL,&apos;&apos;) OR SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND \&quot;&quot; .. destination_number .. &quot;\&quot;  RLIKE prefix ORDER BY LENGTH(prefix) DESC LIMIT 1&quot;&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; with&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; local query = &quot;SELECT &quot;..TBL_IP_MAP..&quot;.*, (SELECT number FROM &quot;..TBL_USERS..&quot; where id=accountid AND status=0 AND deleted=0) AS account_code FROM &quot;..TBL_IP_MAP..&quot; WHERE INET_ATON(\&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot;) =  ((0xFFFFFFFF &amp;amp; (-1 &amp;lt;&amp;lt; 32 - SUBSTRING_INDEX(ip, &apos;/&apos;,-1))) &amp;amp; INET_ATON(SUBSTRING_INDEX(ip,&apos;/&apos;,1))) OR SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND prefix IN (NULL,&apos;&apos;) OR SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = \&quot;&quot; .. params:getHeader(&apos;Hunt-Network-Addr&apos;).. &quot;\&quot; AND \&quot;&quot; .. destination_number .. &quot;\&quot;  RLIKE prefix ORDER BY LENGTH(prefix) DESC LIMIT 1&quot;&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; thanks for you work&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/184&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/issues/184&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/AA6gcUMzfP1ESAsjOLoxeKA3UlzxjFwWks5rfFDCgaJpZM4MIxOi&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/notifications/unsubscribe-auth/AA6gcUMzfP1ESAsjOLoxeKA3UlzxjFwWks5rfFDCgaJpZM4MIxOi&lt;/a&gt;&amp;gt;&lt;br/&gt;
&amp;gt; .&lt;br/&gt;
&amp;gt;&lt;/p&gt;</comment>
                            <comment id="12832" author="smrdoshi" created="Wed, 1 Mar 2017 12:52:58 +0530"  >&lt;p&gt;We applied patch now. Thanks for the contribution. &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>184</customfieldvalue>

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

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