- Joined
- Aug 18, 2021
- Messages
- 53
- Reaction score
- 10
Hello all,
I have a few problems with my call flow:
I want the customer to enter a 6 digit PIN and then be handled accordingly. If the verification via the https POST request is correct, he should be forwarded to a call group and if the entry is incorrect, he should get 2 more chances until he hangs up.
The login first gets the PIN via the external datasource as POST and checks it for 6 digits, if correct, it should be validated and the result, true or false, is stored in a variable, which is compared with isSuccess or error. Then it is looped or forwarded.
My problem is that as soon as the first digit is entered, the query is executed directly and this is obviously wrong. Only the direct input is checked, why?
My https request goes to my RestAPI and is compared internally so that a simoples true or false is given as a boolean response.
V20 Update2
log file:
Do you have any suggestions as to what could be wrong here?
Thank you very much
I have a few problems with my call flow:
I want the customer to enter a 6 digit PIN and then be handled accordingly. If the verification via the https POST request is correct, he should be forwarded to a call group and if the entry is incorrect, he should get 2 more chances until he hangs up.
The login first gets the PIN via the external datasource as POST and checks it for 6 digits, if correct, it should be validated and the result, true or false, is stored in a variable, which is compared with isSuccess or error. Then it is looped or forwarded.
My problem is that as soon as the first digit is entered, the query is executed directly and this is obviously wrong. Only the direct input is checked, why?
My https request goes to my RestAPI and is compared internally so that a simoples true or false is given as a boolean response.
V20 Update2
log file:
Code:
2024/07/23 11:08:59.088|0005|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-Stop current prompt playback
2024/07/23 11:08:59.088|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - Callflow - OnPromptPlayed for component 'mainMenu'
2024/07/23 11:08:59.088|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - CallFlow.CFD.MenuComponent 'mainMenu' - No more files to play, setting up timer to wait for DTMF input during 60000ms...
2024/07/23 11:08:59.090|0005|Info| ScriptRunner.ScriptRunner-CallStorageSize=1(1)
2024/07/23 11:08:59.090|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - Callflow - OnDTMFReceived for component 'mainMenu' - Digit: '9'
2024/07/23 11:08:59.090|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - CallFlow.CFD.MenuComponent 'mainMenu' - Digit detected: '9' - canceling timer
2024/07/23 11:08:59.090|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - CallFlow.CFD.MenuComponent 'mainMenu' - Digit '9' is invalid, repeating menu...
2024/07/23 11:08:59.090|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - PromptQueue - Start playing file: /var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_wrong_input.wav
2024/07/23 11:08:59.090|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - PromptQueue - Start playing file: /var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_enter_pin.wav
2024/07/23 11:08:59.090|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-/var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_wrong_input.wav
/var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_enter_pin.wav
2024/07/23 11:09:02.930|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - Callflow - OnPromptPlayed for component 'mainMenu'
2024/07/23 11:09:02.930|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - CallFlow.CFD.MenuComponent 'mainMenu' - No more files to play, setting up timer to wait for DTMF input during 60000ms...
2024/07/23 11:09:02.930|0005|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-Stop current prompt playback
2024/07/23 11:09:02.931|0005|Info| ScriptRunner.ScriptRunner-CallStorageSize=1(1)
2024/07/23 11:09:02.931|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - Callflow - OnDTMFReceived for component 'mainMenu' - Digit: '9'
2024/07/23 11:09:02.931|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - CallFlow.CFD.MenuComponent 'mainMenu' - Digit detected: '9' - canceling timer
2024/07/23 11:09:02.931|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - CallFlow.CFD.MenuComponent 'mainMenu' - Digit '9' is invalid, repeating menu...
2024/07/23 11:09:02.931|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - PromptQueue - Start playing file: /var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_wrong_input.wav
2024/07/23 11:09:02.931|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-From script: support_callflow - CallID f48dd9de90010000_2 - PromptQueue - Start playing file: /var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_enter_pin.wav
2024/07/23 11:09:02.931|0009|Trac| CallPair._support_callflow_1.Main.5.[C:2.3]-/var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_wrong_input.wav
/var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/support_callflow/converted_enter_pin.wav
2024/07/23 11:09:42.771|0005|Info| ScriptRunner.ScriptRunner-removeConnection on handled DN (L4C1BaWCGXTz3yDtKJq_-g..077b37c15 on 5(C:2.3)
2024/07/23 11:09:42.771|0005|Info| ScriptRunner.ScriptRunner-Removed CallID mapping on terminated connection for SIP dialog L4C1BaWCGXTz3yDtKJq_-g..077b37c15
2024/07/23 11:09:42.771|0005|Info| ScriptRunner.ScriptRunner-Call 2 has been removed
Do you have any suggestions as to what could be wrong here?
Thank you very much
Attachments
-
issuccess.png32.3 KB · Views: 8 -
login.png139.7 KB · Views: 7 -
loop.png41.8 KB · Views: 6 -
main.png87.2 KB · Views: 6 -
mainprop.png18.7 KB · Views: 6 -
result of validate.png35.4 KB · Views: 7 -
validatehttpprop.png42.4 KB · Views: 6 -
validate.png139.7 KB · Views: 6 -
user input prop.png115 KB · Views: 6 -
iserror.png39 KB · Views: 8
Last edited: