Closed Bug 821636 Opened 13 years ago Closed 13 years ago

[b2g-bluetooth] No subscriber number information in Bluetooth Handsfree

Categories

(Core :: DOM: Device Interfaces, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

()

RESOLVED FIXED
B2G C3 (12dec-1jan)
blocking-basecamp +
Tracking Status
firefox19 --- fixed
firefox20 --- fixed
b2g18 --- fixed

People

(Reporter: gyeh, Assigned: gyeh)

Details

Attachments

(1 file, 1 obsolete file)

This is a mandatory item in HFP(Handsfree Profile). When HS send AT+CNUM command to AG, we shall answer our phone number within a +CNUM command.
blocking-basecamp: --- → ?
If we can get subscriber number information from RIL, then we will reply AT+CNUM command with our phone number. If not, just send "OK" back.
Attachment #692251 - Flags: review?(echou)
Comment on attachment 692251 [details] [diff] [review] Patch 1(v1): No subscriber number information in Bluetooth Handsfree Review of attachment 692251 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, but there are several places need to be checked again. I'm happy to review again once it has been done. ::: dom/bluetooth/BluetoothHfpManager.cpp @@ +672,5 @@ > break; > } > SendLine("OK"); > + } else if (!strncmp(msg, "AT+CNUM", 7)) { > + if (mMsisdn.Length()) { Not-even-a-nit: we are used to using IsEmpty() instead of Length() @@ +674,5 @@ > SendLine("OK"); > + } else if (!strncmp(msg, "AT+CNUM", 7)) { > + if (mMsisdn.Length()) { > + nsAutoCString message("+CNUM: ,"); > + message += NS_ConvertUTF16toUTF8(mMsisdn).get(); Question: according to the HFP spec, the subscriber number shall be double-quoted. Will mMsisdn be double-quoted? If not, we have to do something. @@ +676,5 @@ > + if (mMsisdn.Length()) { > + nsAutoCString message("+CNUM: ,"); > + message += NS_ConvertUTF16toUTF8(mMsisdn).get(); > + message += ","; > + message.AppendInt(TOA_UNKNOWN); According to the HFP spec, there should be a value <service(4 or 5)> at the end of +CNUM string. Could you check again please? "<service>, Indicates which service this phone number relates to. Shall be either 4(voice) or 5 (fax). Example: [+CNUM: ,"5551212",129,,4]
Attachment #692251 - Flags: review?(echou)
Phone number should be double-quoted and revised in the new patch. Service field is optional, however, it would be a good idea to set it to 4(voice).
Attachment #692251 - Attachment is obsolete: true
Attachment #692811 - Flags: review?(echou)
Comment on attachment 692811 [details] [diff] [review] Patch 1(v2): No subscriber number information in Bluetooth Handsfree Review of attachment 692811 [details] [diff] [review]: ----------------------------------------------------------------- Looks good!
Attachment #692811 - Flags: review?(echou) → review+
(In reply to Gina Yeh from comment #0) > This is a mandatory item in HFP(Handsfree Profile). Okay, blocking.
blocking-basecamp: ? → +
Priority: -- → P1
Target Milestone: --- → B2G C3 (12dec-1jan)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: