Notices


Reply
Thread Tools
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#1
Some places like in UK here allot free minutes each month. The scripts attached are to display the remaining minutes and the used minutes each month.

Steps:
1. Enable endtime recording in database following the triggers script here
2. Copy freecalls.sh and calltimerpopup.sh in /home/user/scripts and make them executable (chmod +x freecalls.sh calltimerpopup.sh).
3. Copy callhangup and freecalllimit to /etc/dbus-scripts.d
4. Edit freecalls.sh for the freeminutes, starting date and number of sms which count to 1 minute. Leave SMSPERMINUTE=0 if they are not counted in minutes.
5. If there any phone numbers which shouldnt be counted edit FREE line. For me numbers 123 and 333 are free.
6. Reboot device and make a gsm call. Popup will appear after the call is terminated.

*Dbus-scripts need to be installed.
*Thanks to DocScrutinizer for sorting out the niggles.
Attached Images
 
Attached Files
File Type: zip scripts.zip (1.9 KB, 102 views)
__________________
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388

Last edited by rajil.s; 2011-07-16 at 12:09. Reason: Added capability to skip counting of free numbers
 

The Following 12 Users Say Thank You to rajil.s For This Useful Post:
Posts: 176 | Thanked: 110 times | Joined on Jul 2010
#2
looks good will give it a try
 
moepda's Avatar
Posts: 334 | Thanked: 118 times | Joined on Apr 2010 @ United Kingdom
#3
will try now as my minutes change at 12 !

update : followed install instructions and did reboot , made 1st call and message worked with used and remaining minutes.
will test again after midnight as my minutes for month restart then...

Last edited by moepda; 2011-07-13 at 22:20.
 

The Following User Says Thank You to moepda For This Useful Post:
moepda's Avatar
Posts: 334 | Thanked: 118 times | Joined on Apr 2010 @ United Kingdom
#4
tested after midnight and not working , message pops up ok but says used and remaining minutes but no numbers only blanks...
 
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#5
Originally Posted by moepda View Post
tested after midnight and not working , message pops up ok but says used and remaining minutes but no numbers only blanks...
That probably happened because there were no calls in the database. I have updated the freecalls.sh script to consider that.
__________________
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388
 

The Following 4 Users Say Thank You to rajil.s For This Useful Post:
moepda's Avatar
Posts: 334 | Thanked: 118 times | Joined on Apr 2010 @ United Kingdom
#6
used original script this morning and working . updating script anyway though . cheers for the update
 
Posts: 73 | Thanked: 9 times | Joined on May 2010 @ London
#7
I am going to give this a try and let you know how it goes?
 
Posts: 73 | Thanked: 9 times | Joined on May 2010 @ London
#8
My Data-plan is Flext 35 (T-Mobile UK). I get 900 Minutes or 1800 Text Messages..
i.e 2 text messages equates 1 minute

I just have 2 questions

1. Does your script count messages as well? If not can your script be enhanced to do it?

2. I am not sure about T-Mobile but some companies charge you by minute i.e even if you talk for say 30 seconds you will still be charged for a minute. Do you round of seconds to minutes?

Regards

Last edited by t4ure4n; 2011-07-14 at 11:36.
 
Posts: 73 | Thanked: 9 times | Joined on May 2010 @ London
#9
I have managed to get it working on my N900.

The problem I am getting this message

Free minutes consumed: 0
Remaining minutes: 900

I have followed step by step instructions and updated the freecalls.sh for freeminutes and starting date too.

I have restarted the phone and made few calls but it does not show correct information.

Last edited by t4ure4n; 2011-07-14 at 15:19.
 
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#10
@t4ure4n. Sms capability is now added. Set SMSPERMINUTE=2 to in freecalls.sh in your case. Also, the minutes are rounded off to a minute.

With regards to your free minutes not being updated, i think your triggers function in the database (Step 1) is not working. The triggers script i linked to is for firmware 1.2 and above.
__________________
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388
 

The Following 3 Users Say Thank You to rajil.s For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:12.