Secret Codes guide
*331*0000# on iPhone: Bar Outgoing International Calls
By Muhammad Shahid · · 4 min read
Quick answer
*331*0000#: Block international dialling at the network, not on the handset. Service code 331 is BOIC, Barring of Outgoing International Calls. Domestic calls continue to work normally while anything routed outside the home country is refused by the switch. This is the barring variant people actually want, usually to stop premium rate international dialling on a child or employee line.
| Code | *331*0000# |
|---|---|
| What it does | Block international dialling at the network, not on the handset. |
| Published for | AT&T and T-Mobile |
| Type | Support varies |
Block international dialling at the network, not on the handset. This page explains what *331*0000# does, how to use it on an iPhone and which carriers it applies to.
I build Secret Codes: IMEI & Carrier, a free iPhone app with 317 checked codes and guides, including this one. If you would rather tap than memorise, get Secret Codes on the App Store.
What does *331*0000# do?
Service code 331 is BOIC, Barring of Outgoing International Calls. Domestic calls continue to work normally while anything routed outside the home country is refused by the switch.
This is the barring variant people actually want, usually to stop premium rate international dialling on a child or employee line. On US carriers the same outcome is normally reached a different way, by removing the international long distance feature from the account, and that account level change is what AT&T and T-Mobile support will do when asked.
Replace 0000 with your call barring password, which is not your SIM PIN.
How do I use *331*0000#?
- Open the Phone app and tap Keypad.
- Type *331*0000# exactly as written.
- Press the green Call button and wait for the result.
Which carriers does this apply to?
| Published for | AT&T and T-Mobile |
|---|---|
| Type | Support varies |
| Good to know | Standards compliant but seldom provisioned in the US. Expect an error on most AT&T and T-Mobile consumer lines and ask the carrier to remove international dialling from the account instead. |

Related call barring and sim pin codes
- #33*0000#: Cancel Outgoing Call Barring
- #331*0000#: Cancel International Call Barring
- *33*0000#: Bar All Outgoing Calls
- *#331#: Check International Call Barring
- *332*0000#: Bar International Calls Except Home
- #332*0000#: Cancel Except-Home Barring
See all call barring and sim pin codes or every category of iPhone codes.
How Secret Codes helps
Secret Codes keeps this and every other entry a search away. Pick your carrier once and each entry says whether it is published for your line. You can save favourites, add a private note, and record whether a code worked on your line. This entry is part of Secret Codes Pro.
Frequently asked questions
What does *331*0000# do on iPhone?
Block international dialling at the network, not on the handset. Service code 331 is BOIC, Barring of Outgoing International Calls. Domestic calls continue to work normally while anything routed outside the home country is refused by the switch.
What else should I know about *331*0000#?
This is the barring variant people actually want, usually to stop premium rate international dialling on a child or employee line. On US carriers the same outcome is normally reached a different way, by removing the international long distance feature from the account, and that account level change is what AT&T and T-Mobile support will do when asked.
What are the steps for *331*0000#?
1. Open the Phone app and tap Keypad. 2. Type *331*0000# exactly as written. 3. Press the green Call button and wait for the result.
Where do I use *331*0000#?
On the keypad of the Phone app.
Do I need to press Call after typing *331*0000#?
Yes. Type it on the Phone keypad, then press the green Call button.
Is *331*0000# a hidden or secret code?
No. It is a published service, not a hidden menu. iPhones do not have Android-style engineering menus.
Which carriers does *331*0000# work on?
It is published for AT&T and T-Mobile. Standards compliant but seldom provisioned in the US. Expect an error on most AT&T and T-Mobile consumer lines and ask the carrier to remove international dialling from the account instead.
Does *331*0000# work on Android phones too?
It is handled by the carrier or service rather than the iPhone, so it is not tied to one phone brand. Check with your carrier.
Will *331*0000# work outside the US?
It is published for US carriers and services, so do not count on it abroad. Ask your carrier before you travel.
What if *331*0000# does not work on my iPhone?
Check that it applies to your carrier first, because carriers decide which services they offer and can change them. If it should apply to your line, contact your carrier.
What is related to *331*0000#?
#33*0000#: Cancel Outgoing Call Barring. Lift a block on outgoing calls that was set with *33*.
What else is in this category?
#331*0000#: Cancel International Call Barring. Allow international dialling again after *331*.