Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Guys,
how can I obtain phone number?
Is there any API for this?

thanx a lot...

In BREW 2.0, the phone number is obtained through ITAPI_GetStatus (it would be the szMobileID field of the TAPIStatus struct).
Keep in mind though that this will be the MIN of the device, not the MDN. In BREW 2.0 there is no way to obtain the MDN.

In BREW 2.0, the phone number is obtained through ITAPI_GetStatus (it would be the szMobileID field of the TAPIStatus struct).
Keep in mind though that this will be the MIN of the device, not the MDN. In BREW 2.0 there is no way to obtain the MDN.

So there is no way of getting the phone number on Brew 2.0.1 phones?
BTW... what's MDN and MIN?

So there is no way of getting the phone number on Brew 2.0.1 phones?
BTW... what's MDN and MIN?

Correct, there isn't any way to get the device's phone number in BREW 2.0. You can get the MIN, using the technique described above, but it is pretty much useless.
The difference between MIN and MDN is this:
The MIN (Mobile Identification Number) is used by the carrier internally. Kind of like having a home network and your machines all have 10.0.0.x addresses ( I hope that analogy isn't way off). Those addresses are not reachable outside your network, you have an outside-facing address for that, this is where MDN comes in.
The MDN (Mobile Directory Number) is the outside-facing number. This is what you would call the devices phone number. This is the number that people dial to reach the user's phone.
This all has something to do with number portability between carriers. Also, please don't flame me if my analogies are not apt. The bottom line is that you want the MDN, and you can't get it through BREW 2.0.

Correct, there isn't any way to get the device's phone number in BREW 2.0. You can get the MIN, using the technique described above, but it is pretty much useless.
The difference between MIN and MDN is this:
The MIN (Mobile Identification Number) is used by the carrier internally. Kind of like having a home network and your machines all have 10.0.0.x addresses ( I hope that analogy isn't way off). Those addresses are not reachable outside your network, you have an outside-facing address for that, this is where MDN comes in.
The MDN (Mobile Directory Number) is the outside-facing number. This is what you would call the devices phone number. This is the number that people dial to reach the user's phone.
This all has something to do with number portability between carriers. Also, please don't flame me if my analogies are not apt. The bottom line is that you want the MDN, and you can't get it through BREW 2.0.