maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Calling #31#NUMBER from dbus does not work (https://talk.maemo.org/showthread.php?t=66420)

colchaodemola 2010-12-01 10:48

Calling #31#NUMBER from dbus does not work
 
Hi , i am trying to use the dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$NUMBER" uint32:0 where number starts with #31# followed by the real number which means my caller id will be hidden, but apparently it does not work. If i type #31#NUMBER on the caller-ui it works just fine. What is the matter ?

salatiel 2010-12-06 10:19

Re: Calling #31#NUMBER from dbus does not work
 
Try:
Code:

def call(NUMBER):
        PATH = '/org/freedesktop/Telepathy/Account/ring/tel/ring'
        account = sbus.get_object('org.freedesktop.Telepathy.AccountManager', PATH)
        account.EnsureChannel( \
                dbus.Dictionary({
                        dbus.String(u'org.freedesktop.Telepathy.Channel.TargetHandleType'): dbus.UInt32(1),
                        dbus.String(u'org.freedesktop.Telepathy.Channel.ChannelType'): dbus.String(u'org.freedesktop.Telepathy.Channel.Type.StreamedMedia'),
                        dbus.String(u'org.freedesktop.Telepathy.Channel.TargetID'): dbus.String(TARGET),
                }, signature='sv'),
        dbus.UInt64(0),
        dbus.String(''),
        dbus_interface='com.nokia.Account.Interface.ChannelRequests')

use call(number) , it will work with the prefix #31# , probably :P


All times are GMT. The time now is 21:15.

vBulletin® Version 3.8.8