Call By FileTxt To Extension

Status
Not open for further replies.

danielino1981

Customer
Basic Certified
Joined
Apr 14, 2021
Messages
33
Reaction score
1
Good morningI need your help with a script I'm trying out.
I downloaded the sample file to call via text file
3cx cfd-demos master samples-OutboundDialerI
Uploaded the file to my server in the path C:\Path\MyFile.txt, but I don't receive any calls
What can I check,
Call flow I don't detect any errors, and the compilation seems to be successful.
Do I need to upload the 3cx log file?
There are a lot of entries, what should I look at?
Search for 3cx call flow?
Thanks for your support.
 
As a first step ensure that the PBX is in verbose and services are restarted.
Then call the CFD extension, leave it running for some time and check the 3CXCallFlow.log
 
Thank you
Where do I find this file3CXCallFlow.log
The 3cx Call Flow service is successfully started
 
Log file found.I'll look into it, thanks
 
at _664_1.Callflow.Dialer.ProcessStart()
2024/03/01 09:17:19.195|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 4 - Dialer - Error handler flow is empty...
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - Dialer - Starting dialer cycle
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - Dialer - Start executing component 'timeChecker'
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - _664_1.Callflow+timeChecker1345446941ECCComponent 'timeChecker' - Start executing external script
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - _664_1.Callflow+timeChecker1345446941ECCComponent 'timeChecker' - End executing component with returnValue: True
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - Dialer - Start executing component 'checkTimeToCall'
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - CallFlow.CFD.ConditionalComponent 'checkTimeToCall' - Evaluating condition for branch 'timeToCall'
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - CallFlow.CFD.ConditionalComponent 'checkTimeToCall' - Condition evaluated to true for branch 'timeToCall', executing inner components
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - CallFlow.CFD.ConditionalComponent 'checkTimeToCall' - Start executing branch 'timeToCall'
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - CallFlow.CFD.SequenceContainerComponent 'timeToCall' - Start executing component 'checkFreeExtensions'
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - _664_1.Callflow+checkFreeExtensions1152882659ECFComponent 'checkFreeExtensions' - Start executing external script
2024/03/01 09:17:25.193|2804|0006|Err|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - Dialer - Error executing last component: System.NullReferenceException: Object reference not set to an instance of an object.
at _664_1.Callflow.ExtensionStateHelper.IsThereAnyFreeExtension()
 
2024/03/01 09:17:25.193|2804|0006|Trc|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - _664_1.Callflow+checkFreeExtensions1152882659ECFComponent 'checkFreeExtensions' - Start executing external script
2024/03/01 09:17:25.193|2804|0006|Err|CallPair._664_1.Callflow.2149.[C:805.2]-From script: OutboundDialer - Dialer 0 - Dialer - Error executing last component: System.NullReferenceException: Object reference not set to an instance of an object.
It seems that is failing to get available extensions
 
I have free extensions, I don't understand the error
 
can you attach the log?
 
Ok
 

Attachments

Your issue is more clear now. It is failing to return a value for the free extension availability:

2024/03/01 09:32:24.974|9424|0007|Err|CallPair._664_1.Callflow.2153.[C:807.2]-From script: OutboundDialer - Dialer 1 - Dialer - Error executing last component: System.NullReferenceException: Object reference not set to an instance of an object.
at _664_1.Callflow.ExtensionStateHelper.IsThereAnyFreeExtension()
at _664_1.Callflow.checkFreeExtensions1528762560ECFComponent.ExecuteCode()
at CallFlow.CFD.ExternalCodeExecutionComponent.ExecuteStart()
at CallFlow.CFD.ExternalCodeExecutionComponent.Start(Dictionary`2 variableMap)
at CallFlow.CFD.SequenceContainerComponent.Start(Dictionary`2 variableMap)

at CallFlow.CFD.ConditionalComponent.Start(Dictionary`2 variableMap)
at _664_1.Callflow.Dialer.ProcessStart()

Ensure that you check the guideline: https://www.3cx.com/docs/cfd-creating-outbound-dialer/
 
  • Like
Reactions: edossantos
As written before. I have queue 803, where I have two free extensions
Basically my script does this It reads the txt file with the numbers, and then forwards the calls to queue 803, where I have two free extensions
I took your Outbound caller file as an example file and modified it according to my needs
 

Attachments

  • 3cx CFD.JPG
    3cx CFD.JPG
    137.1 KB · Views: 8
The C# code is probably checking the status of extensions that don't exist. You should adjust this to your system.
 
Thanks
Setting changed by call not start
024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.SequenceContainerComponent 'timeToCall' - Start executing component 'isThereAnyFreeExtension'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.ConditionalComponent 'isThereAnyFreeExtension' - Evaluating condition for branch 'yesMakeCall'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.ConditionalComponent 'isThereAnyFreeExtension' - Condition evaluated to true for branch 'yesMakeCall', executing inner components
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.ConditionalComponent 'isThereAnyFreeExtension' - Start executing branch 'yesMakeCall'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.SequenceContainerComponent 'yesMakeCall' - Start executing component 'getCallIndex'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - _664_1.Callflow+getCallIndex213508525ECFComponent 'getCallIndex' - Start executing external script
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - _664_1.Callflow+getCallIndex213508525ECFComponent 'getCallIndex' - End executing component with returnValue: 1
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.SequenceContainerComponent 'yesMakeCall' - Start executing component 'readNumberToCall'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.FileManagementComponent 'readNumberToCall' - Start reading file 'C:\Pippo\NumbersToCall.txt'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.FileManagementComponent 'readNumberToCall' - End reading file 'C:\Pippo\NumbersToCall.txt' - eofReached='True' - result:
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.SequenceContainerComponent 'yesMakeCall' - Start executing component 'checkNumberAvailable'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.ConditionalComponent 'checkNumberAvailable' - Evaluating condition for branch 'numberAvailable'
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.ConditionalComponent 'checkNumberAvailable' - Condition evaluated to false for branch 'numberAvailable', skipping branch
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.ConditionalComponent 'checkNumberAvailable' - No branch met the condition, moving to the next component
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - Dialer - Dialer cycle finished
 
which extension do the calls originate from?
 
2024/03/01 14:39:47.525|8812|0016|Trc|CallPair._664_1.Callflow.2204.[C:826.2]-From script: OutboundDialer - Dialer 4 - CallFlow.CFD.FileManagementComponent 'readNumberToCall' - End reading file 'C:\Pippo\NumbersToCall.txt' - eofReached='True' - result:
Looks like you're not getting any number from the text file.

which extension do the calls originate from?
Calls are started by the MakeCall IVR, which will call the origin first, and then transfer the call to the destination.
 
The calls go out but I don't receive any calls

01/03/2024 16:03:06 IVR (MakeCall) XXXXXX [My number]
 

Attachments

  • IVR NOT START.JPG
    IVR NOT START.JPG
    66.3 KB · Views: 8
This is my Outbound rules

Where am I wrong?I tried creating an extension out of the headquarters group, and making a call, and the call works
 

Attachments

  • Outbound Rules.JPG
    Outbound Rules.JPG
    53.7 KB · Views: 7
You need to leave extensions and groups empty in your outbound rule. You can use a prefix if you want.
 
Good morningIf I remove the "headquarters" group the calls don't work
If I create a new account and don't add it to any group, the calls work
What can I do?
 
You should keep your existing outbound rule for regular calls from your staff, and then add another rule for calls from CFD apps.
 
Status
Not open for further replies.

Members Online Now

No members online now.

Forum statistics

Threads
111,843
Messages
589,327
Members
164,679
Latest member
SamadMYK