Hi Jeevaka,

On 03/17/2011 11:36 AM, Jeevaka Badrappan wrote:
> ---
>  src/sms.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/src/sms.c b/src/sms.c
> index 01f54dd..c4f8b54 100644
> --- a/src/sms.c
> +++ b/src/sms.c
> @@ -47,6 +47,7 @@
>  #define SETTINGS_GROUP "Settings"
>  
>  #define TXQ_MAX_RETRIES 4
> +#define NETWORK_TIMEOUT 332
>  
>  static gboolean tx_next(gpointer user_data);
>  
> @@ -630,6 +631,10 @@ static void tx_finished(const struct ofono_error *error, 
> int mr, void *data)
>               if (sms->registered == FALSE)
>                       return;
>  
> +             /* Retry done only for Network Timeout failure */
> +             if (error->error != NETWORK_TIMEOUT)
> +                     goto next_q;
> +

Please also check error->type here to be CMS error.

>               if (!(entry->flags & OFONO_SMS_SUBMIT_FLAG_RETRY))
>                       goto next_q;
>  

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to