Careful:
dialing *31# by itself sets the "Network Default" to block outgoing caller ID, whereas prefixing *31# on a number is a one time "allow" if the default is currently set to block. (Confusing i know!)
Likewise, dialing #31# by itself sets the "Network Default" to allow outgoing caller ID, and prefixing #31# blocks it for one call...