I created my own application to send/receive SMS using modemmanger, and all works fine, Here a part of my code
import subprocess
nb_modem = 0
text_msg = 'Teste'
number = '0123456789'
nb_sms = 1
subprocess.Popen('mmcli -m %s' % nb_modem, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]
"mmcli -m %s --messaging-create-sms=\"text='%s',number='%s'\"" % (nb_modem, text_msg, number)
"mmcli -s %s --send" % nb_sms
### Receiving SMS
'''
My extra code
'''
texte_sms = "mmcli -s %s" % nb_sms
cmd_texte_sms = subprocess.Popen(texte_sms, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
The problem is I couldn’t add listener to incomming SMS in real time (add notification), all what I did is runing my script manually to read incomming SMS, I tried too to use rabbitmq but the same problem My chanel doesn’t listen to incomming SMS.
I’am using Python in ubuntu.
Thanks in advance.