-
01-03-2008, 09:57 AM #21
hey man thx for ur time for the workaround for missed calls with sound but it is not working at all neither the sms nor missed call,,,, if i revert to the original file the sms will work again.
-
01-03-2008, 11:03 AM #22
-
01-03-2008, 11:48 AM #23
None of my sounds work on the phone other than rings...any way to fix it?
-
01-03-2008, 12:04 PM #24
-
01-03-2008, 12:16 PM #25
-
01-03-2008, 12:27 PM #26This did not work for me.#!/bin/sh
smsnpath=/usr/local/smsnotify
sql=/sqlite3
vibrate=/vibrator
audiofile=/Library/Ringtones/Doorbell.m4r
while test 1
do
n=` /var/root/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
if [ "" -gt 0 ]
then
/var/root/bin/playaudio &
&
fi
c=` /var/root/Library/CallHistory/call_history.db 'select count(*) from call where flags=4 and duration=0 and ROWID=(select max(ROWID) from call)'`;
if [ "" -gt 0 ]
then
/var/root/bin/playaudio &
&
fi
sleep 60
done
1.1.1
Erica's Utilities 0.53 installed (so /private/var/root/bin/playaudio is there)
BSD Subsystem 1.5 is also installed
What am I missing?
Edit: For the 2 people above, if you didn't make a backup of the original smsnotify.sh, I've attached it.Last edited by toffeenut; 01-03-2008 at 12:37 PM.
-
01-03-2008, 12:41 PM #27Livin the iPhone Life
- Join Date
- Jul 2007
- Location
- Ann Arbor
- Posts
- 1,536
- Thanks
- 78
- Thanked 60 Times in 52 Posts
very cool! great app, guys!
21.5" iMac 3.06 GHz Intel Core i3 l 15" MacBook Pro 2.2 GHz Intel Core i7 l 17" PowerBook 1.67 GHz
iPhone 4 32 GB l TV 160 GB l 32 GB iPad
-
01-03-2008, 12:43 PM #28iPhone? More like MyPhone
- Join Date
- Jul 2007
- Location
- KCMO
- Posts
- 177
- Thanks
- 0
- Thanked 8 Times in 8 Posts
-
01-03-2008, 01:19 PM #29
There are 3 "erica's utilities" under the installer though.
Erica's iPhone utilities
Erica's ported utils
Erica's utilities

-
01-03-2008, 01:31 PM #30iPhoneaholic
- Join Date
- Dec 2007
- Location
- West Yorkshire UK
- Posts
- 459
- Thanks
- 28
- Thanked 27 Times in 26 Posts
sweet can't wait t try this.
-
01-03-2008, 01:42 PM #31
for people having issues, seems copy/paste doesn't work 100% from quoted text
as:
1st
if [ "" -gt 0 ]
should be
if [ "$n" -gt 0 ]
and 2nd if [ "" -gt 0 ]
should be
if [ "$c" -gt 0 ]
As well, I have removed and reinstalled this app a few times and works accordingly.
Did you use installer to install?
What directory are you putting the modified .sh into? As you need to delete original .sh and then upload new .sh
-
01-03-2008, 01:47 PM #32
I just want this program GONE, and my sounds back.. I dont want to have to redo my entire phone because this stopped all sounds!!
-
01-03-2008, 02:44 PM #33
Nothing in this script to stop sounds. Maybe you accidently hit silent switch by volume? Just a thought..
Sounds like you did something else wrong. What directory did you put the modded .sh file in??? ( its not /usr/bin )
Try uninstalling Erica's Utilities and BSD Subsystem, then reinstalling BSD subsystem as needed for other utilities.
After this does ipod work or settings changing ringers?
-
01-03-2008, 03:04 PM #34
I tried it. Copied and pasted and made sure everything was exactly the same in the code from your post but it did not work for me.
Could you possibly post a copy of your modded .sh file? Maybe we could try uploading that and see if it works.
Oh yeah and BTW no sound loss problem on my phone.
-
01-03-2008, 03:45 PM #35
-
01-03-2008, 03:56 PM #36
Maybe not required but i rebooted iphone after install.
-
01-03-2008, 03:58 PM #37
I don't like the phone to vibrate, so I took those calls out. Also, I like different sound for a missed call and for a SMS received, so I added two of my own sound files, and another variable. The other thing I had to do was to make a copy of 'playaudio' and rename it to 'playaudio2'. The reason for this was that when I had a missed call & a received SMS, no alert would happen anymore. So I just call each sound file with its own 'playaudio' file. That seems to do the trick (mostly - so far I've notice that if I have a missed call & and a received SMS alarm, the missed call will sound first, then after the set interval, the SMS alert will continue until read.
Here is my version of smsnotify.sh :
#!/bin/sh
smsnpath=/usr/local/smsnotify
sql=$smsnpath/sqlite3
vibrate=$smsnpath/vibrator
audiofilea=/Library/Ringtones/missedacallM.m4a
audiofileb=/Library/Ringtones/newsmswaitingM.m4a
while test 1
do
n=`$sql /var/root/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
if [ "$n" -gt 0 ]
then
/var/root/bin/playaudio $audiofileb &
fi
c=`$sql /var/root/Library/CallHistory/call_history.db 'select count(*) from call where flags=4 and duration=0 and ROWID=(select max(ROWID) from call)'`;
if [ "$c" -gt 0 ]
then
/var/root/bin/playaudio2 $audiofilea &
fi
sleep 120
done
** I found that rebooting lets the iPhone read the changes made.Last edited by jrentzke; 01-03-2008 at 04:05 PM.
-
The Following User Says Thank You to jrentzke For This Useful Post:
chico_can (01-24-2008)
-
01-03-2008, 04:29 PM #38
-
01-03-2008, 04:46 PM #39
lets first see if you can get any sound as a reminder. Unzip this file and put it in place of the original smsnotify.sh file.
Then reboot the phone - important
This should notify you of a missed call or received sms with the 'Digital' sound, for every 10 seconds. I know, this will drive one nuts, but it's just to see if you get anything. The script can be changed afterwards.
Make sure you check the permissions.
Sorry, the attachment button doesn't seem to work for me now, so here is the file:
http://www.sendspace.com/file/2up866Last edited by jrentzke; 01-03-2008 at 05:00 PM.
-
01-03-2008, 05:07 PM #40
silly question...
It makes the phone sound all the time...even without missed call or sms..
As soon as I turn the phone on it makes the soundLast edited by rimmeroz; 01-03-2008 at 05:13 PM.



LinkBack URL
About LinkBacks
Reply With Quote

