Hi , Just starting with QBW I`ll appreciate some help. I have this code on a call.sh i create a desktop icon to run it. It does its work but i am looking for a better way to do this: Call XXXXXXXXXX number , if call is till a active after 275 seconds Hang Up the call and call XXXXXXXXXX again. PHP Code: #!/bin/sh dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"XXXXXXXXXX" uint32:0 sleep 275 output=`dbus-send --system --dest=com.nokia.csd.Call --print-reply=literal /com/nokia/csd/call/1 com.nokia.csd.Call.Instance.GetStatus` if [ "$output" == " uint32 8" ]; then dbus-send --system --dest=com.nokia.csd.Call --print-reply /com/nokia/csd/call com.nokia.csd.Call.Release sleep 4 sh /home/user/.call/call.sh exit else exit fi What i want is to stop the loop at any time becouse when I hang up manualy the call this scripts continue running and It will hung up any other call i make withing the 275 seconds. NOTE: this is for a toll free number for less than 5 minuts call, and its very useful using Hands Free car kit. Sorry for my english, still trying to improve it.
#!/bin/sh dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"XXXXXXXXXX" uint32:0 sleep 275 output=`dbus-send --system --dest=com.nokia.csd.Call --print-reply=literal /com/nokia/csd/call/1 com.nokia.csd.Call.Instance.GetStatus` if [ "$output" == " uint32 8" ]; then dbus-send --system --dest=com.nokia.csd.Call --print-reply /com/nokia/csd/call com.nokia.csd.Call.Release sleep 4 sh /home/user/.call/call.sh exit else exit fi