<div dir="ltr"><div>Sorry, my bad.<br><br></div>Following works seamlessly ::<br><br>##############################################################################<br><div><div>root@logic-desktop:~# <b>mmcli -s /org/freedesktop/ModemManager1/SMS/22</b><br>SMS '/org/freedesktop/ModemManager1/SMS/22'<br> -----------------------------------<br> Content | number: '+919818782593'<br> | text: 'Trying again'<br> -----------------------------------<br> Properties | PDU type: 'deliver'<br> | state: 'received'<br> | storage: 'me'<br> | smsc: '+919810051829'<br> | timestamp: '160808142935+05'<br>##############################################################################<br><br></div><div>Sorry for the noise.<br><br></div><div>Thanks and Regards,<br></div><div>Ajay<br><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 14, 2016 at 6:38 PM, Ajay Garg <span dir="ltr"><<a href="mailto:ajaygargnsit@gmail.com" target="_blank">ajaygargnsit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi All.<br><br></div>I can tetrieve the metadata of the SMSes, via <br><br><br>##############################<wbr>###########################<br>logic@logic-desktop:~$ <b>mmcli -m 0 --messaging-list-sms</b><br><br>Found 14 SMS messages:<br> /org/freedesktop/<wbr>ModemManager1/SMS/34 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/35 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/36 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/37 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/38 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/39 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/40 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/41 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/42 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/43 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/44 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/45 (receiving)<br> /org/freedesktop/<wbr>ModemManager1/SMS/46 (received)<br> /org/freedesktop/<wbr>ModemManager1/SMS/47 (received)<br>##############################<wbr>###########################<br><br></div>But how do I actually read the SMS-content?<br><br><br></div>I tried using <a href="https://raw.githubusercontent.com/openshine/ModemManager/master/test/sms-get.py" target="_blank">https://raw.githubusercontent.<wbr>com/openshine/ModemManager/<wbr>master/test/sms-get.py</a>, but it gives errors as follows ::<br><br>##############################<wbr>###########################<br>logic@logic-desktop:~$ <b>python sms-get.py /org/freedesktop/<wbr>ModemManager1/Modem/0</b><br>Traceback (most recent call last):<br> File "sms-get.py", line 43, in <module><br> proxy = bus.get_object(MM_DBUS_<wbr>SERVICE, objpath)<br> File "/usr/lib/python2.7/dist-<wbr>packages/dbus/bus.py", line 241, in get_object<br> follow_name_owner_changes=<wbr>follow_name_owner_changes)<br> File "/usr/lib/python2.7/dist-<wbr>packages/dbus/proxies.py", line 248, in __init__<br> self._named_service = conn.activate_name_owner(bus_<wbr>name)<br> File "/usr/lib/python2.7/dist-<wbr>packages/dbus/bus.py", line 180, in activate_name_owner<br> self.start_service_by_name(<wbr>bus_name)<br> File "/usr/lib/python2.7/dist-<wbr>packages/dbus/bus.py", line 278, in start_service_by_name<br> 'su', (bus_name, flags)))<br> File "/usr/lib/python2.7/dist-<wbr>packages/dbus/connection.py", line 651, in call_blocking<br> message, timeout)<br>dbus.exceptions.DBusException: org.freedesktop.DBus.Error.<wbr>ServiceUnknown: The name org.freedesktop.ModemManager was not provided by any .service files<br>##############################<wbr>###########################<br><br><br></div>What is the simplest/most-recommended way to read the SMS-contents?<br><br></div>Will be grateful for pointers.<br><br>Thanks and Regards,<br><div><div><div><div><div><div><div><div data-smartmail="gmail_signature">Ajay<br></div>
</div></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Ajay<br></div>
</div></div></div></div>