WaitForSilence is working for one service provider and not working for remaining service providers

Hi all,

WaitForSilence is working for one service provider and not working for remaining service providers.

Regards,
Nani

Does it fail to indefinite wait or fail to no wait?

Do both providers send silence or does one send nothing?

Hi David,

Thanks.

I am getting IVR after answering the call for one service provider but remaining service providers it’s starting before answering the call.

Please find the below logs for working and not working scenarios.

Not working logs:

DAHDI/3-1 answered
– Executing [s@IVR:1] Set(“DAHDI/3-1”, “ODBC_SAVE_CDR()=,”) in new stack
[Feb 23 18:52:08] WARNING[9504][C-00000006]: func_odbc.c:476 execute: SQL Execute returned an error -1: 42000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.73]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘,)’ at line 1 (204)
[Feb 23 18:52:08] WARNING[9504][C-00000006]: func_odbc.c:485 execute: SQL Exec Direct failed (-1)![INSERT INTO CDR_Report VALUES (,)]
– Executing [s@IVR:2] AMD(“DAHDI/3-1”, “”) in new stack
– AMD: DAHDI/3-1 9010012162 (N/A) (Fmt: ulaw)
– AMD: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [2] silenceThreshold [256] maximumWordLength [5000]
– AMD: Channel [DAHDI/3-1]. Changed state to STATE_IN_SILENCE
– AMD: Channel [DAHDI/3-1]. Word detected. iWordsCount:1
– AMD: Channel [DAHDI/3-1]. Detected Talk, previous silence duration: 2160
– AMD: Channel [DAHDI/3-1]. Changed state to STATE_IN_SILENCE
– AMD: Channel [DAHDI/3-1]. Detected Talk, previous silence duration: 180
– AMD: Channel [DAHDI/3-1]. Word detected. iWordsCount:2
– AMD: Channel [DAHDI/3-1]. Changed state to STATE_IN_SILENCE
– AMD: Channel [DAHDI/3-1]. HUMAN: silenceDuration:800 afterGreetingSilence:800
– Executing [s@IVR:3] GotoIf(“DAHDI/3-1”, “1?humn:mach”) in new stack
– Goto (IVR,s,15)
– Executing [s@IVR:15] WaitForSilence(“DAHDI/3-1”, “1000”) in new stack
– Waiting 1 time(s) for 1000ms of silence with 0s timeout
– Exiting with 1000ms of silence >= 1000ms required
– Executing [s@IVR:16] BackGround(“DAHDI/3-1”, “./custom/Main_Menu”) in new stack
– <DAHDI/3-1> Playing ‘./custom/Main_Menu.gsm’ (language ‘en’)

Working logs:

DAHDI/3-1 answered
– Executing [s@IVR:1] Set(“DAHDI/3-1”, “ODBC_SAVE_CDR()=,”) in new stack
[Feb 23 18:55:55] WARNING[9734][C-00000001]: func_odbc.c:476 execute: SQL Execute returned an error -1: 42000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.73]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘,)’ at line 1 (204)
[Feb 23 18:55:55] WARNING[9734][C-00000001]: func_odbc.c:485 execute: SQL Exec Direct failed (-1)![INSERT INTO CDR_Report VALUES (,)]
– Executing [s@IVR:2] AMD(“DAHDI/3-1”, “”) in new stack
– AMD: DAHDI/3-1 9110578944 (N/A) (Fmt: ulaw)
– AMD: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [2] silenceThreshold [256] maximumWordLength [5000]
– AMD: Channel [DAHDI/3-1]. Changed state to STATE_IN_SILENCE
– AMD: Channel [DAHDI/3-1]. Word detected. iWordsCount:1
– AMD: Channel [DAHDI/3-1]. Detected Talk, previous silence duration: 2420
– AMD: Channel [DAHDI/3-1]. ANSWERING MACHINE: voiceDuration:1500 greeting:1500
– Executing [s@IVR:3] GotoIf(“DAHDI/3-1”, “0?humn:mach”) in new stack
– Goto (IVR,s,4)
– Executing [s@IVR:4] WaitForSilence(“DAHDI/3-1”, “1000”) in new stack
– Waiting 1 time(s) for 1000ms of silence with 0s timeout

After this call is waiting till end user answers the call and then it’s waiting for 1000 ms to play the IVR.

Regards,

Nani