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)
Tracking
()
People
(Reporter: gyeh, Assigned: gyeh)
Details
Attachments
(1 file, 1 obsolete file)
|
4.00 KB,
patch
|
echou
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
| Assignee | ||
Comment 1•13 years ago
|
||
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 2•13 years ago
|
||
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)
| Assignee | ||
Comment 3•13 years ago
|
||
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 4•13 years ago
|
||
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+
| Assignee | ||
Comment 5•13 years ago
|
||
| Assignee | ||
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
(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)
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 9•13 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•