T-Mobile GSM Network Command Codes

Conventions Used on this Page

Let's look at an example string from below:

*21*Number[*Type]#

There are two parts to this string: the required part (in red), and the optional part (in blue).  In this particular example, "*21*Number" and the "#" are all required.   The "*Type", because it is in [brackets], is optional.  The "Type" is usually optional, and the different service types are listed below.

Where the word "Number" appears, substitute the desired phone number.

The resulting string, if I wanted to forward all voice calls to 1-800-555-4141 would be: *21*18005554141*11#

After dialing a command string, press the "Talk" or "Send" key on your phone.

Command Code Strings

Unconditional Forward - 21

Forwards all calls unconditionally.  Optional service is required.

Dialed String Command Description Example(s)
*21*Number[*Type]# Set & Enable Forwarding *21*18005554141#
*21*18005554141*11#
*21[#*Type]# Enable Forwarding *21#
*21#*11#
#21[#*Type]# Disable Forwarding #21#
#21#*11#
*#21[#*Type]# Get Status *#21#
*#21#*11#
*#21# Get Status on All Services
Note: Does not appear to work as designed.  You must check each type of service individually.
*#21#

No Answer Forward - 61

Forwards calls when your phone is on and has service, but you do not answer.

Dialed String Command Description Example(s)
*61*Number[*Type[*Delay]]# Set & Enable Forwarding
Note: Delay must be a multiple of 5 sec.
*61*18005554141#
*61*18015554141*11*15#
*61[#*Type]# Enable Forwarding *61#
*61#*11#
#61[#*Type]# Disable Forwarding #61#
#61#*11#
*#61[#*Type]# Get Status *#61#
*#61#*11#
*#61# Get Status on All Services
Note: Does not appear to work as designed.  You must check each type of service individually.
*#61#

Phone Off / Out of Area Forward - 62

Forwards calls when your phone is turned off, or out of the service area.

Dialed String Command Description Example(s)
*62[*Number[*Type]]# Set & Enable Forwarding *62#
*62*18005554141#
*62*18005554141*11#
*62[#*Type]# Enable Forwarding *62#
*62#*11#
#62[#*Type]# Disable Forwarding #62#
#62#*11#
*#62[#*Type]# Get Status *#62#
*#62#*11#
*#62# Get Status on All Services
Note: Does not appear to work as designed.  You must check each type of service individually.
*#62#

Busy / Call Reject - 67

Forwards calls when your line is busy (and call waiting is disabled, or both incoming lines are busy), or you reject a call by pressing the "End" or "No" key on your phone.

Dialed String Command Description Example(s)
*67[*Number[*Type]]# Set & Enable Forwarding *67#
*67*18005554141#
*67*18005554141*11#
*67[#*Type]# Enable Forwarding *67#
*67#*11#
#67[#*Type]# Disable Forwarding #67#
#67#*11#
*#67[#*Type]# Get Status *#67#
*#67#*11#
*#67# Get Status on All Services
Note: Does not appear to work as designed.  You must check each type of service individually.
*#67#

Call Waiting

Dialed String Command Description
*43# Enable Call Waiting
#43# Disable Call Waiting
*#43# Get Status

Send Own Number
(Transmission of Caller ID Data to those you call)

Dialed String Command Description
*30# Enable "Send Own Number"
#30# Disable "Send Own Number"
*#30# Get Status

Call Restrictions

These commands will allow you to disallow incoming or outgoing calls to/from your T-Mobile phone.  Contact T-Mobile for your password.   Optional service is required.

Dialed String Type of Restriction

All Outgoing Calls

*33*Password# Enable Restriction
#33#*Password# Cancel Restriction
*#33# Get Status

Outgoing International Calls

*331*Password# Enable Restriction
#33#*Password# Cancel Restriction
*#331# Get Status
Outgoing International Calls, Except to Home Country
*332*Password# Enable Restriction
#332#*Password# Cancel Restriction
*#332# Get Status
Incoming Calls
*35*Password# Enable Restriction
#35#*Password# Cancel Restriction
*#35# Get Status
Incoming Calls When Roaming
*351*Password# Enable Restriction
#351#*Password# Cancel Restriction
*#351# Get Status

Service Types

Verified to work Didn't work
(But May Be Supported)
Errors Returned When Trying
(Probably Not Supported)
10 All Services
11 Voice
13 Fax
19 All Except SMS
20 All Data Services
24 Data Sync Services ( Point to Point)
25 Data Async Services ( Point to Point)
16 SMS
26 Data Packet Sending
27 Services with PADShare
12 Data
14 Datex/J
15 Teletex
18 All Data Services except SMS
21 Sync
22 Async
23 3.1KHz
29 Digital Services w/ 12kb/sec service

Other Information

Get IMEI (Phone Serial Number)

Pressing Talk / Send is not required with this command.

Dialed String Command Description
*#06# Get Phone IMEI Number