XGSM Iași — Service & Piese GSM

Dial codes

Codes that work on every phone: IMEI, call forwarding, hidden number

The star-and-hash codes typed into the phone app belong to the network, not the phone maker: the carrier answers them, which is why they work the same on Samsung, iPhone or Xiaomi. With them you can read your IMEI, check and set call forwarding, turn call waiting on or hide your number for a single call. Some only display information, others change a network setting — below they're kept separate so you can't mix them up.
Anyone can do it10 minAndroidSamsungXiaomiHuaweiMotorolaGoogle PixelOnePlusOppoiPhoneChecked: November 17, 2026

Short version

  • *#06# shows your phone's IMEI — it works on absolutely any phone and appears by itself, without the call key.
  • Display-only codes (*#21#, *#61#, *#67#, *#62#, *#43#) are safe: they ask the network a question and change nothing.
  • Forwarding is set with *21*number# and its family; ##002# cancels every active divert at once.
  • Call waiting: *43# turns it on, #43# turns it off. Hidden number for one call: #31# before the number.
  • No code shows "who is tapping your phone" — that's a myth. The *#21# answer only talks about forwarding.

What these codes actually are

They are network codes — technically, codes for the GSM supplementary services. You type them into the Phone app like a normal number, press the call key and they go straight to your carrier's network, which answers with a small pop-up on screen. It's the network that executes them, not the phone — which is why they work identically on any make, from Samsung and iPhone to Xiaomi or a keypad phone.

The codes are standardised: the same digits mean the same thing at Orange, Vodafone or Digi. What differs between carriers is whether the service is active on your plan and how the answer is worded. They need signal — with no coverage they go nowhere.

  • Display-only codes — shaped *#…# — ask the network a question: a service's status or your IMEI. Type them freely, they change nothing.
  • Codes that change something — those starting with * or **, like **21*number# — switch, stop or erase a network setting. Check what each does before dialling it.

Note

Every code below ends with pressing the call key (the green one), like a normal call. The exception is *#06#, which shows the IMEI by itself the moment you type the last hash.

*#06#: the code that shows your IMEI

The IMEI is your phone's unique number — 15 digits that identify it on the network, like a registration plate. Repair shops ask for it, the police need it for a theft report, you check it for warranty, and it's the first thing to look at when buying a used phone.

  1. Open the Phone app's keypad

    The same keypad you'd use to dial a number.

  2. Type *#06#

    After the last hash, the IMEI screen appears by itself — nothing else to press.

    IMEI
    IMEI 1: 35 678910 234567 8
    IMEI 2: 86 123456 789012 3

    Phone keypad. Dial the code *#06#. After dialling you see: IMEI. IMEI 1: 35 678910 234567 8. IMEI 2: 86 123456 789012 3

  3. Write it down and keep it away from the phone

    A screenshot emailed to yourself or saved to the cloud is enough. If the phone is stolen, the IMEI is the only way to identify it.

On dual-SIM phones you see one IMEI per slot — IMEI 1 and IMEI 2 — and on eSIM models an EID may appear too, the number of the embedded SIM. The same IMEI also lives in settings (on iPhone: Settings → General → About), on the SIM tray on many models and on the phone's box. What you can learn from it — the exact model, warranty, whether it's carrier-locked — is covered in the IMEI check guide.

Tip

On a phone that won't turn on, the IMEI is printed on the SIM tray or on the box — *#06# needs a working phone.

The codes that only ask the network

The safe family: every code shaped *#…# asks the network for a service's status and shows it in a pop-up. It changes nothing, so you can type them out of curiosity or when you suspect a setting is wrong.

*#06#Dial

Shows the phone's IMEI — and the EID on eSIM models

Works on: All phones
*#21#Dial

Checks whether all incoming calls are forwarded, and where to

Works on: All GSM networks
*#61#Dial

Checks where calls you don't answer are sent

Works on: All GSM networks
*#67#Dial

Checks where calls go when you're busy

Works on: All GSM networks
*#62#Dial

Checks where calls go when you're off or out of signal

Works on: All GSM networks
*#43#Dial

Checks whether call waiting is on or off

Works on: All GSM networks
*#30#Dial

Checks whether the network sends you the caller's number

Works on: All GSM networksSome networks don't answer it.
*#31#Dial

Checks whether your number is hidden on outgoing calls

Works on: All GSM networksSome networks don't answer it.
Call forwarding
Voice: not forwarded
Video: not forwarded
SMS: not forwarded

Phone keypad. Dial the code *#21#. After dialling you see: Call forwarding. Voice: not forwarded. Video: not forwarded. SMS: not forwarded

The network's answer to *#21#: one line per call type. "Not forwarded" means nothing is active — the normal result.

The answer arrives within seconds, in a small pop-up. The wording differs by carrier and phone — on many it's in English whatever the system language, and that's normal. The meaning is the same: "forwarded to" followed by a number means forwarding is on, "not forwarded" means it isn't.

Call forwarding: check, set, cancel

Forwarding sends incoming calls to another number or to voicemail — useful when you don't want to be disturbed, when the battery dies or when you're away. The GSM standard defines four situations: all calls, when you don't answer, when you're busy and when the phone is off or out of signal.

  1. Check what's active first

    Dial *#21# for all calls, then *#61#, *#67# and *#62# for the conditional ones. Note what it says before you change anything.

  2. Type the code with the full number

    At the end of the code goes the destination number, best written in international format with +40 — the leading-zero form is refused by some networks. For example *21*+40XXXXXXXXX#.

  3. Press the call key and read the answer

    The network confirms in a pop-up within seconds. You need coverage when setting it — with no signal the change doesn't register.

  4. Cancel with ##…# when you no longer need it

    ##21# stops forwarding of all calls, ##61#, ##67#, ##62# stop the conditional ones, and ##002# erases them all at once.

    Call forwarding

    Erasure was successful.

    OK

    Phone screen: Call forwarding. Erasure was successful. [OK]

  5. Check again with *#21#

    The last step is verification: the check codes above tell you whether the setting registered the way you wanted.

On carriers' help pages the same codes are often written with ** at the start — **21*number# is the standard's "registration" form, *21*number# the "activation" one, both defined by the GSM standard. In practice the network treats them the same: both switch forwarding on to the number given. +40XXXXXXXXX in the table is the destination number, written in international format:

*21*+40XXXXXXXXX#

Forwards all incoming calls to the destination number

The phone won't ring at all until you cancel; calls leave straight away.
##21#

Cancels forwarding of all calls

*61*+40XXXXXXXXX#

Forwards calls you don't answer

It can replace the default divert to voicemail — check afterwards.
**61*+40XXXXXXXXX**20#

Same, but the call leaves only after ~20 seconds

The time can be 5 to 30 seconds, in steps of 5; leave it out for the network's default.
##61#

Cancels the no-answer divert

*67*+40XXXXXXXXX#

Forwards calls that arrive while you're busy

##67#

Cancels the busy divert

*62*+40XXXXXXXXX#

Forwards calls when you're off or out of signal

##62#

Cancels the unreachable divert

##002#

Cancels every forwarding setting at once

Erases all diverts, including the one to voicemail — check that voicemail still answers afterwards.

Warning· Forwarding isn't free everywhere

A forwarded call is billed like a call you make to the destination. At Orange, for example, calls diverted to Orange numbers use your included minutes, while those to other networks are charged separately — the rules differ by carrier, check yours first.

Note

On prepaid cards the service can be limited: at Orange, for instance, you can only forward to voicemail, not to another number. Forwarding to international numbers isn't available either.

The same setting exists without codes. On iPhone it's under Settings → Apps → Phone → Call Forwarding (on older iOS versions, directly under Settings → Phone); on Android, the path is the Phone app → Settings → the SIM's calling settings, called Calling accounts or Supplementary services on some models.

Settings
Airplane Mode
Wi-FiHomeNet
BluetoothOn
Cellular
Personal Hotspot
Apps
Step 1
Settings
Apps
Passwords
Phone
Photos
Podcasts
Reminders
Safari
Step 2
Apps
Phone
Calls
Call Forwarding
Call Waiting
Show My Caller ID
Step 3
Phone
Call Forwarding
Call Forwarding
Forward To
Step 4
Apps › Phone › Call Forwarding › Forward To

Menu path, screen by screen: 1. Settings: Airplane Mode (off); Wi-Fi — HomeNet; Bluetooth — On; Cellular; Personal Hotspot; Apps ←. 2. Apps: Passwords; Phone ←; Photos; Podcasts; Reminders; Safari. 3. Phone: [Calls] Call Forwarding ←; Call Waiting; Show My Caller ID. 4. Call Forwarding: Call Forwarding (off); Forward To ←

The path on a recent iOS: the same screen also holds Call Waiting and Show My Caller ID.

Call waiting and the hidden number

Call waiting alerts you with a short beep that someone is calling while you're already talking — you can answer, decline or ignore without losing the ongoing call. Orange confirms the codes in the table; with the option off, calls that arrive during a call go straight to voicemail.

*43#

Turns call waiting on

On dual-SIM phones it applies to the SIM you dial it from.
#43#

Turns call waiting off

With it off, calls arriving during a call go straight to voicemail.
#31#+40XXXXXXXXX

Hides your number only for the call dialled after the code

Works only if your carrier allows a hidden identity — at Orange it isn't available on prepaid.
*31#+40XXXXXXXXX

Shows your number for one call, if your plan hides it by default

Only on plans where the number is normally hidden.

Phone keypad. Dial the code #31#0722123456.

Type #31# straight before the number you want to call — you're hidden only for that call.

For a permanently hidden number you don't need any code: it's a phone setting. On iPhone it lives under Settings → Apps → Phone → Show My Caller ID — and if the option is missing or greyed out, Apple says to ask your carrier, because the service depends on them. On Android you'll find it in the call settings too, usually under Supplementary services.

Hidden number

Phone screen: Hidden number

What the other person sees when you call with a hidden number: "Hidden number" or "Unknown" instead of your number.

Note

There are also call-barring codes — blocking outgoing, incoming or international calls — but they ask for a network password you get from your carrier. Without it they do nothing, so we've left them as a mention only.

The tapped-call myth and common mistakes

The myth has been going around for years: "dial *#21# to see if you're being tapped." There's no such thing — the code only shows where your calls would be forwarded, an ordinary service that voicemail itself uses daily. If the answer is "not forwarded", that's perfectly normal. If it shows a number you don't recognise, cancel it with ##002# and call your carrier.

Warning· Never forward calls to a number dictated by a stranger

Scammers talk victims into activating forwarding to their number — then they receive the calls, including the ones from the bank. On iPhone, Apple even blocks links in messages, emails or web pages that ask you to turn on call forwarding, for exactly this reason. Only ever forward to a number you know.

Typed the code correctly and nothing happens, or you get an error? The usual causes:

  • No signal — the codes reach the network, they don't stay inside the phone.
  • Your carrier doesn't support the service on your plan — prepaid plans usually have limits.
  • Dual SIM — the code applies to the SIM you dial it from; check which line is set for calls.
  • A typing mistake — a missing * or # and the code is treated like a normal number.

There's no code that "tells you if you're being tracked" — the real signs are different: a battery draining for no reason, unknown apps, suspicious data traffic. They're detailed in the guide about spied-on phones. And each maker's test codes are separate: Samsung, iPhone, Android's hidden info menu, plus the useful codes of Romanian carriers.

Frequently asked questions

How do I find my phone's IMEI?
Type *#06# in the phone app — the IMEI screen appears by itself, on any make. Otherwise it's in settings (on iPhone: Settings → General → About), on the SIM tray on many models and on the phone's box.
What does the code *#21# do?
It asks the network whether all incoming calls are forwarded and where to. It shows a pop-up with the status for each call type — "not forwarded" means nothing is active. It changes no setting.
How do I cancel all forwarding at once?
With ##002# followed by the call key — that's what Orange recommends too. It erases every active divert, including the ones to voicemail; afterwards, check that voicemail still picks up missed calls.
Is there a code that shows if my phone is tapped?
No. Network codes display the status of services — forwarding, call waiting, identity — not who is monitoring you. The *#21# myth misreads the result; the real signs of spying are different.
How do I call with a hidden number just once?
Type #31# right before the number you dial, then press call — your number is hidden only for that call, and only if your carrier allows the service. For a permanently hidden number there's a phone setting.
Why does a code answer with an error, or not at all?
The most common causes: you have no signal, your carrier doesn't support the service on your plan, or the code was mistyped. On dual-SIM phones also check which SIM is set for calls — the code applies to the line you dial it from.
Do these codes work on iPhone too?
Yes — they're network codes, not system codes, so they don't depend on the make. On iPhone some answers look a little different, and the same settings also live under Settings → Apps → Phone if you prefer menus.

Does your phone look different, or is something missing here?

Menus and buttons differ from model to model and change with updates. If these steps do not match your phone or you cannot find what you need, tell us your model and what you see on the screen: we will answer you and update the guide.

Checked against

Did a test flag a problem?

Tell us what you found and we'll quote the repair.