23. Integrating APIBAN
●
Use the API
– Kamailio example
– API documentation on
apiban.org
●
Open Source Client
– Go (or bash)
– Integrates with IPTABLES
github.com/palner/apiban
30. Example
same => n,Log(NOTICE, ${CHANNEL(pjsip,remote_addr)}
just tried to do something bad)
same =>
n,Set(Result=${CURL(http://localhost:8082/blockip/$
{CHANNEL(pjsip,remote_addr)})
same => n,Log(NOTICE, local apiban ${Result})