Codes to be used with GSM phones

These codes save you from having to go through yor phones menu to activate diverts (and other stuff)

For the geeks..... you can use this so that your computer can see that your BT macaddress is close (hciscan) and then atdt you a new divert setup over bluetooth when you're at home.

Sample... type this to Check status of "divert all calls"

*#21# (then press send)

Some characters explained
* activate
** register and activate
*# check status
# unregister
## unregister and deactivate

The codes are used by for example writing ##002# and the pressing the key corresponding to "Send". There are some codes where you are not supposed to press "Send". These codes are only to be used within the phone itself and they don't take any use of the net services.

Not all codes are functioning in all nets. It depends on what the operators have included in their software.

If a phone number is expected you should enter it in the international format e.g. +4412345687. This will always do the trick whatever net you are logged in to.

The codes are devided into different categories:
Safety
Call barring
Call forwarding/diversion
Number presentation
GSM network service codes

Safety
Command string Description
**03*OldCode*NewCode*NewCode# Change code for call barring
**03*330*OldCode*NewCode*NewCode# Change code for call barring
**04*OldPIN*NewPIN*NewPIN# Change PIN code
**042*OldPIN2*NewPIN2*NewPIN2# Change PIN2 code
**05*PUK*NewPIN*NewPIN# Unlock PIN code
**052*PUK2*NewPIN2*NewPIN2# Unlock PIN2 code
*#06# Show the IMEI number

Call barring
Command string Description
**33*code# Activate barr all outgoing calls (for code see "Safety" above)
#33*code# Deactivate barr all outgoing calls
*#33# Check status of barr all outgoing calls
**330*code# Activate barr all calls
#330*code# Deactivate barr all calls
*#330*code# Check status of barr all calls
**331*code# Activate barr all outgoing international calls
#331*code# Deactivate barr all outgoing international calls
*#331*code# Check status of barr all outgoing international calls
**332*code# Activate barr all outgoing international calls except home country
#332*code# Deactivate barr all outgoing international calls except home country
*#332*code# Check status of barr all outgoing international calls except home country
**333*code# Activate barr all outgoing calls
#333*code# Deactivate barr all outgoing calls
*#333# Check status of barr all outgoing calls
**35*code# Activate barr all incomming calls
#35*code# Deactivate barr all incomming calls
*#35# Check status of barr all incomming calls
**351*code# Activate barr all incomming calls when roaming
#351*code# Deactivate barr all incomming calls when roaming
*#351# Check status of barr all incomming calls when roaming
**353*code# Activate barr all incomming calls
#353*code# Deactivate barr all incomming calls
*#353# Check status of barr all incomming calls

Call forwarding/diversion
Command string Description
##002# Unregister all call diversions
**004*PhoneNumber# Set all configured call diversions to PhoneNumber
##004# Unregister all configured call diversions
**21*PhoneNumber# Register and activate divert all calls to PhoneNumber
*21# Activate divert all calls
#21# Deactivate divert all calls
##21# Unregister divert all calls
*#21# Check status of divert all calls
**61*PhoneNumber# Register and activate divert on no answer to PhoneNumber
*61# Activate divert on no answer
#61# Deactivate divert on no answer
##61# Unregister divert on no answer
*#61# Check status of divert on no answer
**62*PhoneNumber# Register and activate divert on not reachable
*62# Activate divert on not reachable
#62# Deactivate divert on not reachable
##62# Unregister divert on not reachable
*#62# Check status of divert on not reachable
**67*PhoneNumber# Register and activate divert on busy
*67# Activate divert on busy
#67# Deactivate divert on busy
##67# Unregister divert on busy
*#67# Check status of divert on busy

**Function**Seconds# Delay at diversion may be altered 5-30 sek

Call waiting
Command string Description
*43# Activate call waiting
#43# Deactivate call waiting
*#43# Check status of call waiting

Number presentation
The commands below will only function if the net operator has the following functions activated:
CLIP=the receipent can see the number of the caller (function of the receipent)
CLIR=the receipent can't see the number of the caller (function of the caller)
COLP=the caller can see the real number of the receipent (function of the caller)
COLR=the caller can't see the real number of the caller (function of the receipent)

Command string Description
*30#PhoneNumber Activate CLIP
#30#PhoneNumber Deactivate CLIP
*#30# Check status of CLIP
*31#PhoneNumber Activate CLIR for this call
#31#PhoneNumber Deactivate CLIR for this call
*#31# Check status of CLIR
*76# Activate COLP
#76# Deactivate COLP
*#76# Check status of COLP
*77# Acktivate COLR
#77# Deactivate COLR
*#77# Check status of COLR

GSM network servicecodes

Attention! only 11, 13 and 25 are functioning today. Later you will be able to use all these codes to monitor every single of the commands above by entering the service code just before the last # on the command line.

If you wish to divert all data calls to another PhoneNumber, you'll enter the command '*21*PhoneNumber*12#

Phone related
Service code Code description
10 All types of phone services
11 Speech sevice
12 Data sevice
13 Fax
14 Datex-J
15 Teletex
16 SMS
18 All data services except SMS
19 All phone services except SMS

Carrier related
Service code Code description
20 All services
21 All asynchronous services
22 All synchronous services
23 3.1kHz services
24 Synchronous Point-to-Point connections
25 Asynchronous Point-to-Point connections
26 Data packet sending
27 Sevices with PAD share
29 Digital connection with 12 kbps