Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E
@ 2018-05-14 13:42 Bob Ham
  2018-05-14 13:42 ` [PATCH 1/2] atmodem: Don't set AT+COLP=1 on SIMCom modems Bob Ham
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bob Ham @ 2018-05-14 13:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

Setting AT+COLP=1 on the SIMCom SIM7100E causes oFono to stall and not
create a new VoiceCall object.  We fix that by adding the SIMCOM
vendor ID to the list for whom we set AT+COLP=0 instead.

Bob Ham (2):
  atmodem: Don't set AT+COLP=1 on SIMCom modems
  sim7100: Specify vendor ID while creating voicecall driver

 drivers/atmodem/voicecall.c | 1 +
 plugins/sim7100.c           | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.11.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] atmodem: Don't set AT+COLP=1 on SIMCom modems
  2018-05-14 13:42 [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E Bob Ham
@ 2018-05-14 13:42 ` Bob Ham
  2018-05-14 13:42 ` [PATCH 2/2] sim7100: Specify vendor ID while creating voicecall driver Bob Ham
  2018-05-14 16:11 ` [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E Denis Kenzior
  2 siblings, 0 replies; 4+ messages in thread
From: Bob Ham @ 2018-05-14 13:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

On the SIMCom SIM7100E, setting AT+COLP=1 causes there to be no
response at all from "ATD...;" commands until the call is answered.
The results in oFono stalling rather than creating a new VoiceCall
object.

We fix this by adding SIMCOM to the list of vendors for whom we set
AT+COLP=0 rather than AT+COLP=1.
---
 drivers/atmodem/voicecall.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c
index e4c59c26..aa56f1ee 100644
--- a/drivers/atmodem/voicecall.c
+++ b/drivers/atmodem/voicecall.c
@@ -1120,6 +1120,7 @@ static int at_voicecall_probe(struct ofono_voicecall *vc, unsigned int vendor,
 
 	switch (vd->vendor) {
 	case OFONO_VENDOR_QUALCOMM_MSM:
+	case OFONO_VENDOR_SIMCOM:
 		g_at_chat_send(vd->chat, "AT+COLP=0", NULL, NULL, NULL, NULL);
 		break;
 	default:
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] sim7100: Specify vendor ID while creating voicecall driver
  2018-05-14 13:42 [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E Bob Ham
  2018-05-14 13:42 ` [PATCH 1/2] atmodem: Don't set AT+COLP=1 on SIMCom modems Bob Ham
@ 2018-05-14 13:42 ` Bob Ham
  2018-05-14 16:11 ` [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E Denis Kenzior
  2 siblings, 0 replies; 4+ messages in thread
From: Bob Ham @ 2018-05-14 13:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

This enables the atmodem voicecall driver to handle SIMCom quirks like
not setting AT+COLP=1.
---
 plugins/sim7100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/sim7100.c b/plugins/sim7100.c
index dcd7c9ad..7c7e46d1 100644
--- a/plugins/sim7100.c
+++ b/plugins/sim7100.c
@@ -214,7 +214,7 @@ static void sim7100_pre_sim(struct ofono_modem *modem)
 
 	ofono_devinfo_create(modem, 0, "atmodem", data->at);
 	sim = ofono_sim_create(modem, 0, "atmodem", data->at);
-	ofono_voicecall_create(modem, 0, "atmodem", data->at);
+	ofono_voicecall_create(modem, OFONO_VENDOR_SIMCOM, "atmodem", data->at);
 
 	if (sim)
 		ofono_sim_inserted_notify(sim, TRUE);
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E
  2018-05-14 13:42 [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E Bob Ham
  2018-05-14 13:42 ` [PATCH 1/2] atmodem: Don't set AT+COLP=1 on SIMCom modems Bob Ham
  2018-05-14 13:42 ` [PATCH 2/2] sim7100: Specify vendor ID while creating voicecall driver Bob Ham
@ 2018-05-14 16:11 ` Denis Kenzior
  2 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2018-05-14 16:11 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

Hi Bob,

On 05/14/2018 08:42 AM, Bob Ham wrote:
> Setting AT+COLP=1 on the SIMCom SIM7100E causes oFono to stall and not
> create a new VoiceCall object.  We fix that by adding the SIMCOM
> vendor ID to the list for whom we set AT+COLP=0 instead.
> 

Both applied, thanks.

Regards
-Denis


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-14 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-14 13:42 [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E Bob Ham
2018-05-14 13:42 ` [PATCH 1/2] atmodem: Don't set AT+COLP=1 on SIMCom modems Bob Ham
2018-05-14 13:42 ` [PATCH 2/2] sim7100: Specify vendor ID while creating voicecall driver Bob Ham
2018-05-14 16:11 ` [PATCH 0/2] Fix AT+COLP=1 stalling VoiceCall creation in SIMCom SIM7100E Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox