Introduction

This page lists GSM codes you can type into your mobile phone to change or request the current status of a particular network setting. Use the following quick links:

Overview
Services Codes
Call Waiting
Divert Always
Divert Unanswered
Divert Unreachable
Divert Busy
Divert Conditional
Divert All
   
 
Call Barring: Outgoing
Call Barring: All
Call Barring: Outgoing International
Call Barring: Outgoing Int. Except Home
Call Barring: Incoming
Call Barring: Incoming If Roaming
   
 
Caller Line Identification: CLIP
Caller Line Identification: CLIR
Connected Line Identification: COLP
Connected Line Identification: COLR
PIN & Password Related
Miscellaneous


Overview

The codes on this page are used to set, unset or query the status of a network or phone setting. Most phones have a simple menu system that can be used to set diverts, call waiting, call barring, etc, some phones do not. Of the phones that do, not all give the complete functional set. The codes shown here can be used to compliment the menu shortcuts and to gain access to network or phone features not normally available. The phone menu is a convenience for the user, hiding the GSM codes that are sent to the network. This page lists the most common codes with examples of how they would be used.

You could, for example, set up an elaborate set of diverts that may not be possible using your phone menu. Most phones don't have the flexibility to divert voice calls to your home number if not answered within 20 seconds, to your work voicemail number if you reject the call and to voicemail if your phone is switched off and to divert your fax calls to your work fax number if not answered within 30 seconds. With the information on this page you can do just that.

Using the codes you can fine tune your diverts, as well as do a whole lot more. Some of the codes may not work if the mobile network you are connected to does not support them. After typing in the code, press the call button on your phone to send the request to the network. If you just want to have a play without messing up your current settings, use any of the codes that start with *#, these are status requests that do not make any changes. For example, type in *#43# and press the call button to see if you have call waiting enabled.

Use the information contained here with care, it is possible to really mess up if you don't know what you are doing. If you get in a muddle with your divert settings, use the special code ##002# as described in the divert all section to remove every divert setting.

The following table shows the general action performed depending on what the GSM code begins with:

**  Register and activate a service.
Activate a service.
##  Unregister and deactivate a service.
Deactivate a service.
*#  Check the current state of a service.


Service Codes

The following table lists all the possible [service] codes for use with call waiting and diverts. Not all of them are in use by GSM at the moment, those shown with an X should be avoided:

Phone Related
10  All cellphone services
  11  Speech (Voice)
12  Data
  13  Fax
14  Datex-J
15  Teletex
16  Short message service (SMS)
18  All data services without SMS
19  All cellphone services without SMS
Carrier Related
20  All carrier services
21  All asynchronous services
22  All synchronous services
23  3.1kHz services
24  All synchronous data services
  25  All asynchronous data services
26  All synchronous data packet services
27  Services with PAD-share
29  Digital connection with 12kbps


Call Waiting

Syntax
*43#  Activate call waiting for all calls.
#43#  Deactivate call waiting for all calls.
*#43#  Retrieve status of call waiting for all calls.
Extended Syntax [services]
*43*[service]#  Activate call waiting for [service] calls.
#43*[service]# Deactivate call waiting for [service] calls.
Examples
#43# Deactivate call waiting for all calls.
*43*11#  Activate call waiting for voice calls.
*#43#  Retrieve status of call waiting for voice, fax and data calls.


Divert Always / Unconditional (phone never rings)

Syntax
*21*[number]# Always divert all calls to [number].
**21*[number]#  Register [number] with always divert. Always divert all calls to [number].
*21# Always divert all calls to previously defined registered [number].
##21# Unregister always divert and deactivate for all calls.
#21# Deactivate always divert for all calls.
*#21# Retrieve status of always divert setting for all calls.
Extended Syntax [services]
*21*[number]*[service]#  Always divert [service] calls to [number].
*21#*[service]# Always divert [service] calls to previously defined registered [number].
##21#*[service]# Unregister always divert for [service] calls and deactivate.
#21#*[service]# Deactivate always divert for [service] calls.
*#21#*[service]# Retrieve status of always divert setting for [service] calls.
Examples
*21*+447953100200# Always divert all calls to +447953100200.
**21*+447953123456# Register +447953123456 as the number to which all calls should be diverted and always divert all calls to that number.
*21*+447953777888*11#  Always divert voice calls to +447953777888.
#21#*13# Stop always diverting fax calls.
*21#*13# Always divert fax calls to the number that has been registered.
*#21#*25# Retrieve status of always divert setting for data calls.


Divert Unanswered

Syntax
*61*[number]# Divert all unanswered calls to [number].
*61*[number]**[secs]#  Divert all unanswered calls to [number] after [secs] seconds.
**61*[number]# Register [number] with unanswered divert. Divert all unanswered calls to [number].
*61# Divert all unanswered calls to previously defined registered [number].
##61# Unregister unanswered divert and deactivate for all calls.
#61# Deactivate unanswered divert for all calls.
*#61# Retrieve status of unanswered divert setting for all calls.
Extended Syntax [services]
*61*[number]*[service]# Divert unanswered [service] calls to [number].
*61*[number]**[secs]*[service]#  Divert unanswered [service] calls to [number] after [secs] seconds.
*61#*[service]# Divert unanswered [service] calls to previously defined registered [number].
##61#*[service]# Unregister unanswered divert for [service] calls and deactivate.
#61#*[service]# Deactivate unanswered divert for [service] calls.
*#61#*[service]# Retrieve status of unanswered divert setting for [service] calls.
Examples
*61*+447953100200# Divert all unanswered calls to +447953100200.
**61*+447953123456# Register +447953123456 as the number to which all unanswered calls should be diverted and divert all unanswered calls to that number.
*61*+447953777888*11#  Divert unanswered voice calls to +447953777888.
*61*+447953777888**15*13#  Divert unanswered fax calls to +447953777888 after 15 seconds. The [secs] parameter must be one of 5, 10, 15, 20, 25 or 30.
#61#*13# Stop diverting unanswered fax calls.
*61#*13# Divert unanswered fax calls to the number that has been registered.
*#61#*25# Retrieve status of unanswered divert setting for data calls.


Divert Unreachable (e.g., when phone is off or bad / no signal)

Syntax
*62*[number]# Divert all unreachable calls to [number].
**62*[number]#  Register [number] with unreachable divert. Divert all unreachable calls to [number].
*62# Divert all unreachable calls to previously defined registered [number].
##62# Unregister unreachable divert and deactivate for all calls.
#62# Deactivate unreachable divert for all calls.
*#62# Retrieve status of unreachable divert setting for all calls.
Extended Syntax [services]
*62*[number]*[service]#  Divert unreachable [service] calls to [number].
*62#*[service]# Divert unreachable [service] calls to previously defined registered [number].
##62#*[service]# Unregister unreachable divert for [service] calls and deactivate.
#62#*[service]# Deactivate unreachable divert for [service] calls.
*#62#*[service]# Retrieve status of unreachable divert setting for [service] calls.
Examples
*62*+447953100200# Divert all unreachable calls to +447953100200.
**62*+447953123456# Register +447953123456 as the number to which all unreachable calls should be diverted and divert all unreachable calls to that number.
*62*+447953777888*11#  Divert unreachable voice calls to +447953777888.
#62#*13# Stop diverting unreachable fax calls.
*62#*13# Divert unreachable fax calls to the number that has been registered.
*#62#*25# Retrieve status of unreachable divert setting for data calls.


Divert Busy (eg: engaged & call waiting off or call rejected)

Syntax
*67*[number]# Divert all busy calls to [number].
**67*[number]#  Register [number] with busy divert. Divert all busy calls to [number].
*67# Divert all busy calls to previously defined registered [number].
##67# Unregister busy divert and deactivate for all calls.
#67# Deactivate busy divert for all calls.
*#67# Retrieve status of busy divert setting for all calls.
Extended Syntax [services]
*67*[number]*[service]#  Divert busy [service] calls to [number].
*67*[service]# Divert busy [service] calls to previously defined registered [number].
##67#*[service]# Unregister busy divert for [service] calls and deactivate.
#67#*[service]# Deactivate busy divert for [service] calls.
*#67#*[service]# Retrieve status of busy divert setting for [service] calls.
Examples
*67*+447953100200# Divert all busy calls to +447953100200.
**67*+447953123456# Register +447953123456 as the number to which all busy calls should be diverted and divert all busy calls to that number.
*67*+447953777888*11#  Divert busy voice calls to +447953777888.
#67#*13# Stop diverting busy fax calls.
*67#*13# Divert busy fax calls to the number that has been registered.
*#67#*25# Retrieve status of busy divert setting for data calls.


