Hi Pekka,

> From: Pekka Pessi <pekka.pe...@nokia.com>
> 
> Allow user to set SRR and SMSC.
> ---
>  test/send-sms |   23 +++++++++++++++++------
>  1 files changed, 17 insertions(+), 6 deletions(-)
> 
> diff --git a/test/send-sms b/test/send-sms
> index bd1fae5..19d0e35 100755
> --- a/test/send-sms
> +++ b/test/send-sms
> @@ -14,11 +14,22 @@ path = modems[0][0]
>  manager = dbus.Interface(bus.get_object('org.ofono', path),
>                                       'org.ofono.MessageManager')
>  
> +smsc = None
> +
> +if sys.argv[1] == "--smsc":
> +     smsc = sys.argv[2]
> +     del sys.argv[1:2]
> +
> +if sys.argv[1].startswith("--smsc="):
> +     smsc = sys.argv[1].split("=", 2)[1]
> +     del sys.argv[1]
> +
> +if smsc:
> +     manager.SetProperty("ServiceCenterAddress", dbus.String(smsc))

the SMSC is a global message manager property, I prefer to just have a
test script that just modifies it. Using set-service-center-address
would be way better then trying to include this in this test script.

Regards

Marcel


_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to