New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow post-paid clients to set unlimited calls (No credit limit) #231
Conversation
Merge pull request #207 from iNextrix/v3.0
Update postpaid customer balance. As we have change concept in astpp 3.5.if we apply this change then postpaid customers are able to make calls.
Add a Gitter chat badge to README.md
|
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. 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. What do you think? |
|
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. |
|
Perhaps the code behind would be: Add a no limit checkbox. code behind uses |
|
Exactly. That's the ideal way to do it.
If you get it implemented somehow then you can share that code with same
way. I will put this feature in wishlist.
<https://mailtrack.io/> Sent with Mailtrack
<https://mailtrack.io/install?source=signature&lang=en&referral=samir.doshi@inextrix.com&idSignature=22>
Best Regards
--
Samir Doshi
*iNextrix Technologie**s Pvt. Ltd*.
http://www.inextrix.com
*Disclaimer:*
The information contained in this communication is confidential and may be
legally privileged. It is intended solely for the use of the individual or
entity to whom it is addressed and others authorized to receive it. If you
are not the intended recipient you are hereby notified that any disclosure,
copying, distribution or taking action in reliance of the contents of this
information is strictly prohibited and may be unlawful. Please notify the
sender immediately and destroy all copies of this message and any
attachments contained in it.
…On Fri, Sep 15, 2017 at 5:14 PM, Stephen Forster ***@***.***> wrote:
Perhaps the code behind would be:
if (userinfo['posttoexternal'] == '1' and userinfo['no_limit'] == '1') then
balance = 10000
end
Add a no limit checkbox. code behind uses userinfo['no_limit']
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#231 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA6gcRpbBpvqHb3r6drQ-i12GF2j_kR6ks5simMVgaJpZM4PYw_M>
.
|
…etch database information), Add table name into join query select fields as well as into where condition to get proper output.
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
/freeswitch/scripts/astpp/lib/astpp.functions.lua