Networking >> Mobile >> GSM >> What are the codes to block and unblock SMS


*35*0000*16#
– Incoming SMS off (Block incoming SMS messages)
#35*0000*16# – Incoming SMS ON

Here 0000 is your Network barring password, 35 is GSM code for Barring Incoming Calls, 16 is service code for SMS.

To bar other routes use these codes instead of 35:

  • 35 – Incoming
  • 351 – Incoming If Roaming
  • 33 – Outgoing
  • 331 – Outgoing International
  • 332 – Outgoing International except Home (Effective while roaming)

References

[1]  http://www.stereo.org.ua/2007/gsm-codes/