Divert Conditional (unanswered, unreachable & busy)

This divert overrides divert unanswered, divert unreachable and divert busy. It is not possible to obtain the status of this divert.

Syntax
*004*[number]# Divert all unanswered, unreachable & busy calls to [number].
*004*[number]**[secs]#  Divert all unanswered, unreachable & busy calls to [number] after [secs] seconds.
**004*[number]# Register [number] with unanswered, unreachable & busy divert. Divert all unanswered, unreachable & busy calls to [number].
*004# Divert all unanswered, unreachable & busy calls to previously defined registered [number].
##004# Unregister unanswered, unreachable & busy divert and deactivate for all calls.
#004# Deactivate unanswered, unreachable & busy divert for all calls.
Extended Syntax [services]
*004*[number]*[service]# Divert unanswered, unreachable & busy [service] calls to [number].
*004*[number]**[secs]*[service]#  Divert unanswered, unreachable & busy [service] calls to [number] after [secs] seconds.
*004*[service]# Divert unanswered, unreachable & busy [service] calls to previously defined registered [number].
##004#*[service]# Unregister unanswered, unreachable & busy divert for [service] calls and deactivate.
#004#*[service]# Deactivate unanswered, unreachable & busy divert for [service] calls.
Examples
*004*+447953100200# Divert all unanswered, unreachable & busy calls to +447953100200.
**004*+447953123456# Register +447953123456 as the number to which all unanswered, unreachable & busy calls should be diverted and divert all unanswered, unreachable & busy calls to that number.
*004*+447953777888*11#  Divert unanswered, unreachable & busy voice calls to +447953777888.
*004*+447953777888**15*13#  Divert unanswered, unreachable & busy fax calls to +447953777888 after 15 seconds. The [secs] parameter must be one of 5, 10, 15, 20, 25 or 30.
#004#*13# Stop diverting unanswered, unreachable & busy fax calls.
*004#*13# Divert unanswered, unreachable & busy fax calls to the number that has been registered.


Divert All (unconditional, unanswered, unreachable & busy)

This divert overrides divertalways, divert unanswered, divert unreachable, divert busy and divert conditional. It is not possible to obtain the status of this divert.

Syntax
*002*[number]# Divert all unconditional, unanswered, unreachable & busy calls to [number].
*002*[number]**[secs]#  Divert all unconditional, unanswered, unreachable & busy calls to [number] after [secs] seconds.
**002*[number]# Register [number] with unconditional, unanswered, unreachable & busy divert. Divert all unconditional, unanswered, unreachable & busy calls to [number].
*002# Divert all unconditional, unanswered, unreachable & busy calls to previously defined registered [number].
##002# Unregister unconditional, unanswered, unreachable & busy divert and deactivate for all calls.
#002# Deactivate unconditional, unanswered, unreachable & busy divert for all calls.
Extended Syntax [services]
*002*[number]*[service]# Divert unconditional, unanswered, unreachable & busy [service] calls to [number].
*002*[number]**[secs]*[service]#  Divert unconditional, unanswered, unreachable & busy [service] calls to [number] after [secs] seconds.
*002*[service]# Divert unconditional, unanswered, unreachable & busy [service] calls to previously defined registered [number].
##002#*[service]# Unregister unconditional, unanswered, unreachable & busy divert for [service] calls and deactivate.
#002#*[service]# Deactivate unconditional, unanswered, unreachable & busy divert for [service] calls.
Examples
*002*+447953100200# Divert all unconditional, unanswered, unreachable & busy calls to +447953100200.
**002*+447953123456# Register +447953123456 as the number to which all unconditional, unanswered, unreachable & busy calls should be diverted and divert all unconditional, unanswered, unreachable & busy calls to that number.
*002*+447953777888*11#  Divert unconditional, unanswered, unreachable & busy voice calls to +447953777888.
*002*+447953777888**15*13#  Divert unconditional, unanswered, unreachable & busy fax calls to +447953777888 after 15 seconds. The [secs] parameter must be one of 5, 10, 15, 20, 25 or 30.
#002#*13# Stop diverting unanswered, unreachable & busy fax calls.
*002#*13# Divert unconditional, unanswered, unreachable & busy fax calls to the number that has been registered.
##002# Unregister and deactivate all diverts. This is a special code that removes this divert as well as divert always, divert unanswered, divert unreachable, divert busy and divert conditional.


