Using SipGate to set up a BANANAPHONE!

by @edent | # # # # # # | 3 comments | Read ~131 times.

Like many of you, I'm inundated with spam calls. I've suffered endless car accidents, my National Insurance Number has been suspended multiple times, and my broadband will be cut off imminently. Wouldn't be nice to screen out all the fraudsters?

So I've set up a Bananaphone. When people ring me, they get 30 seconds of my favourite song. Then the call is passed to me. The theory being that my friends get to enjoy a short ditty but con artists are likely to hang up before the call connects to me.

As detailed in last year's blog, I've set my Android phone up to make and receive SIP calls. I use the SipGate service which, as well as being cheap, has a nifty API.

It's a pretty simple service to set up. Once you've signed up and activated the developer package, set up a webhook:

A developer console.

Give it a URL which spits out this bit of XML:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
   <Play>
      <Url>https://example.com/banana.wav</Url>
   </Play>
</Response>

There are a bunch of examples in a variety of language.

The WAV file has some specific format requirements. Specifically, it needs to be an 8kHz 16bit PCM WAV file.

And... that's it! It's a bit early to say whether it has eliminated spammers (or turned off legitimate callers). I might go a bit further and change this to a recording which says "This call is protected by spam guard. Press 1 to be connected." But this is a quick, easy, and fun solution.

3 thoughts on “Using SipGate to set up a BANANAPHONE!

  1. Beko Pharm says:

    Hahahaha, that’s pure evil. I love it. 💍💍🍌☎

  2. Neil Brown says:

    I use a pre-call announcement on some numbers, and since I’ve put it in place, zero spam calls have come through to me.

    I wish I could do it on my mobile, and I’ve thought about rerouting it to make it possible (but ruled that out).

  3. You could make the "press 1 to be connected" announcement over a bed of Bananphone, that would be slick!


Leave a Reply

Your email address will not be published. Required fields are marked *