Hi Sai, On 10/05/2010 09:49 AM, sai koushik wrote: > Hi, > > we are working on use-case to activate call-forwarding rule when no > reply , but ofono is returning error "Invalid arguments in method > call" when trying to set the reply-timeout value. > > below is the code for the use-case > > GValue val={0,{{0}}}; > g_value_init(&val,G_TYPE_UINT); > > uint value=30; > g_value_set_uint(&val,value); > > GError *error=NULL; > dbus_g_proxy_call (proxy,"SetProperty", &error, > G_TYPE_STRING,"VoiceNoReplyTimeout", G_TYPE_VALUE,&val, > G_TYPE_INVALID, G_TYPE_INVALID); > > > in our observation , when preparing DBusMessage, it is taking uint32 > as basic type for uint , > and in ofono after receiving DBusMessage it is expecting for value of > type DBUS_TYPE_UINT16 but the message contains DBUS_TYPE_UINT32 type > value. > > is there is any specific reason to expect the time-out value as uint16 type.
You need to be constructing the message with the type that oFono expects. In this particular case it is a uint16. Just as a heads up, this API will change to use 'byte' instead of 'uint16' since the Timeout value can only be between 1 and 30. Regards, -Denis _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono