maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   com.nokia.phone documentation - how to get phone number? (https://talk.maemo.org/showthread.php?t=48558)

benh_n900 2010-03-28 18:31

com.nokia.phone documentation - how to get phone number?
 
Hi,

Does anyone know where I can find documentation on com.nokia.phone?

For example, I know I can do:
Code:

dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM Phone.Sim.get_imsi
to get the imsi, or
Code:

dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM/security Phone.Sim.security.get_imei
to get the imei, but I would like to know if I can get the phone number and also what other functions are available to get information about the phone in this way.

Cheers,

Ben

vabgeo 2010-03-28 18:51

Re: com.nokia.phone documentation - how to get phone number?
 
http://www.google.com/search?hl=en&s...=&oq=&gs_rfai=

epninety 2010-03-28 18:56

Re: com.nokia.phone documentation - how to get phone number?
 
Sorry, I don't know the answer to your problem, but you should know that any method you find may not be 100% reliable. There is no requirement for a GSM phone to know its own phone number as such... IMEI is all that's needed to identify the account to the network - the phone number itself is never passed over the air, therefore it's not necessary for it it be stored anywhere.

matrim 2010-03-28 19:27

Re: com.nokia.phone documentation - how to get phone number?
 
Quote:

Originally Posted by epninety (Post 585741)
Sorry, I don't know the answer to your problem, but you should know that any method you find may not be 100% reliable. There is no requirement for a GSM phone to know its own phone number as such... IMEI is all that's needed to identify the account to the network - the phone number itself is never passed over the air, therefore it's not necessary for it it be stored anywhere.

Just a slight correction to this the IMSI is the identification of the account \ SIM, the IMEI is the unique identification of the physical phone.

It is possible for the sim card to hold the number (msisdn) but it's not that common as far as I know.
Take a look at this bug for some extra information

benh_n900 2010-03-28 19:29

Re: com.nokia.phone documentation - how to get phone number?
 
Quote:

Originally Posted by vabgeo (Post 585730)

I did a search already - that's how I found the functions to get imei and imsi, but I couldn't see any documentation or how to get the phone number from those links - am I missing something somewhere?

epninety 2010-03-28 20:43

Re: com.nokia.phone documentation - how to get phone number?
 
sorry, brain - hand communication problem :-) I meant IMSI of course.

vabgeo 2010-04-02 20:31

Re: com.nokia.phone documentation - how to get phone number?
 
Quote:

Originally Posted by benh_n900 (Post 585771)
I did a search already - that's how I found the functions to get imei and imsi, but I couldn't see any documentation or how to get the phone number from those links - am I missing something somewhere?

I was thinking you wanted to get the caller id.
I have been working on getting a caller id notification on N810/diablo and this was helpful (though not the same as in maemo 5) in getting started. Next you could do is look at the header files to check what all functions are available.

andrei1089 2010-04-02 20:38

Re: com.nokia.phone documentation - how to get phone number?
 
Have you checked this page? http://wiki.maemo.org/Phone_control

jaem 2010-04-03 01:09

Re: com.nokia.phone documentation - how to get phone number?
 
Also a note, I haven't tried it yet, but the qqdbus package in -devel purports to contain a Maemo-friendly version of QDBusViewer, which allows you to browse the 'Bus, and should help you with this sort of thing. Note that you'll need to install Qt 4.6 from -devel for that (AFAIK), so you may just want to wait for PR 1.2 to avoid Fun with the update. Alternatively, you could probably build QDBusViewer from the Qt 4.5 source packages in Extras, but the stock UI is a bit painful on the N900's screen.

dchky 2010-06-25 05:33

Re: com.nokia.phone documentation - how to get phone number?
 
I also want to be able to do this - I want to write a simple widget that copies my phone number to the clipboard, that way I can paste it in text messages or wherever.

The actual dbus-monitor for this event is (fairly obvious for anyone with dbus-monitor):

Code:

method call sender=:1.72 -> dest=:1.35 serial=137 path=/org/gnome/evolution/dataserver/addressbook/sim_3a__2f__2f_msisdn; interface=org.gnome.evolution.dataserver.addressbook.Book; member=getContactList
  string "(exists "phone")"

This spits out your own vcard. For whatever reason qqdbusviewer shows the path a bit differently to this.

I'm not sure how to convert this to a dbus-send though.


All times are GMT. The time now is 16:55.

vBulletin® Version 3.8.8