Screen Robo Calls to an Extension

Status
Not open for further replies.

KonradSC

Active Member
Mar 10, 2017
166
99
28
We have known for a while that an easy way to screen robo calls is to answer the call with an IVR. Most automated calling systems don't know to press a digit to connect to the appropriate callee. Only a real person will know to do this. In this example i've replaced the call_screen dialplan step with something custom. This will prompt the caller to press 1 to continue. If 1 is not pressed, the call will hangup.

1. Disable dialplan #880, call_screen.

2. Add this new dialplan step with order #880.
Code:
    <condition field="${call_screen_enabled}" expression="^true$"/>
    <condition field="${call_direction}" expression="^inbound$">
        <action application="set" data="playback_delimiter=!"/>
        <action application="set" data="playback_sleep_val=500"/>
        <action application="answer" data=""/>
        <action application="sleep" data="1000"/>
        <action application="play_and_get_digits" data="1 1 2 5000 # file_string://voicemail/vm-continue.wav!voicemail/vm-press!digits/1.wav silence_stream://250 res \d+ 1 XML hangup"/>
    </condition>

3. Go to an extension and set call_screen=true.
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
Can you check your code if it's compatible with version 5.0? It just repeats "To continue press 1" and disconnects even if 1 is pressed.
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
Can anyone help? I changed the code as described above and it prompts for the digit 1 when I enable call screening but when I press the 1 it is ignored and the call disconnects. There must be something off on the last line of the code.
 
Status
Not open for further replies.