Symbian
Symbian OS Library

FAQ-0808 How can I get the IMEI number of a phone?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Telephony (ETel)
Created: 07/11/2002 Modified: 10/08/2004
Number: FAQ-0808
Platform: Symbian OS v6.0, Symbian OS v6.1

Question:
My application needs to obtain a unique ID for the Symbian OS v6.x phone it is running on. I know the IMEI is unique on every handset so I'd like to know how I can retrieve it.

Answer:
You can retrieve the IMEI number using the ETel architecture and the Basic GSM extension. The attached project demonstrates how this is possible:




    This has been tested on both the Nokia 9200 Communicator Series and Nokia 7650.

    Note: Early versions of the Nokia 9200 Communicator Series and Series 60 SDKs did not contain the LIB and H files gsmbas.lib and etelbgsm.h, which are needed to compile and link the above code. Versions 1.2 and 1.0 of these SDKs respectively do include these files. If you have the files for one v6.x SDK, you can copy them to any other v6.x SDK and use them there.