[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
Any progress on this issue? It is the same problem in France the following numbers are not recognized: - Medical emergency/accidents/ambulance (SAMU): 15 - Fire brigade: 18 - Police: 17 - 114 for deft and mute people ** Summary changed: - Emergency numbers for China (110,119) are not available in emergency mode + Emergency numbers other than 112 and 911 (and 999 for the UK) are not available in emergency mode -- 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 other than 112 and 911 (and 999 for the UK) 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
@Tony I did the testing with Ubuntu/arale. Let me reword what I said for libphonenumber: I was trying to say that libphonenumber is probably not 100% accurate. We can and should use it, but we should not prevent the user to call numbers that are not there either. Finally, right, the specific things that are done for emergency calls (I think that the only one in ofono is that you cannot offline the modem, I do not know what other pieces of the system do under emergency conditions) would not be done in those cases, but that is a minor issue compared to not being able to call emergency codes. -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
@Alfonso What device did you use and what software was it running ( ie. what version of Android )? Regarding the SIM being programmed wrong in this case, yes it's worrying, but it's also a fact of life that some operators will do a poor job of programming their SIMs. This isn't the first case of invalid SIM programming we've seen. I'm not sure why you think we can't trust the numbers in libphonenumber as one of it's intended uses is to solve this very issue. Regarding allowing the dialer-app to dial any number... I guess you've convinced me that there's no major harm in allowing this. I will say however that ofono's emergency logic ( ie. the code that identifies when an emergency call is in progress ) won't work if/when such a SIM is used, so I still think we need to investigate usage of libphonenumber. -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
@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: ATDX; ... 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, 110 and 119 should be on the SIM file that provides the emergency numbers. 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
@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: ATDX; ... 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
@Alfonso, attached the output of the getprop command,fyi. ** Attachment added: getprop-CMCC-arale-r46.txt https://bugs.launchpad.net/ubuntu/+source/telephony-service/+bug/1444883/+attachment/4403849/+files/getprop-CMCC-arale-r46.txt -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
@Alfonso - I just checked my Nexus5 and it the Emergency Dialer rejects the call immediately if the number entered is not an emergency number. I didn't go so far as checking the RIL trace, but as the dialog pops up right away, it's doubtful it initiated a call and got a response from the network that quickly. Also re: comment #8 items 2 3, I'm not sure I agree with your 'no restrictions' proposal. Again, I think at minimum before going down this path, we should research using libphonenumber as previously discussing with the dialer-app developers. I think we also should further investigate Android as you and I have seen quite different behavior. Let's put this on the agenda for next week's network/telephony meeting and ask the dialer-app devs to join. -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
** Also affects: dialer-app (Ubuntu) Importance: Undecided Status: New -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
Some general comments: 1. Yes, ofono supports importing emergency numbers from those provided by the network. However, after taking a look to ril.h it looks like it is not implemented in AOSP (and I have not seen it in MTK ril.h Android, although maybe they use an Android property for sharing them, you never know). The only ofono driver that I see supports this it ifxmodem (Infineon). 2. There is nothing that prevents ofono to try to start a call even if there is no SIM present, it does not check against the list of emergency numbers. Imo dialer-app should not check the list either and allow the user to try to start a call even if there is no SIM. The network does know which numbers are for emergencies and which not. So I have added a task for dialer-app. 3. I think that emergency calls specifics are handled essentially by the modem and the network. The list can be used to do things like displaying emergency in the dialer when calling one of the numbers, or to avoid the modem to go offline when that happens and so on, but it should not be used to put restrictions on other numbers. We simply cannot know for sure which numbers are emergency and which not, so we should be safe here. -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
For this concrete bug I find it interesting that the file on the SIM does exist and that its content is 112 911 (otherwise we would have had the default ofono list, which does include 110 and 119). @Wenfang, could you please attach the output of the getprop command? Some properties are related to emergency numbers. -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
I have checked that in my Android phones I can try to call non-emergency numbers with locked or no SIM. -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
Hi Sebastien, I collected the emergency call numbers of Mainland China only (not include Hong KongMacau, and Taiwan), and they are all available in my android phone(XiaoMi) with the same SIM card. 110Police 119Fire 120Ambulance 122Traffic Accident Here is the output of /usr/share/ofono/scripts/list-modems on Arale r46, channel: ubuntu-touch/tangxi/devel-proposed $ /usr/share/ofono/scripts/list-modems [ /ril_0 ] Model = Fake Modem Model Manufacturer = Fake Manufacturer Online = 1 Lockdown = 0 Type = hardware Emergency = 0 Revision = MOLY.LR9.W1421.MD.LWTG.MP.V6.P11, 2014/09/10 10:13 Powered = 1 Interfaces = org.ofono.ConnectionManager org.ofono.Phonebook org.ofono.CallBarring org.ofono.CallForwarding org.ofono.CallSettings org.ofono.SupplementaryServices org.ofono.NetworkRegistration org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.MessageWaiting org.ofono.RadioSettings org.ofono.SimManager org.ofono.CallVolume org.ofono.VoiceCallManager org.ofono.NetworkTime Features = gprs ussd net sms rat sim Serial = 862095022035486 [ org.ofono.ConnectionManager ] RoamingAllowed = 0 Bearer = lte Attached = 1 Powered = 1 Suspended = 0 [ org.ofono.Phonebook ] [ org.ofono.CallBarring ] VoiceOutgoing = international VoiceIncoming = disabled [ org.ofono.CallForwarding ] ForwardingFlagOnSim = 0 VoiceNoReply = VoiceUnconditional = VoiceNoReplyTimeout = 20 VoiceNotReachable = +8613800100103 VoiceBusy = +86138 [ org.ofono.CallSettings ] CalledLinePresentation = disabled CallingNamePresentation = unknown HideCallerId = default CallingLinePresentation = enabled CallingLineRestriction = disabled VoiceCallWaiting = enabled ConnectedLinePresentation = unknown ConnectedLineRestriction = unknown [ org.ofono.SupplementaryServices ] State = idle [ org.ofono.NetworkRegistration ] Strength = 83 Mode = auto Technology = edge CellId = 25617 MobileNetworkCode = 00 Name = CMCC MobileCountryCode = 460 LocationAreaCode = 4335 Status = registered [ org.ofono.SmartMessaging ] [ org.ofono.PushNotification ] [ org.ofono.MessageManager ] ServiceCenterAddress = +8613800100500 UseDeliveryReports = 0 Bearer = cs-preferred Alphabet = default [ org.ofono.MessageWaiting ] VoicemailWaiting = 0 VoicemailMailboxNumber = VoicemailMessageCount = 0 [ org.ofono.RadioSettings ] ModemTechnologies = gsm umts lte TechnologyPreference = lte FastDormancy = 0 [ org.ofono.SimManager ] Retries = FixedDialing = 0 BarredDialing = 0 ServiceNumbers = [] = '' MobileCountryCode = 460 PinRequired = none SubscriberIdentity = 460027013766397 CardIdentifier = 898600c00115 SubscriberNumbers = Present = 1 LockedPins = MobileNetworkCode = 02 [ org.ofono.CallVolume ] Muted = 0 SpeakerVolume = 0 MicrophoneVolume = 0 [ org.ofono.VoiceCallManager ] EmergencyNumbers = 112 911 [ org.ofono.NetworkTime ] -- 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/ubuntu/+source/telephony-service/+bug/1444883/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
** Tags added: 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
How about we start with what SIM card is installed in the phone? Is CMCC, China Mobile? When ofono starts, if a valid SIM is inserted in the phone, ofono will try to read the emergency numbers from the file EF_ECC ( emergency number list ). It tries two different formats to ensure that it's able to read the file from a wide variety of SIM cards. When one of these reads completes, ofono builds a composite emergency number list using: - the list of emergency numbers read from the network ( always empty, as RIL/rilmodem don't support this ) - if a valid SIM is present, the numbers read from the SIM EF_ECC file - if a SIM is not present, the numbers 119, 118, 999, 110, 08, and 000 are added - finally the default numbers 911 and 112 are added Also, please note that bug #1334860 discusses a similar problem with operators in Brazil. Their SIMs are not programmed property, and the emergency numbers are found in the 'ServiceNumbers' list from the SIM instead. The only plausible solution for this was the idea that maybe we should instead be using libphonenumber to provide a canonical list of emergency operators vs. relying on SIM cards. I checked, and there are no ServiceNumbers present on the SIM either ( see list-modems output ). -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
thanks, the log has [ org.ofono.VoiceCallManager ] EmergencyNumbers = 112 911 so it seems like ofono is getting the wrong information (or the SIM card only has those and more heuristic are needed/android is adding numbers from some other list) ** Changed in: telephony-service (Ubuntu) Status: Incomplete = New ** Also affects: ofono (Ubuntu) Importance: Undecided Status: New ** Also affects: canonical-devices-system-image Importance: Undecided Status: New -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
Can we look into whether we are properly handling updates from the network / modem to the emergency number list. Also does it make sense to allow the user to enter any number from the default list in addition to what the sim provides. ** Changed in: ofono (Ubuntu) Status: New = Confirmed ** Changed in: ofono (Ubuntu) Importance: Undecided = High ** Changed in: ofono (Ubuntu) Assignee: (unassigned) = Alfonso Sanchez-Beato (alfonsosanchezbeato) -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
also see bug #1334860 -- 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
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
Thank you for your bug report, could you provide some extra informations - are those numbers available if you use the same SIM in a phone using another OS (android, iOS, ...) - do you know how to adb shell to the device? could you run /usr/share/ofono/scripts/list-modems and give the output there? ** Changed in: dialer-app (Ubuntu) Importance: Undecided = High ** Changed in: dialer-app (Ubuntu) Status: New = Incomplete ** Package changed: dialer-app (Ubuntu) = telephony-service (Ubuntu) -- 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/ubuntu/+source/telephony-service/+bug/1444883/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444883] Re: Emergency numbers for China (110, 119) are not available in emergency mode
The emergency call number (110, 112, 119) works on Arale r183, but another two number (120, 122) not, they are also emergency call number in China. -- 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/ubuntu/+source/dialer-app/+bug/1444883/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs