Beta support: MMS on chatty/mmsd on Modem Manager - help/testing wanted!
#93
(01-21-2021, 06:53 PM)cyp Wrote: Thank for your work, i manage to get some results with Free Mobile (french mobile operator)

[Image: Wzv3ZQh.png]

Two weird things...

The Provider's documentation say to use an APN (mmsfree) for MMS which is different from the one used for data (free) but mmsd give an error

Code:
mmsd[9491]: ModemManagerPlugin(): Setting Context...
mmsd[9491]: src/service.c:mms_service_set_mmsc() service 0x557ac86b90 mmsc http://mms.free.fr
mmsd[9491]: ModemManagerPlugin(): Max number of bearers: 1
mmsd[9491]: ModemManagerPlugin(): Current Context APN: free, mmsd settings MMS APN: mmsfree
mmsd[9491]: ModemManagerPlugin(): The modem is not connected to the correct APN!
mmsd[9491]: ModemManagerPlugin(): Set MMSC: http://mms.free.fr, Set Proxy: (null), Set MMS APN: mmsfree
mmsd[9491]: ModemManagerPlugin(): At Bearer Handler: path /org/freedesktop/ModemManager1/Modem/2 active 1 context_active 0
mmsd[9491]: ModemManagerPlugin(): Error activating context!

And mmsd do not succeed to resole CarrierMMSC=http://212.27.40.225

Code:
mmsd[11089]: src/service.c:process_request_queue() location (null)
request http://mms.free.fr
address (null)
port 80
host mms.free.fr
flags 0
request /
content-type application/vnd.wap.mms-message
lookup hostname mms.free.fr
g_resolv_lookup_hostname: nameserver_list NULL
g_resolv_lookup_hostname: nscount=3
adding nameserver 192.168.1.1
addr = 10.180.240.233
setting nameserver 192.168.1.1
fam 2 != expected 10
bind failed: Invalid argument
connect_udp_channel failed!
mmsd[11089]: src/service.c:web_post_result_cb() Send </home/mobian/.mms/send.FZ8QX0.mms> complete

So at the end I try with this content into my ModemManagerSettings file

Code:
[Modem Manager]
CarrierMMSC=http://212.27.40.225
MMS_APN=free
CarrierMMSProxy=NULL

And it works...

For people who want to try a more complete howto for fresh Mobian install

Install ssh on your (if you prefer to use ssh from your computer)

Code:
sudo  apt install ssh

Once connected, install git clone all repo compile, and install.

Code:
sudo apt install git make build-essential build-dep
mkdir ~/src
cd ~/src
git clone https://source.puri.sm/kop316/purple-mm-sms.git
cd purple-mm-sms/
sudo apt install libebook-contacts1.2-dev
sudo apt install libpurple-dev libmm-glib-dev modemmanager
make
sudo make install
cd ~/src
git clone https://source.puri.sm/kop316/mmsd.git
cd mmsd
sudo apt install autotools-dev automake libtool
./bootstrap-configure --prefix=/usr/
make
sudo make install
cd ~/src
git clone https://source.puri.sm/Librem5/chatty.git
cd chatty
sudo apt -y build-dep .
meson build # or for debug mode: meson build -Db_sanitize=address -Dbuildtype=debug
ninja -C build
sudo ninja -C build install # if you want to replace regular install
sudo mv /etc/xdg/autostart/sm.puri.Chatty-daemon.desktop ~/ # or rm if you do not want to keep the file

To launch (or relaunch)

Code:
sudo killall mmsd
sudo killall chatty
~/src/mmsd/src/mmsd # or to debug: ~/src/mmsd/src/mmsd -n -d 'src/*'
~/src/chatty/build/run & # or to debug: G_MESSAGES_DEBUG=all ~/src/chatty/build/run --debug --verbose


Great! I am glad it works!

(01-10-2021, 10:37 AM)antiX-Dave Wrote: Thanks,
Looks like it is compiled and able to run. However when trying to run chatty via
G_MESSAGES_DEBUG=all chatty --debug --verbose
I receive a segmentation fault
(sm.puri.Chatty:1239): mm-sms-DEBUG: 11:34:57.681: got mmsd Manager
(sm.puri.Chatty:1239): mm-sms-DEBUG: 11:34:57.687: got service
(sm.puri.Chatty:1239): mm-sms-DEBUG: 11:34:57.687: Listening for new messages
(sm.puri.Chatty:1239): mm-sms-DEBUG: 11:34:57.688: Connected to mmsd ModemManager Plugin
(sm.puri.Chatty:1239): mm-sms-DEBUG: 11:34:57.745: pur_mmsd_get_all_mms_cb
Segmentation fault

Nothing is returned / printed via the mmsd -n output.

Opps, had a typo with the apn configuration.

Now with the programs working mms fails to download.
I suspect this is because the download is being attempted directly without the mms proxy as there is a 404 error. It does appear to be using the correct ip / wwan0 connection.

APN settings:
[Modem Manager]
CarrierMMSC=http://aliasredirect.net/proxy/mmsc
MMS_APN=sp.telus.com
CarrierMMSProxy=74.49.0.18:80

Manually downloading using
curl --interface wwan0 --proxy 74.49.0.18:80 Download_URL_from_sms_in_mmsd_output -o test.mms;
recoverjpeg -b1 test.mms -o ./ -f test.jpg;
retrieved the test picture.


Hello!

The latest mmsd may have solved the Telus issue. Do you mind testing?
  Reply


Messages In This Thread
RE: Beta support: MMS on chatty/mmsd on Modem Manager - help/testing wanted! - by kop316 - 01-21-2021, 07:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What File Manager Options Are There For The Pinephone? pinephoneuser22 7 3,824 10-18-2023, 08:37 AM
Last Post: luppivega
  A/B testing or Unit testing gulshan212 0 1,235 08-29-2023, 03:36 AM
Last Post: gulshan212
  Article: NuttX RTOS for PinePhone: 4G LTE Modem lupyuen 2 2,077 04-10-2023, 10:19 PM
Last Post: lupyuen
  changing from bullseye to bookworm to install mmsd-tng jyoung 8 4,210 04-09-2023, 06:08 PM
Last Post: zetabeta
Sad Modem is always visible/connected but stops working after a while dante404 6 4,077 11-08-2022, 09:12 AM
Last Post: dante404
  Downsides of the open-source modem firmware? alpineduck 4 3,374 10-25-2022, 05:28 PM
Last Post: Zebulon Walton
  Pinephone: OpenGL support? orbital 2 2,760 08-25-2022, 04:09 PM
Last Post: vortex
  Latest firmware for PinePhone modem! Subsentient 104 148,613 07-20-2022, 05:32 AM
Last Post: zetabeta
  Which PP OS currently has the best podcast support? kujo_marble 3 2,681 07-14-2022, 07:09 AM
Last Post: tophneal
  Help wanted: location of calls and chatty data files dukla2000 3 5,331 06-13-2022, 02:01 PM
Last Post: israel

Forum Jump:


Users browsing this thread: 29 Guest(s)