| 1 |
Multimedia Messaging Service Daemon - The Next Generation (mmsd-tng) |
| 2 |
**************************** |
| 3 |
|
| 4 |
Copyright (C) 2010-2011, Intel Corporation |
| 5 |
2021, Chris Talbot <[email protected]> |
| 6 |
|
| 7 |
About |
| 8 |
=========================== |
| 9 |
mmsd-tng is a lower level daemon that transmits and recieves MMSes. It works with |
| 10 |
both the Modem Manager stack. |
| 11 |
|
| 12 |
Modem Manager specific notes |
| 13 |
=========================== |
| 14 |
Upon start up, mmsd-tng looks for and tracks the state of the modem |
| 15 |
that has Modem Messaging (i.e. SMS) capabilities. Since mmsd-tng is a lower |
| 16 |
level program, mmsd-tng assumes that other parts of the OS stack manage mobile |
| 17 |
connectivity. |
| 18 |
|
| 19 |
Please note that due to limitations of Modem Manager, mmsd-tng does not support |
| 20 |
having multiple APNs at the same time (for carriers that seperate MMS APN |
| 21 |
from Mobile Data APNs). |
| 22 |
|
| 23 |
Please read "Configuring the Modem Manager Plugin" for configuration. |
| 24 |
|
| 25 |
Compiling mmsd-tng |
| 26 |
============================ |
| 27 |
In order to compile proxy daemon you need following software packages: |
| 28 |
- GCC compiler |
| 29 |
- D-Bus library |
| 30 |
- GLib library |
| 31 |
- Modem Manager Library |
| 32 |
- LibSoup library |
| 33 |
- c-ares DNS resolver library |
| 34 |
|
| 35 |
Installing mmsd-tng |
| 36 |
============================ |
| 37 |
|
| 38 |
Build tools requirements |
| 39 |
|
| 40 |
When building and testing directly from the repository it is important to |
| 41 |
have at least meson version 0.56 or later installed. In addition, some |
| 42 |
supported Meson backend is required (e.g. ninja). |
| 43 |
|
| 44 |
To prepare/configure the project for compilation: |
| 45 |
|
| 46 |
# meson _build |
| 47 |
|
| 48 |
To build the project: |
| 49 |
|
| 50 |
# meson compile -C _build |
| 51 |
|
| 52 |
Run tests: |
| 53 |
|
| 54 |
# meson test -C _build |
| 55 |
|
| 56 |
Install: |
| 57 |
|
| 58 |
# meson install -C _build |
| 59 |
|
| 60 |
|
| 61 |
Running from within the source code repository |
| 62 |
============================================== |
| 63 |
|
| 64 |
Meson will build the binary in builddir (_build, using the examples above), and |
| 65 |
can be invoked directly. |
| 66 |
|
| 67 |
Run with debugging |
| 68 |
# ./_build/mmsdtng -d |
| 69 |
|
| 70 |
General Configuration |
| 71 |
=========================== |
| 72 |
On first run, mmsd-tng will write a settings file at |
| 73 |
"$HOME/.mms/$PLUGIN/mms" |
| 74 |
|
| 75 |
IMPORTANT NOTE: If you change settings in this file, mmsd-tng MUST NOT BE RUNNING |
| 76 |
in order for your settings to take effect! |
| 77 |
|
| 78 |
This settings file use sane defaults, but you can change them: |
| 79 |
|
| 80 |
UseDeliveryReports |
| 81 |
Whether you want delivery reports for MMSes you send |
| 82 |
|
| 83 |
AutoCreateSMIL |
| 84 |
mmsd-tng will attempt to create SMIL for any outgoing MMS without SMIL |
| 85 |
|
| 86 |
TotalMaxAttachmentSize |
| 87 |
The maximum size all of your attachments can be before mmsd-tng rejects it. |
| 88 |
This value is in bytes. |
| 89 |
NOTE: This value is carrier specific! Changing this value to a higher |
| 90 |
number may cause your carrier to silently reject MMSes you send. |
| 91 |
CHANGE AT YOUR OWN RISK! |
| 92 |
|
| 93 |
MaxAttachments |
| 94 |
The maximum number of attachments allowed before mmsd-tng rejects it. |
| 95 |
NOTE: This value is carrier specific! Changing this value to a higher |
| 96 |
number may cause your carrier to silently reject MMSes you send. |
| 97 |
CHANGE AT YOUR OWN RISK! |
| 98 |
|
| 99 |
ForceCAres |
| 100 |
Force the C-Ares backend even if systemd is present |
| 101 |
NOTE: This value can only be changed via manual file editting, and only |
| 102 |
while mmsd-tng is not running. |
| 103 |
|
| 104 |
Configuring the Modem Manager Plugin |
| 105 |
=========================== |
| 106 |
On first run, mmsd-tng will write a settings file at |
| 107 |
"$HOME/.mms/$PLUGIN/mms" |
| 108 |
|
| 109 |
It will then attempt to look up your carrier settings from: |
| 110 |
https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info |
| 111 |
|
| 112 |
If it cannot find it, I highly suggest for you to add your carrrier settings here. |
| 113 |
|
| 114 |
IMPORTANT NOTE: If you change any settings through the file, |
| 115 |
mmsd-tng MUST NOT BE RUNNING for the changes to take effect! |
| 116 |
|
| 117 |
You can change CarrierMMSC, CarrierMMSProxy, or MMS_APN via |
| 118 |
dbus and they will take effect right away, but any |
| 119 |
messages sent to the mmsd-tng queue need to be processed |
| 120 |
again. The easiest way to do this is to reset mmsd-tng. |
| 121 |
But it can be done with the dbus proxy call ProcessMessageQueue(). |
| 122 |
|
| 123 |
This settings file needs to be changed before mmsd-tng will connect! The settings |
| 124 |
are as follows: |
| 125 |
|
| 126 |
CarrierMMSC |
| 127 |
Get this from your carrier. |
| 128 |
|
| 129 |
Carrier MMSC Format: "http://mms.example.com" |
| 130 |
|
| 131 |
CarrierMMSProxy |
| 132 |
Get this from your carrier. |
| 133 |
|
| 134 |
MMS Proxy Format: "proxy.example.com:80", "proxy.example.com", or "NULL" |
| 135 |
In the example, the proxy hostname is "proxy.example.com" and the |
| 136 |
proxy port is "80" |
| 137 |
If you do not set the proxy port (e.g. use "proxy.example.com" ), |
| 138 |
mmsd will default to port 80. |
| 139 |
If you do NOT have a proxy, set this to "NULL" |
| 140 |
|
| 141 |
DefaultModemNumber |
| 142 |
If you have multiple modems, this will allow you to only choose which |
| 143 |
modem to connect to by reading its number. The number MUST be set to |
| 144 |
E.164 Setting this to NULL means mmsd-tng will connect to the first modem |
| 145 |
it finds. |
| 146 |
|
| 147 |
Unless you have multiple modems (not common), you can leave this set to |
| 148 |
"NULL" |
| 149 |
|
| 150 |
MMS_APN |
| 151 |
Note that at this point, this plugin can only support one bearer at |
| 152 |
a time (this works fine for carriers with a combined Internet/MMS APN |
| 153 |
but will not function with carriers that have two APNS seperating |
| 154 |
the two) |
| 155 |
|
| 156 |
MMS APN Format: "apn.example.com" |
| 157 |
|
| 158 |
AutoProcessOnConnection |
| 159 |
Tell mmsd-tng to automatically send and recieve messages when the modem |
| 160 |
is connected. This will also allow mmsd-tng to auto send/recieve if the |
| 161 |
modem is disconnected and reconnects, suspends and unsuspends, etc. |
| 162 |
|
| 163 |
AutoProcessOnConnection Options: "true" or "false" |
| 164 |
|
| 165 |
AutoProcessSMSWAP |
| 166 |
Tell mmsd-tng to automatically check and process SMS WAPs. This can be |
| 167 |
useful if you do not have a chat application that manages MMS or if |
| 168 |
a higher level chat application does not process SMS WAPs to send to |
| 169 |
mmsd-tng. |
| 170 |
|
| 171 |
AutoProcessSMSWAP Options: "true" or "false" |
| 172 |
|
| 173 |
|
| 174 |
An example of what you are looking for is here: |
| 175 |
https://www.t-mobile.com/support/devices/not-sold-by-t-mobile/byod-t-mobile-data-and-apn-settings |
| 176 |
|
| 177 |
From this: |
| 178 |
|
| 179 |
CarrierMMSC=http://mms.msg.eng.t-mobile.com/mms/wapenc |
| 180 |
MMS_APN=fast.t-mobile.com |
| 181 |
CarrierMMSProxy=NULL |