<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:15:19 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-231] Allow post-paid clients to set unlimited calls (No credit limit)</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-231</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;The following code allows the admin to set a post-paid customer credit limit to 0 which then allows the post paid customer to make unlimited calls. The code is in &lt;tt&gt;/freeswitch/scripts/astpp/lib/astpp.functions.lua&lt;/tt&gt;&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
function get_balance(userinfo)
	balance = (userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;balance&apos;&lt;/span&gt;]) + (userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;credit_limit&apos;&lt;/span&gt;] * userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;posttoexternal&apos;&lt;/span&gt;]);    
-- Override balance &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; call is DID / inbound and coming from provider to avoid provider balance checking upon DID call. 
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;type&apos;&lt;/span&gt;] == &lt;span class=&quot;code-quote&quot;&gt;&apos;3&apos;&lt;/span&gt; and call_direction == &lt;span class=&quot;code-quote&quot;&gt;&apos;inbound&apos;&lt;/span&gt;) then            
            balance = 10000
    end   
    -- Make Postpaid calls unlimited &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; credit limit set to 0. 
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;posttoexternal&apos;&lt;/span&gt;] == &lt;span class=&quot;code-quote&quot;&gt;&apos;1&apos;&lt;/span&gt; and userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;credit_limit&apos;&lt;/span&gt;] == &lt;span class=&quot;code-quote&quot;&gt;&apos;0.00000&apos;&lt;/span&gt;) then            
	 balance = 10000
    end   

    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; balance
end
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="12051">ASTPPCOM-231</key>
            <summary>Allow post-paid clients to set unlimited calls (No credit limit)</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="fozzygo4">fozzygo4</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Sep 2017 15:40:58 +0530</created>
                <updated>Thu, 1 Apr 2021 19:01:20 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 19:01:20 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="12959" author="smrdoshi" created="Fri, 15 Sep 2017 16:52:32 +0530"  >&lt;p&gt;@FozzyGo4 &lt;/p&gt;

&lt;p&gt;Thanks for your code contribution but setting default balance when postpaid customer have 0 balance might create unexpected behaviour for some system admins as they will think system is skipping balance checking for postpaid customers. So we cannot directly merge this request. &lt;/p&gt;

&lt;p&gt;However we can use the idea and give option to admin if they want to allow to postpaid customer to make unlimited calls without balance checking, If they select yes then only skip balance checking else not. &lt;/p&gt;

&lt;p&gt;What do you think? &lt;/p&gt;</comment>
                            <comment id="12960" author="fozzygo4" created="Fri, 15 Sep 2017 17:08:05 +0530"  >&lt;p&gt;Thats actually what I want to do. Add a checkbox to the customer profile to allow unlimited calls. If checked then it should grey out (disable and set to 0) the credit limit text box. Also this should only be available to post-paid customers.&lt;/p&gt;</comment>
                            <comment id="12961" author="fozzygo4" created="Fri, 15 Sep 2017 17:14:20 +0530"  >&lt;p&gt;Perhaps the code behind would be:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;posttoexternal&apos;&lt;/span&gt;] == &lt;span class=&quot;code-quote&quot;&gt;&apos;1&apos;&lt;/span&gt; and userinfo[&lt;span class=&quot;code-quote&quot;&gt;&apos;no_limit&apos;&lt;/span&gt;] == &lt;span class=&quot;code-quote&quot;&gt;&apos;1&apos;&lt;/span&gt;) then            
	 balance = 10000
    end
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Add a no limit checkbox. code behind uses {{ userinfo&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;no_limit&amp;#39;&amp;#93;&lt;/span&gt;}}&lt;/p&gt;</comment>
                            <comment id="12962" author="smrdoshi" created="Fri, 15 Sep 2017 17:17:17 +0530"  >&lt;p&gt;Exactly. That&apos;s the ideal way to do it.&lt;br/&gt;
If you get it implemented somehow then you can share that code with same&lt;br/&gt;
way. I will put this feature in wishlist.&lt;/p&gt;



&lt;p&gt;&amp;lt;&lt;a href=&quot;https://mailtrack.io/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mailtrack.io/&lt;/a&gt;&amp;gt; Sent with Mailtrack&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://mailtrack.io/install?source=signature&amp;amp;lang=en&amp;amp;referral=samir.doshi@inextrix.com&amp;amp;idSignature=22&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mailtrack.io/install?source=signature&amp;amp;lang=en&amp;amp;referral=samir.doshi@inextrix.com&amp;amp;idSignature=22&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 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 Fri, Sep 15, 2017 at 5:14 PM, Stephen Forster &amp;lt;notifications@github.com&amp;gt;&lt;br/&gt;
wrote:&lt;/p&gt;

&lt;p&gt;&amp;gt; Perhaps the code behind would be:&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; if (userinfo&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;posttoexternal&amp;#39;&amp;#93;&lt;/span&gt; == &apos;1&apos; and userinfo&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;no_limit&amp;#39;&amp;#93;&lt;/span&gt; == &apos;1&apos;) then&lt;br/&gt;
&amp;gt; 	 balance = 10000&lt;br/&gt;
&amp;gt;     end&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; Add a no limit checkbox. code behind uses userinfo&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;no_limit&amp;#39;&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 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/pull/231#issuecomment-329758773&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/pull/231#issuecomment-329758773&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/AA6gcRpbBpvqHb3r6drQ-i12GF2j_kR6ks5simMVgaJpZM4PYw_M&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/notifications/unsubscribe-auth/AA6gcRpbBpvqHb3r6drQ-i12GF2j_kR6ks5simMVgaJpZM4PYw_M&lt;/a&gt;&amp;gt;&lt;br/&gt;
&amp;gt; .&lt;br/&gt;
&amp;gt;&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>231</customfieldvalue>

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

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