Fix: Change order of init commands
authorDenis Kenzior <denkenz@gmail.com>
Tue, 24 Nov 2009 01:56:41 +0000 (19:56 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 24 Nov 2009 01:56:41 +0000 (19:56 -0600)
This seems to make the calypso return from ATD right away instead of
waiting for connect/busy to be returned.  It should now be possible to
hangup alerting calls.

drivers/calypsomodem/voicecall.c

index 976334e..3457968 100644 (file)
@@ -391,10 +391,10 @@ static int calypso_voicecall_probe(struct ofono_voicecall *vc, unsigned int vend
 
        ofono_voicecall_set_data(vc, vd);
 
+       g_at_chat_send(chat, "AT%CPI=3", NULL, NULL, NULL, NULL);
        g_at_chat_send(chat, "AT+CLIP=1", NULL, NULL, NULL, NULL);
        g_at_chat_send(chat, "AT+COLP=0", NULL, NULL, NULL, NULL);
        g_at_chat_send(chat, "AT+CSSN=1,1", NULL, NULL, NULL, NULL);
-       g_at_chat_send(chat, "AT%CPI=3", NULL, NULL, NULL, NULL);
        g_at_chat_send(chat, "AT+CCWA=1", NULL,
                                calypso_voicecall_initialized, vc, NULL);