- Joined
- Sep 4, 2023
- Messages
- 8
- Reaction score
- 0
3CX V20upd4 Windows on-prem, latest CFD 18.5.8
I created a simple application in CFD. It accepts any dialed number on one trunk and makes a transfer to it. In theory, it should go in transit to another trunk in accordance with the outgoing rules in 3CX.
The application consists of two blocks:
1. I assign a value of "session.did" to a variable.
2. I make a transfer to this variable.
(I tried to transfer directly to session.did as well)
I made a custom call proccesing script in 3CX and set it to run upon recieving call on trunk.
The application does not work. The default route for the trunk (AA script) is triggered.
In callflow.log (verbose mode) I can see:
2025/02/21 12:40:01.911|0013|Info| [_3CX.Script] CallFlowCore.BuiltIn.Router.Router.12135.[C:3830.2]-Incoming routing request on behalf of Wexternalline.33: 10000 on Wprovider.3: 172.21.9.2:5060 - CUCM_SUB2
2025/02/21 12:40:01.911|0013|Info| [_3CX.Script] CallFlowCore.BuiltIn.Router.Router.12135.[C:3830.2]-Trunk Wexternalline.33: 10000 on Wprovider.3: 172.21.9.2:5060 - CUCM_SUB2 injects custom script 62798. Trying to execute
2025/02/21 12:40:01.911|0013|Trac| [_3CX.CallPair] CallFlowCore.BuiltIn.Router.Router.12135.[C:3830.2]-Start task for Call(62798, )
2025/02/21 12:40:01.911|0013|Trac| [_3CX.ScriptRunner] Active script instances: 2
2025/02/21 12:40:01.911|0013|Trac| [_3CX.Script] _62798_25.Main.12135.[C:3830.2]-Active - Switching executing mode from Passive to Router
2025/02/21 12:40:01.912|0017|Erro| [_3CX.CallPair] _62798_25.Main.12135.[C:3830.2]-Failed to Start handler _62798_25.Main
2025/02/21 12:40:01.912|0017|Erro| [_3CX.CallPair] _62798_25.Main.12135.[C:3830.2]-Stack rewinding to Router
2025/02/21 12:40:01.912|0017|Info| [_3CX.CallPair] _62798_25.Main.12135.[C:3830.2]-Returning from Main to Router
2025/02/21 12:40:01.912|0017|Trac| [_3CX.Script] _62798_25.Main.12135.[C:3830.2]-Active - Switching executing mode from Wrapup to Main
But when I set my application as Incoming trunk -> Default route -> Script -> 62798 it works as designed!
I created a simple application in CFD. It accepts any dialed number on one trunk and makes a transfer to it. In theory, it should go in transit to another trunk in accordance with the outgoing rules in 3CX.
The application consists of two blocks:
1. I assign a value of "session.did" to a variable.
2. I make a transfer to this variable.
(I tried to transfer directly to session.did as well)
I made a custom call proccesing script in 3CX and set it to run upon recieving call on trunk.
The application does not work. The default route for the trunk (AA script) is triggered.
In callflow.log (verbose mode) I can see:
2025/02/21 12:40:01.911|0013|Info| [_3CX.Script] CallFlowCore.BuiltIn.Router.Router.12135.[C:3830.2]-Incoming routing request on behalf of Wexternalline.33: 10000 on Wprovider.3: 172.21.9.2:5060 - CUCM_SUB2
2025/02/21 12:40:01.911|0013|Info| [_3CX.Script] CallFlowCore.BuiltIn.Router.Router.12135.[C:3830.2]-Trunk Wexternalline.33: 10000 on Wprovider.3: 172.21.9.2:5060 - CUCM_SUB2 injects custom script 62798. Trying to execute
2025/02/21 12:40:01.911|0013|Trac| [_3CX.CallPair] CallFlowCore.BuiltIn.Router.Router.12135.[C:3830.2]-Start task for Call(62798, )
2025/02/21 12:40:01.911|0013|Trac| [_3CX.ScriptRunner] Active script instances: 2
2025/02/21 12:40:01.911|0013|Trac| [_3CX.Script] _62798_25.Main.12135.[C:3830.2]-Active - Switching executing mode from Passive to Router
2025/02/21 12:40:01.912|0017|Erro| [_3CX.CallPair] _62798_25.Main.12135.[C:3830.2]-Failed to Start handler _62798_25.Main
2025/02/21 12:40:01.912|0017|Erro| [_3CX.CallPair] _62798_25.Main.12135.[C:3830.2]-Stack rewinding to Router
2025/02/21 12:40:01.912|0017|Info| [_3CX.CallPair] _62798_25.Main.12135.[C:3830.2]-Returning from Main to Router
2025/02/21 12:40:01.912|0017|Trac| [_3CX.Script] _62798_25.Main.12135.[C:3830.2]-Active - Switching executing mode from Wrapup to Main
But when I set my application as Incoming trunk -> Default route -> Script -> 62798 it works as designed!