/operator

Operator for Twilio

Primary LanguagePHPMIT LicenseMIT

Operator for Twilio

A small library I made to blacklist solicitors and forward all other Twilio calls to my cell. It also has whitelist capability, because why not!

See example/operator.php for a sample webhook script to use in your TwiML app.
See .env.example for configuration options (at minimum you will need FORWARD_NUMBER and TWILIO_AUTH_TOKEN)

Logic

If a whitelist file is present in the root directory and not empty, all non-whitelisted numbers will be rejected.
If a blacklist file is present in the root directory and not empty, all blacklisted numbers will be rejected.

Logging

This library will attempt to log all activity to /var/log/twilio.log

Inspiration

License

This library is licensed under the MIT License.