![]() |
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 Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM/security Phone.Sim.security.get_imei Cheers, Ben |
Re: com.nokia.phone documentation - how to get phone number?
|
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.
|
Re: com.nokia.phone documentation - how to get phone number?
Quote:
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 |
Re: com.nokia.phone documentation - how to get phone number?
Quote:
|
Re: com.nokia.phone documentation - how to get phone number?
sorry, brain - hand communication problem :-) I meant IMSI of course.
|
Re: com.nokia.phone documentation - how to get phone number?
Quote:
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. |
Re: com.nokia.phone documentation - how to get phone number?
Have you checked this page? http://wiki.maemo.org/Phone_control
|
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.
|
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 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