CFD to block all calls from a specific area code for 1 extension

vsquare

Platinum Partner
Advanced Certified
Joined
Mar 4, 2025
Messages
5
Reaction score
0
I am trying to create a CFD file for someone who is getting a lot of spam calls all from one area code. Ideally I'd like to identify the caller ID coming in. If its any caller ID other than 732, pass it along normally. If its 732, then offer a prompt saying "If you are a human, press 1". I am trying to set a variable as "SetCallerNumber" with callflow$.SetCallerNumber. Then query the condition to: ""OR(STARTS_WITH(CallerNumber, \"732\"), OR(STARTS_WITH(CallerNumber, \"1732\"), STARTS_WITH(CallerNumber, \"+1732\")))"". In the conditional tree, if its 732, there is a user input with the wav file playing the prompt. If no response, or wrong input, it disconnects the call. If on the catch all true side, it just transfers.

CFD builds it without problem and it loads as a CFA in 3CX, but when I call it, it disconnects the call right away. I does get past the variable, but the condition box disconnects. Attached is a screenshot of the layout. Branch 3 has the OR statement.

1748041361834.png
 
Hi,

This should be manageable from within the User->Call Forwarding->Exceptions panel -> IVR -> ring group. Setting the specific area code/DID to forward to an IVR asking your question and then to a ring group with just this user (sending back to the user directly would just loop back to the exception/IVR).

Best,
K.
 
I am trying to create a CFD file for someone who is getting a lot of spam calls all from one area code. Ideally I'd like to identify the caller ID coming in. If its any caller ID other than 732, pass it along normally. If its 732, then offer a prompt saying "If you are a human, press 1". I am trying to set a variable as "SetCallerNumber" with callflow$.SetCallerNumber. Then query the condition to: ""OR(STARTS_WITH(CallerNumber, \"732\"), OR(STARTS_WITH(CallerNumber, \"1732\"), STARTS_WITH(CallerNumber, \"+1732\")))"". In the conditional tree, if its 732, there is a user input with the wav file playing the prompt. If no response, or wrong input, it disconnects the call. If on the catch all true side, it just transfers.

CFD builds it without problem and it loads as a CFA in 3CX, but when I call it, it disconnects the call right away. I does get past the variable, but the condition box disconnects. Attached is a screenshot of the layout. Branch 3 has the OR statement.

View attachment 47990
Probably your conditions are wrong. Can you show them here? Also, check the 3CXCallFlow.log file enabling verbose logs, so you can see what's going on.
 

Members Online Now

Forum statistics

Threads
111,834
Messages
589,287
Members
164,664
Latest member
dominik.pepel