Reply
Thread Tools
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#1
I've got a custom script ./call.sh that will wget the appropriate GrandCentral page and initiate a call back outgoing call. Right now I just accept the number on the command line, but I would love to know how to make it prompt and collect a number from the user.

I'm not now to linux or development, but with maemo I'm kinda lost.
 
Munk's Avatar
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#2
I can't help with a gui front end but would love a copy of the script.
 
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#3
It's stupid simple since it's just a matter of setting up the right calling enviornment for wget.

./call.sh 8005551212
./call.sh 800 druidia

Should result in getting a call on your gizmo line ( assuming you have the whole GC + gizmo thingee setup ). I presume you have already logged in to m.grandcentral.com and set your NIT as your "mobile" phone. Looking at the cookies it's possible to do more with this ( like ring any phone with any number ) with some simple tweaking.


Code:
#!/bin/sh

# Atempts to translate the command line into numbers without spaces or other chras                                                                               
number=`echo $* | sed 'y|abcABCdefDEFghiGHIjklJKLmnoMNOpqrsPQRStuvTUVwxyzWXYZ|2222223333334444445555556666667777777788888899999999|; s|[^0123456789\\\#\\\*]||g'`
                                                                                                                                                                                                          
echo wget -O /dev/null -q --load-cookie=/home/user/.mozilla/microb/cookies.txt --referer=http://www.grandcentral.com/mobile/messages http://www.grandcentral.com/mobile/calls/click_to_call?destno=$number
 

The Following User Says Thank You to brontide For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:09.