AT+CGSN=1

Some newer firmware versions (especially those sold to specific carriers) have the IMEI field "hard-fused." In these cases, standard AT commands will not work.