[Feature][R306BR][task-view-1592][voice] add call time dial time call hold call lock hotline
Change-Id: Iface4e5341d6a6496d42187ba7dc77e311e9575e
diff --git a/lynq/R306BR/ap/app/ccapp/cc_proc.c b/lynq/R306BR/ap/app/ccapp/cc_proc.c
index 1bb29a3..4418a7b 100755
--- a/lynq/R306BR/ap/app/ccapp/cc_proc.c
+++ b/lynq/R306BR/ap/app/ccapp/cc_proc.c
@@ -572,7 +572,11 @@
{
UINT8 callCnt = 0, slave = 0;
SINT32 chldret = -1;
+ char voice_dial_time[4] = {0};
+ unsigned int dtmf_interval;
+ cfg_get_item("voice_dial_time", voice_dial_time, sizeof(voice_dial_time));
+ dtmf_interval = atoi(voice_dial_time) * 1000;
ccapp_log("ret=%d", ret);
slave = zCc_GetSpecSlave(ZCC_S_DACCM_S);
@@ -581,7 +585,7 @@
case ZCC_NO_RESULT:
CreateSoftTimer(ZCCAPP_TIMER_DTMF_DETECT,
0,
- ZCCAPP_TIMER_DTMF_INTERVAL,
+ dtmf_interval,
zCcApp_DtmfTimer,
NULL);
zte_log_append(__FILE__, __LINE__, "zte_ccapp.log","%s zCc_DigitsMatchRltProc CreateSoftTimer zCcApp_DtmfTimer\n",__FUNCTION__);
@@ -2186,6 +2190,7 @@
SINT32 chldret = -1;
UINT8 tmpslave = 0;
CHAR voip_status[ZDIAL_NUM_MAX] = {0};
+ char hotline_time[4] = {0};
printf("[ccapp_debug]: Seize State Recv MsgCmd: %d,localtest=%d\n",ptMsgBuf->usMsgCmd,local_test_call_st);
@@ -2591,14 +2596,15 @@
{
if(g_Cc_CallDetail.slaveObj[slave].state == ZCC_S_DT_S)
{
+ cfg_get_item("hotline_time", hotline_time, sizeof(hotline_time));
g_Cc_CallDetail.slaveObj[slave].idle_second++;
- if(g_Cc_CallDetail.slaveObj[slave].idle_second >= 5000/ZCCAPP_TIMER_HOOKOFF_IDLE_INTERVAL)
+ if(g_Cc_CallDetail.slaveObj[slave].idle_second >= atoi(hotline_time) * 2)
{
int rt;
char hotline[ZDIAL_NUM_MAX-1];
memset(hotline, 0, sizeof(hotline));
- rt = cfg_get_item("dialog_hotline_str", hotline, sizeof(hotline)-1);
+ rt = cfg_get_item("hotline_number", hotline, sizeof(hotline)-1);
if(rt!=0 || strlen(hotline)<=0)
{
DeleteSoftTimer(ZCCAPP_TIMER_HOOKOFF_IDLE);