SlimRoms/packages_apps_Bluetooth — pull request #1 by ech1965 (2013-09-16 08:03:07+00:00)
Title: Remove spaces from phone numbers synched with carkit bluetooth

Please forgive my english.. i'm not english native speaker.
Please also forgive me if this is not the "correct" way to push modifications to "upstream". I'd be happy to open an issue in the relevant issue tracker.. just point me at it ;-)

Context:
Spares are added by the Contacts android application when new phone numbers are entered ( eg: +32 555 55 55 55 )
I own a Peugeot 308SW/April 2013/ with WIP Nav+ radio/Bluetooth carkit bought in Belgium

The phone correctly synchronizes the contacts with the car and "ships" phone numbers containing spaces.
The car accepts and displays those numbers but any phone call initiated from the car aborts.

Phones numbers manually modified ( by removing spaces) can be dialed from the car.

According to RFC 3601 referenced in the source code comments, space characters are not allowed by the grammar.

The proposed pull request solves the "issue" by removing the spaces from the phone numbers while sending them to the bluetooth car kit. With this modification, the car can issue calls using numbers stored in the contacts list

I tried to replace white space with dot ( allowed by RFC) but the car keeps aborting the calls.