- 2013-12-03

From Google Code issue#137:
(http://code.google.com/p/asterisk-chan-dongle/issues/detail?id=137)
AT+CPMS="ME","ME","ME" causes an ERROR and afterwards dongle is disconnected.
But Huawei E352 only supports Preferred Message Storage on SIM.
atz
OK
ati
Manufacturer: huawei
Model: E352
Revision: 21.106.04.00.55
IMEI: 35423404xxxxxxx
+GCAP: +CGSM,+DS,+ES
OK
at+cpms=?
+CPMS: ("SM"),("SM"),("SM")
OK

As a result you get this:
raspbxCLI>
-- [dongle0] Trying to connect on /dev/ttyUSB2...
-- [dongle0] Dongle has connected, initializing...
-- [dongle0] Dongle has disconnected
-- [dongle0] Trying to connect on /dev/ttyUSB2...
-- [dongle0] Dongle has connected, initializing...
-- [dongle0] Dongle has disconnected
raspbx
CLI>

Now here is my quick and dirty fix:
Use a hexeditor from the command line (eg. apt-get install ncurses-hexedit) and binary patch the file chan_dongle.so. Replace the three string occurences of "ME" with "SM".
Now restart asterisk.

The Huawei E352 should now be working. With this procedure I got my German E352s-5 working.