Call Barring: Outgoing

Syntax
*33*[password]# Bar all outgoing calls.
#33*[password]# Do not bar all outgoing calls.
*#33# Retrieve status of call barring for all outgoing calls.
*333*[password]# Bar all outgoing calls.
#333*[password]# Do not bar all outgoing calls.
*#333# Retrieve status of call barring for all outgoing calls.


Call Barring: All

Syntax
*330*[password]# Bar all calls.
#330*[password]# Do not bar all calls.
*#330# Retrieve status of call barring for all calls.


Call Barring: Outgoing International

Syntax
*331*[password]# Bar all outgoing international calls.
#331*[password]# Do not bar all outgoing international calls.
*#331# Retrieve status of call barring for all outgoing international calls.


Call Barring: Outgoing International Except Home

Syntax
*332*[password]# Bar all outgoing international calls except home country.
#332*[password]# Do not bar all outgoing international calls except home country.
*#332# Retrieve status of call barring for all outgoing international calls except home country.


Call Barring: Incoming

Syntax
*35*[password]# Bar all incoming calls.
#35*[password]# Do not bar all incoming calls.
*#35# Retrieve status of call barring for all incoming calls.
*353*[password]# Bar all incoming calls.
#353*[password]# Do not bar all incoming calls.
*#353# Retrieve status of call barring for all incoming calls.


Call Barring: Incoming If Roaming

Syntax
*351*[password]# Bar all incoming calls if abroad.
#351*[password]# Do not bar all incoming calls if abroad.
*#351# Retrieve status of call barring for all incoming calls if abroad.


Caller Line Identification: CLIP

Calling Line Identification Presentation. Provides the called party with the possibility of receiving identification of the calling party.

Syntax
*30# Activate CLIP. Display the (incoming) callers telephone number.
#30# Deactivate CLIP. Do not display the (incoming) callers telephone number.
*#30# Retrieve status of CLIP.


Caller Line Identification: CLIR

Calling Line Identification Restriction. Allows the calling party to prevent presentation of his CLI to the called party. This is the most common CLI service used, it prevents called parties from seeing your number.

Syntax
*31# Activate CLIR. Do not send the (outgoing) callers number.
*31#[number]  Activate CLIR temporarily while calling [number].
#31# Deactivate CLIR. Send the callers number.
#31#[number]  Deactivate CLIR temporarily while calling [number].
*#31# Retrieve status of CLIR.


Connected Line Identification: COLP

Connected Line Identification Presentation. Provides the calling party with the possibility of receiving identification of the connected party.

Syntax
*76# Activate COLP. Display the connected number. This may be different to the number dialled if the called party has a divert set up - you would see the number of the telephone they answered.
#76# Deactivate COLP. Do not display the connected callers number.
*#76# Retrieve status of COLP.


Connected Line Identification: COLR

Connected Line Identification Restriction. Allows the called party to prevent presentation of their COL to the connected party.

Syntax
*77# Activate COLR. Do not send the connected (outgoing) callers number.
#77# Deactivate COLR. Send the connected (outgoing) callers number.
*#77# Retrieve status of COLR.


Pin & Password Related

Syntax
**03*330*oldPW*newPW*newPW#  Change the call barring password.
**04*oldPIN*newPIN*newPIN#  Change SIM PIN code. No need to press 'call'.
**042*oldPIN2*newPIN2*newPIN2#  Change SIM PIN2 code. No need to press 'call'.
**05*PUK*newPIN*newPIN#  Unlock SIM card with PIN locked. No need to press 'call'.
**052*PUK2*newPIN2*newPIN2#  Unlock SIM card with PIN2 locked. No need to press 'call'.
Examples
**03*330*1111*2222*2222# Change the call barring password from 1111 to 2222.
**04*1234*5678*5678# Change the PIN code from 1234 to 5678.
**042*2345*6789*6789# Change the PIN2 code from 2345 to 6789.
**05*12345678*5678*5678# Use PUK code 12345678 to unblock the SIM card and set the PIN code to 5678.
**052*56789012*6789*6789#  Use PUK2 code 56789012 to unblock the SIM card and set the PIN2 code to 6789.


Miscellaneous

Syntax
*#06#  Display the IMEI number of the phone. The IMEI number is a unique number for the handset, also known as the serial number. The IMEI number is sent to the network every communication occurs, it is blocked from use when the phone is reported stolen.