Skip to content

A simple Elixir application to stop unwanted phone calls

Notifications You must be signed in to change notification settings

davec82/stop-unwanted-calls

Repository files navigation

Stop Unwanted Calls

CI Coverage Status

StopUnwantedCalls is a simple Elixir application based on Event Socket Outbound, an implementaion of FreeSWITCH's Event Socket Outbound, used to stop unwanted phone calls.

Getting started

# In your config/config.exs file
config :stop_unwanted_calls,
  socket_port: 8090,
  monkey_scream: "/opt/monkeys.wav",
  endpoint: "user/1001"

where socket_port will be the application listen port, monkey_scream a path to a soundfile to play when you receive a call from a blacklisted number, endpoint a suitable target endpoint for FreeSWITCH bridge app.

Usage

  1. In your FreeSWITCH dialplan define an extension where call control is passed to StopUnwantedCalls application.
<extension name="pstn">
  <condition field="destination_number" expression="12345678">
    <action application="socket" data="127.0.0.1:8090 async full"/>
  </condition>
</extension>
  1. In blacklist.txt add phone numbers that will be blacklisted.

  2. Start StopUnwantedCalls application!

TODO

Add dynamically phone numbers to blacklist.

About

A simple Elixir application to stop unwanted phone calls

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages