maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [HACK!] autoanswer call (https://talk.maemo.org/showthread.php?t=80205)

joerg_rw 2011-11-22 10:01

[HACK!] autoanswer call
 
to automatically accept an inbound call after N rings, you can do:
start xterm
Code:

pnatd
at
ats0=1

close xterm (for N = 1 above, not tested for other N like ats0=5 etc)

to unset the "feature" use N:0 I.E. ats0=0

/j

pusak gaoq 2011-11-22 10:05

Re: [HACK!] autoanswer call
 
is this one time hacked or do we have to set it every time we restart/reboot our device???

joerg_rw 2011-11-22 10:14

Re: [HACK!] autoanswer call
 
another similar hack, same scheme as above:

AT+CNUM delivers your own number (if it's available on your SIM)

joerg_rw 2011-11-22 10:14

Re: [HACK!] autoanswer call
 
Quote:

Originally Posted by pusak gaoq (Post 1127262)
is this one time hacked or do we have to set it every time we restart/reboot our device???

I think this gets reset on reboots

travla 2011-11-22 10:16

Re: [HACK!] autoanswer call
 
Hey guys, Nicolai has already added this functionality in to ProfilesX:

http://maemo.org/downloads/product/Maemo5/profilesx/

And the beauty of it is it can be set to a Car profile (for example).

joerg_rw 2011-11-22 10:30

Re: [HACK!] get network info: LAC, CI
 
to query Local-Area-Code and Cell-Identifier of your base station:
at+creg? (watch first digit, for later restoring)
at+creg=2
at+creg?
>> n, stat, lac, ci
Code:

<n>:
0 disable network registration unsolicited result code
1 enable network registration unsolicited result code +CREG: <stat>
2 enable network registration and location information unsolicited result code +CREG:
<stat>[,<lac>,<ci>]
<stat>:
0 not registered, ME is not currently searching a new operator to register to
1 registered, home network
2 not registered, but ME is currently searching a new operator to register to
3 registration denied
4 unknown
5 registered, roaming
<lac>: string type; two byte location area code in hexadecimal format (e.g. "00C3" equals 195 in decimal)
<ci>: string type; two byte cell ID in hexadecimal format

restore to original state (much recommended):
at+creg=0 (if your state <n> been 0 in your first at+creg?)

vi_ 2011-11-22 10:53

Re: [HACK!] autoanswer call
 
This could make for an interesting script...


Is your tinfoil hat starting to feel the burn? Are you forever aware that the global new world order single government police state are intercepting your phone calls?

Simple, force your phone to 3G only mode (2G encryption has been compromised) and set your n900 to record the locations you are in (GPS) and a list of station IDs. Once you have 'learned' the cell IDs you normally connect to (you always travel around roughly the same area) you set the device to check your database of station IDs against location as you migrate through the network.

A rogue station ID has appeared? MITM ATTACK! They are closing in! Burn your clothes! Acid your fingerprints off! Run for the border!

Estel 2011-11-22 12:23

Re: [HACK!] autoanswer call
 
Huh, I see joerg_rw started to play with at_commands. I've worked with them for years, so for the first time, probably, I know his discoveries for quite a long time. Damn, never though that day will happen ;)

Seriously though, I agree that it's very nice to document it here - it's true that at commands are not very popular in scripts. Thinking about that, I have no idea why - for me (and anyone, who played with GSM modems and phones acting as modems for other, strange purposes) they're quite natural.

/Estel

joerg_rw 2011-11-26 04:16

Re: [HACK!] autoanswer call
 
ATTENTION!
unconfirmed observation: setting S0=0 did not restore modem behaviour to default for me! I got a call that got auto-accepted while I was not even noticing it ;-P.
Anyway going offline_mode for a moment obviously reset the modem for me, so everything back to normal after that

nicholes 2011-11-26 06:39

Re: [HACK!] autoanswer call
 
is there anyway i can play an audio file for a caller after an auto answer (like a voice msg) or can you make anything possible from this thread?


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

vBulletin® Version 3.8.8