fsogsmd: postpone SMS-related configuration until SIM is ready
commite056594d32a9e864f321fe1de73cadb40c0970ae
authorPaul Fertser <fercerpav@gmail.com>
Thu, 7 Feb 2013 16:58:05 +0000 (7 20:58 +0400)
committerSebastian Krzyszkowiak <dos@dosowisko.net>
Sun, 10 Feb 2013 15:39:32 +0000 (10 16:39 +0100)
treef012eaa692dddf30d9f4cfac47463babecbddb7a
parentd8ca2c9a01048a968328402b0009b0e64dd59eec
fsogsmd: postpone SMS-related configuration until SIM is ready

Calypso doesn't allow to issue some SMS-related commands too early,
responding with "SIM is busy" error. Delay the whole configuration
(for all the modems) until SIM is known to be fully ready.

Example Calypso response before the patch:
2010-05-11T11:16:34.665705Z [INFO]  libfsotransport <0710:2>: SRC: "+CSMS=1" -> [ "+CMS ERROR: 314" ]

This fixes #689 and #722.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
fsogsmd/src/lib/at/atchannel.vala
fsogsmd/src/lib/sms.vala