How to find your own LTE phone number on MikroTik using AT commands

On MikroTik routers with an LTE modem, you can query the phone number (MSISDN) stored on the SIM card using the AT+CNUM AT command via the at-chat terminal feature.

Login to the router terminal using a browser or SSH, then run:

cnum.routeros
[admin@Lauingerstr-55] > /interface lte at-chat lte1 input="AT+CNUM"
  output: +CNUM: "","+49176123456789",145
          OK

In this example, the phone number is +49176123456789. The 145 indicates the number is in international format.

Caveats

Not all SIM cards have the phone number stored — in that case AT+CNUM will return an empty response or OK with no number. If that happens, the carrier has not provisioned the MSISDN on the SIM, and you’ll need to check your carrier account or contract documents instead.

See How to send AT commands on MikroTik LTE modems for more details on using at-chat.


Check out similar posts by category: MikroTik Networking