All of lore.kernel.org
 help / color / mirror / Atom feed
* Error in setting "VoiceNoReplyTimeout" property in call-forwarding
@ 2010-10-05 14:49 sai koushik
  2010-10-06  0:44 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: sai koushik @ 2010-10-05 14:49 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 956 bytes --]

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.

 we are following the pre-requisites to set the reply-timput value as
specified in call-forwarding doc.
	
Thanks
sai.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error in setting "VoiceNoReplyTimeout" property in call-forwarding
  2010-10-05 14:49 Error in setting "VoiceNoReplyTimeout" property in call-forwarding sai koushik
@ 2010-10-06  0:44 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2010-10-06  0:44 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-06  0:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-05 14:49 Error in setting "VoiceNoReplyTimeout" property in call-forwarding sai koushik
2010-10-06  0:44 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.