Java MIDlet API Forums

« Back to Technical Discussion

Device Phone Number

Combination View Flat View Tree View
toggle
Is there a system property available that a midlet could use to retrieve the device phone number?

RE: Device Phone Number
Answer
11/9/10 11:29 PM as a reply to Russell Mitchell.
Good question - we would like this too.  For now we have resorted to using the device's MAC address as a unique identifier but what we really want is the extension that the user is using.
 
FYI - to get the MAC address:
 
String phoneNumber = System.getProperty("com.cisco.device.settings.network.macaddress");

RE: Device Phone Number
Answer
1/11/11 11:08 PM as a reply to Russell Mitchell.
The phone's local web server has some information - including the primary DN - at /DeviceInformationX (xml format).  Note however that the phones can have more than one DN, and only the primary is listed on the page.  More specific info can be retrieved from UCM using the AXL API and the device's name/MAC, but would require a separate service running somewhere.

 Go

By API/SDK: