<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:16:47 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-401] SIP devices and IP settings are orphaned after deleting provider account</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-401</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;It appears that deleting an account only makes the settings disappear from the GUI but not the DB.  However, it is not just the row in the &lt;tt&gt;account&lt;/tt&gt; table that remains but also associated settings in other tables.  This creates problems when trying to add new settings as they will fail validation if they have the same SIP username or IP etc.&lt;/p&gt;

&lt;p&gt;There are probably other settings that are orphaned as well.  Maybe all of them?  Maybe this is by design and if so why?&lt;/p&gt;</description>
                <environment></environment>
        <key id="12221">ASTPPCOM-401</key>
            <summary>SIP devices and IP settings are orphaned after deleting provider account</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="powerpbx">powerpbx</reporter>
                        <labels>
                            <label>bug_fixed</label>
                    </labels>
                <created>Mon, 16 Apr 2018 01:30:48 +0530</created>
                <updated>Sun, 27 Oct 2019 15:49:59 +0530</updated>
                            <resolved>Mon, 28 May 2018 12:53:20 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="13315" author="smrdoshi" created="Thu, 3 May 2018 13:56:46 +0530"  >&lt;p&gt;When you delete an account, we are deleting records from all modules which belong to that account except for accounts and cdrs. For account, we do soft delete which means only flag will be changed and it will disappear from the UI. &lt;/p&gt;

&lt;p&gt;The purpose to do soft delete of account and to keep CDR is, in many countries admin need to keep cdr records for all the customers for few months or years. Now if we hard delete those records then admin might be in trouble. To avoid that issue, we implemented soft delete concept. &lt;/p&gt;

&lt;p&gt;Now regarding your point for sip device and ip settings, I just tested it in version 3.6 and I am not facing any problem. I am able to create same sip device and ip settings. &lt;/p&gt;

&lt;p&gt;If you are still facing the problem then highlight the exact issue. &lt;/p&gt;</comment>
                            <comment id="13316" author="powerpbx" created="Thu, 10 May 2018 00:19:20 +0530"  >&lt;p&gt;This appears to happen on provider accounts but not customer accounts.&lt;/p&gt;

&lt;p&gt;To reproduce, create a provider account and add a sip device and IP settings.  Note the sip device username and IP address.  Now delete that provider account.  The sip device and IP setting will still exist in the database but no longer shows up in the GUI.  So it&apos;s orphaned data.  This is not the the same behavior as customer accounts.  Deleting a customer account from the GUI removes the respective devices and IP settings from the database.&lt;/p&gt;

&lt;p&gt;Now create a customer account or another provider account and a sip device with the exact same device username or IP settings with the same IP address as before.  It will fail validation because that sip device username and IP setting still exists in the database as orphaned device and IP even though they are no longer in the GUI.&lt;/p&gt;</comment>
                            <comment id="13317" author="smrdoshi" created="Tue, 15 May 2018 17:05:37 +0530"  >&lt;p&gt;Just tried same thing which you mentioned and it worked without any&lt;br/&gt;
problem.&lt;/p&gt;

&lt;p&gt;Here is the video of it : &lt;a href=&quot;http://nimb.ws/BqpSnb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://nimb.ws/BqpSnb&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&#8204;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;image: Mailtrack&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://mailtrack.io?utm_source=gmail&amp;amp;utm_medium=signature&amp;amp;utm_campaign=signaturevirality4&amp;amp;&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mailtrack.io?utm_source=gmail&amp;amp;utm_medium=signature&amp;amp;utm_campaign=signaturevirality4&amp;amp;&lt;/a&gt;&amp;gt;&lt;br/&gt;
Sender&lt;br/&gt;
notified by&lt;br/&gt;
Mailtrack&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://mailtrack.io?utm_source=gmail&amp;amp;utm_medium=signature&amp;amp;utm_campaign=signaturevirality4&amp;amp;&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mailtrack.io?utm_source=gmail&amp;amp;utm_medium=signature&amp;amp;utm_campaign=signaturevirality4&amp;amp;&lt;/a&gt;&amp;gt;&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 on 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 Thu, May 10, 2018 at 12:19 AM, powerpbx &amp;lt;notifications@github.com&amp;gt; wrote:&lt;/p&gt;

&lt;p&gt;&amp;gt; Create a customer account and add a sip device. Now delete that customer&lt;br/&gt;
&amp;gt; account.&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; Now create another customer account and try dd a sip device with the exact&lt;br/&gt;
&amp;gt; same name. It will fail validation because that same sip device name still&lt;br/&gt;
&amp;gt; exists in the database.&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; I believe the same thing will happen if you add IP Settings to an account&lt;br/&gt;
&amp;gt; and then delete account and then try add the same IP again to a different&lt;br/&gt;
&amp;gt; account.&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; &#8212;&lt;br/&gt;
&amp;gt; You are receiving this because you commented.&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/401#issuecomment-387838730&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/issues/401#issuecomment-387838730&lt;/a&gt;&amp;gt;, or mute&lt;br/&gt;
&amp;gt; the thread&lt;br/&gt;
&amp;gt; &amp;lt;&lt;a href=&quot;https://github.com/notifications/unsubscribe-auth/AA6gca17X9gGlZNXdduvqXwNERkPRbp1ks5twzowgaJpZM4TVn0j&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/notifications/unsubscribe-auth/AA6gca17X9gGlZNXdduvqXwNERkPRbp1ks5twzowgaJpZM4TVn0j&lt;/a&gt;&amp;gt;&lt;br/&gt;
&amp;gt; .&lt;br/&gt;
&amp;gt;&lt;/p&gt;</comment>
                            <comment id="13318" author="powerpbx" created="Tue, 15 May 2018 19:07:46 +0530"  >&lt;p&gt;That video shows you deleting a customer.  Not a provider.  The orphaned devices only occur when you delete providers with devices.&lt;/p&gt;</comment>
                            <comment id="13319" author="powerpbx" created="Tue, 15 May 2018 21:17:55 +0530"  >&lt;p&gt;This is the clean up function that is run for customer that does not exist for provider as far as I can tell. &lt;br/&gt;
&lt;a href=&quot;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/libraries/astpp/common.php#L2047&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/libraries/astpp/common.php#L2047&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is run here&lt;br/&gt;
&lt;a href=&quot;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/libraries/astpp/common.php#L2098&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/libraries/astpp/common.php#L2098&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;here&lt;br/&gt;
&lt;a href=&quot;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/modules/accounts/controllers/accounts.php#L2154&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/modules/accounts/controllers/accounts.php#L2154&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and here&lt;br/&gt;
&lt;a href=&quot;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/modules/accounts/controllers/accounts.php#L2340&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/blob/4861cac21cd49153ecaa14573f89c1b04e5bcd38/web_interface/astpp/application/modules/accounts/controllers/accounts.php#L2340&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13320" author="devangn" created="Mon, 28 May 2018 12:53:20 +0530"  >&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;~powerpbx&amp;#93;&lt;/span&gt; Bug fixed.&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>401</customfieldvalue>

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

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