@Tony, I have dialled a non-emergency number, without SIM, using the
"dial-number" ofono script. The radio logs shows:

05-25 05:42:06.748  1879  1885 D use-Rlog/RLOG-AT: ATDXXXXXXXXX;
...
05-25 05:42:06.754  1879  1899 D use-Rlog/RLOG-AT: +CME ERROR: 100

so rild tries to dial, although the modem responds immediately with an
"unknown" error. This fits your observation about the call being quickly
rejected, and also that the radio layer does try to dial. IMHO I think
this confirms that it is better to let the modem and the network handle
emergency codes: the modem/network does not inform us which numbers are
emergency, so we should better be safe and not make assumptions in the
dialer-app that could prevent the user to make an emergency call.

Re: the CMCC SIM, in the list of properties that Evan has attached we
have:

[ril.ecclist]: [112,911]

Same emergency codes as in ofono. These numbers must come from the SIM,
and apparently rild does not add any numbers to these. IMO the SIM
profile is simply wrong, being this a Chinese SIM. This is worrying, as
it implies that we cannot blindly trust the list of emergency codes on
the SIM. And we cannot just simply trust the numbers in libphonenumber.

I do not imply with this that we cannot improve the list of emergency
number, either using libphonenumber or trying to find a way to ask the
modem the list (maybe using directly some AT command?): but I do think
that we *must* be safe here, and *first* let dialer-app dial any number
even when there is no SIM/the SIM is locked. There is no harm here, as
the modem/network will reject the call if the number is not emergency.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1444883

Title:
  Emergency numbers for China (110,119) are not available in emergency
  mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1444883/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to