handset specific information | developer.brewmp.com handset specific information | developer.brewmp.com

Developer

handset specific information

Forums:

hi all ,

Is there a BREW API to find out the handset's phone no. ?? I saw ITAPI interface through which u can find out the phone numbers of the handsets you are calling but i need an API which gives me the phone number of the handset that is being used.

Also is there an API which gives me my handset's manufacturer information and the handset model number?

Is the handset serial number the same as the device number that we get in the ITAPI_GetStatus API???

Please lemme know
take care
jasleen!! :)

You can extract the handset's MIN through the ITAPI interface. Use ITAPI_GetStatus() to extract the MIN, then get rid of the prepended ID to get the phone number.
EDIT: For the handset OEM and model, maybe you can use the platform ID by calling ISHELL_GetDeviceInfo().
HTH

You can extract the handset's MIN through the ITAPI interface. Use ITAPI_GetStatus() to extract the MIN, then get rid of the prepended ID to get the phone number.
EDIT: For the handset OEM and model, maybe you can use the platform ID by calling ISHELL_GetDeviceInfo().
HTH

Name: AEE_DEVICEITEM_MOBILE_ID
Description:
This returns an ASCII String identifying the Mobile Identification Number (MIN) of the handset. This is the same information that is returned in the szMobileID member of the TAPIStatus structure when the function ITAPI_GetStatus() is invoked. The benefit of putting it here is to enable applications to obtain the MobiledID without having to create an ITAPI instance (and hence without needing the PL_TAPI privilege level). No privilege level is required to obtain the MobileID using this function. When this ID is passed to ISHELL_GetDeviceInfoEx(), the following details apply:
int ISHELL_GetDeviceInfoEx(IShell *po, AEEDeviceItem nItem, void *pBuff, int *pnSize);
Parameters:
nItem: Specifies AEE_DEVICEITEM_MOBILE_ID
pBuff: Buffer capable of holding a character (ASCII) string denoting the MobileID.
This was taken from the SDK docs. To get the phone# get the device info as usual and then call the above function and insert AEE_DEVICEITEM_MOBILE_ID as the second parameter. The last two parameters will give you a string and the string length. The string will hold an id which includes the phone number. Now take the device id from the device info out of the string supplied by this function and viola.
Saludos,

Name: AEE_DEVICEITEM_MOBILE_ID
Description:
This returns an ASCII String identifying the Mobile Identification Number (MIN) of the handset. This is the same information that is returned in the szMobileID member of the TAPIStatus structure when the function ITAPI_GetStatus() is invoked. The benefit of putting it here is to enable applications to obtain the MobiledID without having to create an ITAPI instance (and hence without needing the PL_TAPI privilege level). No privilege level is required to obtain the MobileID using this function. When this ID is passed to ISHELL_GetDeviceInfoEx(), the following details apply:
int ISHELL_GetDeviceInfoEx(IShell *po, AEEDeviceItem nItem, void *pBuff, int *pnSize);
Parameters:
nItem: Specifies AEE_DEVICEITEM_MOBILE_ID
pBuff: Buffer capable of holding a character (ASCII) string denoting the MobileID.
This was taken from the SDK docs. To get the phone# get the device info as usual and then call the above function and insert AEE_DEVICEITEM_MOBILE_ID as the second parameter. The last two parameters will give you a string and the string length. The string will hold an id which includes the phone number. Now take the device id from the device info out of the string supplied by this function and viola.
Saludos,