(01-12-2021, 07:36 PM)Rey Wrote:(01-12-2021, 06:10 PM)kop316 Wrote:(01-12-2021, 04:15 PM)Rey Wrote: Trying to build this on latest dev of Manjaro phosh. I have it built and compiled and it is working, in the ModemManagerSettings I have the following but am not sure what MMS_APN should be.Hello Jon!
[Modem Manager]
CarrierMMSC=http://mmsc.mobile.att.net
MMS_APN=NXTGENPHONE
CarrierMMSProxy=proxy.mobile.att.net:80
The service does start but I get an error which I think is caused by not having the correct MMS_APN, which I cannot seem to find for AT&T. I have never messed with cellular so I am unsure of the data for these config files and where to find them. I am not a developer just a regular user trying to see if I can get a picture to my PinePhone.
[manjaro@manjaro-arm mmsd-ModemManager]$ ./src/mmsd -n -d 'src/*'
mmsd[4979]: MMS daemon version 0.0
mmsd[4979]: src/service.c:__mms_service_init()
mmsd[4979]: src/plugin.c:__mms_plugin_init()
mmsd[4979]: src/plugin.c:add_plugin() Plugin ofono loaded
mmsd[4979]: src/service.c:mms_service_create() service 0xaaab01c97630
mmsd[4979]: src/service.c:mms_service_set_identity() service 0xaaab01c97630 identity modemmanager
mmsd[4979]: src/plugin.c:add_plugin() Plugin modemmanager loaded
mmsd[4979]: ModemManagerPlugin(): ModemManager found: :1.9
mmsd[4979]: src/service.c:mms_service_register() service 0xaaab01c97630
mmsd[4979]: src/service.c:emit_service_added() service 0xaaab01c97630
mmsd[4979]: src/service.c:mms_service_set_bearer_handler() service 0xaaab01c97630 handler 0xaaaae184b750
mmsd[4979]: src/service.c:mms_service_set_mmsc() service 0xaaab01c97630 mmsc http://mmsc.mobile.att.net
mmsd[4979]: ModemManagerPlugin(): There are no modem bearers! Please enable modem data
mmsd[4979]: ModemManagerPlugin(): Set MMSC: http://mmsc.mobile.att.net, Set Proxy: proxy.mobile.att.net:80, Set MMS APN: NXTGENPHONE
mmsd[4979]: ModemManagerPlugin(): Error activating context!
mmsd[4979]: src/service.c:mms_service_bearer_notify() service=0xaaab01c97630 active=0 iface=(null) proxy=(null)
Thanks for any help and sorry if these are basic questions and I should know the answers,
Jon
Can you first confirm you have mobile data? Based on the error, mmsd cannot seem to find an active mobile internet connection.
IIRC, AT&T uses the same APN for MMS as they do for mobile data, so you should be able to copy whatever your phone's settings are. If you look in your phone's mobile settings, can you look up the APN in there and copy it to the mmsd settings?
Progress!! I can send a MMS to my phone and I see it arrive via, mmcli -m 0 --messaging-list-sms. I deleted all of the messages in the queue to ensure that nothing was hung, I then started mmsd as the manjaro user, which is the default user. Should I be starting it as root? I then send a message and see it arrive but it does not show up in the chat application. Below is what I now see when I start the mms daemon, as the manjaro user. Look at what I have bolded and tell me if that looks accurate.
[manjaro@manjaro-arm mmsd-ModemManager]$ ./src/mmsd -n -d 'src/*'
mmsd[4977]: MMS daemon version 0.0
mmsd[4977]: src/service.c:__mms_service_init()
mmsd[4977]: src/plugin.c:__mms_plugin_init()
mmsd[4977]: src/plugin.c:add_plugin() Plugin ofono loaded
mmsd[4977]: src/service.c:mms_service_create() service 0xaaaac36b55d0
mmsd[4977]: src/service.c:mms_service_set_identity() service 0xaaaac36b55d0 identity modemmanager
mmsd[4977]: src/plugin.c:add_plugin() Plugin modemmanager loaded
mmsd[4977]: ModemManagerPlugin(): ModemManager found: :1.9
mmsd[4977]: src/service.c:mms_service_register() service 0xaaaac36b55d0
mmsd[4977]: src/service.c:emit_service_added() service 0xaaaac36b55d0
mmsd[4977]: src/service.c:mms_service_set_bearer_handler() service 0xaaaac36b55d0 handler 0xaaaabf27b750
mmsd[4977]: src/service.c:mms_service_set_mmsc() service 0xaaaac36b55d0 mmsc http://mmsc.mobile.att.net
mmsd[4977]: src/service.c:mms_service_bearer_notify() service=0xaaaac36b55d0 active=1 iface=wwan0 proxy=proxy.mobile.att.net:80
mmsd[4977]: src/service.c:mms_service_bearer_notify() interface wwan0 proxy proxy.mobile.att.net:80
setting proxy proxy.mobile.att.net:80
mmsd[4977]: src/service.c:process_request_queue() service 0xaaaac36b55d0
mmsd[4977]: src/service.c:bearer_idle_timeout() service 0xaaaac36b55d0
mmsd[4977]: src/service.c:deactivate_bearer() service 0xaaaac36b55d0
mmsd[4977]: src/service.c:deactivate_bearer() service 0xaaaac36b55d0
mmsd[4977]: src/service.c:mms_service_set_mmsc() service 0xaaaac36b55d0 mmsc http://mmsc.mobile.att.net
mmsd[4977]: src/service.c:mms_service_bearer_notify() service=0xaaaac36b55d0 active=0 iface=wwan0 proxy=proxy.mobile.att.net:80
It looks like it connected which is good! The bearer deactivates automatically when nothing is happening.
You shouldn't need to run it as a root user, I run it as the default user in Mobian.
Did you install purple-mm-sms
https://source.puri.sm/kop316/purple-mm-sms ? The default pueple-mm-sms does not function with this, and has the behavior you describe.
You also shouldn't need to delete anything in your SMS queue.