[Bugfix][T106BUG-54] solve No incoming calls, no return calls, no error issues

Only Configure:No
Affected branch:master
Affected module:Call
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update:No

Change-Id: Ib4f08ab5bfdda143edc0bc5b7b99e82aa23ebca2
diff --git a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_cc.c b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_cc.c
index a2a8400..81108b2 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_cc.c
+++ b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_cc.c
@@ -621,8 +621,15 @@
 

 void requestAnswer(void *data __unused, size_t datalen __unused, RIL_Token t)

 {

-	at_send_command("ATA", NULL);

-

+    //l.yang modify for bug id T106BUG-54 2023/9/20 start 

+    ATResponse *p_response = NULL;

+    at_send_command("ATA", &p_response);

+    if( p_response->success == 0) 

+    {

+        goto error;

+    }

+    //l.yang modify for bug id T106BUG-54 2023/9/20 end 

+    

 #ifdef WORKAROUND_ERRONEOUS_ANSWER

 	s_expectAnswer = 1;

 #endif /* WORKAROUND_ERRONEOUS_ANSWER */

@@ -630,6 +637,11 @@
 	/* success or failure is ignored by the upper layer here.

 	   it will call GET_CURRENT_CALLS and determine success that way */

 	RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);

+    //l.yang modify for bug id T106BUG-54 2023/9/20 start 

+error:

+    RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);

+    at_response_free(p_response);

+    //l.yang modify for bug id T106BUG-54 2023/9/20 end 

 }

 

 void requestConference(void *data __unused, size_t datalen __unused, RIL_Token t)