<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>#########################################################<br>logic@logic-desktop:~$ <b>mmcli -m 0 --messaging-list-sms</b><br><br>Found 14 SMS messages:<br>    /org/freedesktop/ModemManager1/SMS/34 (received)<br>    /org/freedesktop/ModemManager1/SMS/35 (received)<br>    /org/freedesktop/ModemManager1/SMS/36 (received)<br>    /org/freedesktop/ModemManager1/SMS/37 (received)<br>    /org/freedesktop/ModemManager1/SMS/38 (received)<br>    /org/freedesktop/ModemManager1/SMS/39 (received)<br>    /org/freedesktop/ModemManager1/SMS/40 (received)<br>    /org/freedesktop/ModemManager1/SMS/41 (received)<br>    /org/freedesktop/ModemManager1/SMS/42 (received)<br>    /org/freedesktop/ModemManager1/SMS/43 (received)<br>    /org/freedesktop/ModemManager1/SMS/44 (received)<br>    /org/freedesktop/ModemManager1/SMS/45 (receiving)<br>    /org/freedesktop/ModemManager1/SMS/46 (received)<br>    /org/freedesktop/ModemManager1/SMS/47 (received)<br>#########################################################<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">https://raw.githubusercontent.com/openshine/ModemManager/master/test/sms-get.py</a>, but it gives errors as follows ::<br><br>#########################################################<br>logic@logic-desktop:~$ <b>python sms-get.py /org/freedesktop/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_SERVICE, objpath)<br>  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object<br>    follow_name_owner_changes=follow_name_owner_changes)<br>  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__<br>    self._named_service = conn.activate_name_owner(bus_name)<br>  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner<br>    self.start_service_by_name(bus_name)<br>  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name<br>    'su', (bus_name, flags)))<br>  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking<br>    message, timeout)<br>dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ModemManager was not provided by any .service files<br>#########################################################<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 class="gmail_signature" data-smartmail="gmail_signature">Ajay<br></div>
</div></div></div></div></div></div></div></div>