<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:25:52 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-1409] Anonymous calls to calling card access number drop and result in SQL query error</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-1409</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;Anonymous calls to calling card access numbers 16045554444 and 14162225523 get dropped due to SQL lookup error for a field &apos;anonymous&apos;. &lt;br/&gt;
&lt;a href=&quot;https://pastebin.com/AhBfyB1b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://pastebin.com/AhBfyB1b&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I fixed it by skipping the sql query if ani_number is &apos;anonymous&apos; or &apos;private&apos;&lt;br/&gt;
in &apos;/opt/ASTPP/freeswitch/scripts/astpp/lib/calingcard.functions.lua&apos;&lt;/p&gt;

&lt;p&gt;--[[ Check DID info. Original code changed to DCI code below&lt;br/&gt;
function get_ani(ani_number)&lt;br/&gt;
    local query = &quot;SELECT * FROM ani_map WHERE number = &quot;.. ani_number&lt;br/&gt;
    Logger.debug(&quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;CHECK_DID&amp;#93;&lt;/span&gt; Query :&quot; .. query)  &lt;br/&gt;
    assert (dbh:query(query, function(u)&lt;br/&gt;
	ani = u;&lt;br/&gt;
    end))&lt;br/&gt;
    return ani;&lt;br/&gt;
end ]]&lt;/p&gt;

&lt;p&gt;&amp;#8211; DCI change. Check DID info. Skip sql query if ani_number is anonymous&lt;br/&gt;
function get_ani(ani_number)&lt;br/&gt;
    local ani = nil  &amp;#8211; Initialize ani variable to nil&lt;br/&gt;
    &amp;#8211; Check if ani_number contains alphanumeric characters to avoid SQL query execution&lt;br/&gt;
    if ani_number == &quot;anonymous&quot; or ani_number == &quot;private&quot; or ani_number == &quot;Unavailable&quot; then&lt;br/&gt;
        Logger.debug(&quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;CHECK_DID&amp;#93;&lt;/span&gt; Skipping SQL query for ani_number: &quot; .. ani_number)&lt;br/&gt;
    else&lt;br/&gt;
        local query = &quot;SELECT * FROM ani_map WHERE number = &quot;.. ani_number&lt;br/&gt;
        Logger.debug(&quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;CHECK_DID&amp;#93;&lt;/span&gt; Query :&quot; .. query)  &lt;br/&gt;
        &amp;#8211; Execute the SQL query only if ani_number doesn&apos;t contain special values&lt;br/&gt;
        assert(dbh:query(query, function(u)&lt;br/&gt;
        ani = u;&lt;br/&gt;
        end))&lt;br/&gt;
    end&lt;br/&gt;
    return ani;&lt;br/&gt;
end &amp;#8211; DCI end ]]&lt;/p&gt;</description>
                <environment></environment>
        <key id="53169">ASTPPCOM-1409</key>
            <summary>Anonymous calls to calling card access number drop and result in SQL query error</summary>
                <type id="10200" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.astppbilling.org/images/icons/priorities/medium.svg">Medium</priority>
                        <status id="1" iconUrl="https://jira.astppbilling.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="samir.doshi">Samir Doshi</assignee>
                                    <reporter username="dcitelecom">Jack Birnbaum</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Feb 2024 07:36:43 +0530</created>
                <updated>Fri, 9 Feb 2024 07:38:01 +0530</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_11301" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>ASTPP Edition</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10902"><![CDATA[Enterprise]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10719" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Category</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10334"><![CDATA[Performance]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11300" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Edition</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10900"><![CDATA[Community]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10700" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>RCA</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10301"><![CDATA[Coding]]></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10718" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Reproducibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10323"><![CDATA[always]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10702" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Support Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10317"><![CDATA[Managed]]></customfieldvalue>

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