handle ofono MMS host routes that are hostnames and not IP addresses

Bug #1304501 reported by Mathieu Trudel-Lapierre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
High
Mathieu Trudel-Lapierre
ofono (Ubuntu)
Invalid
High
Tony Espy

Bug Description

NM should be able to handle (read: resolve) MMS proxy settings as strings for hostnames: if the value is a hostname rather than an IP address, we should try to resolve it to generate a proper host route to the MMS proxy.

Tony Espy (awe)
Changed in network-manager (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Changed in network-manager (Ubuntu):
status: Confirmed → Triaged
Changed in ofono (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Tony Espy (awe)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Not a bug in ofono; marking as Invalid for ofono.

In progress for NM; we'll fix this via a dispatcher script.

Changed in ofono (Ubuntu):
status: Triaged → Invalid
Changed in network-manager (Ubuntu):
status: Triaged → Invalid
status: Invalid → In Progress
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

This was fixed in lxc-android-config (0.172), via a dispatcher script as mentioned above. Closing as Fix Released.

Changed in network-manager (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Tony Espy (awe) wrote :

For added detail, the dispatcher script mentioned above is 03mmsproxy and is installed to /etc/NetworkManager/dispatcher.d.

The script is written in Python does the following:

1) it does some minor error checking on modem_path ( 'DEVICE_IPATH' ) and connection ( 'CONNECTION_ID' )

2) it makes a synchronous dbus call to get the properties of the specified ofono context

3) is use socket.gethostbyname to resolve the MMS proxy

4) if uses subprocess.call to invoke the "ip route" command to configure the proxy

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.