Mass telephone calls with sipgate.io

With sipgate .io S ipgate has created an exciting cloud API which offers a wide range of possibilities around internet telephony. One account is free of charge, and in the Feature Store you can set any free sender number. The documentation of sipgate.io is still expandable, but with a little bit of reading into the official Sipgate API you can quickly realize exciting things.


In the following code we realize the following behavior: For test purposes we call a dozen telephone numbers one after the other to play an audio file and then put it back on again.

2e92bf96cdada9545cb8525ec68a7d6b

The PHP extension XML-RPC must be installed. The calls are now made - in order to play the audio file, we enter a trigger URL in the Sipgate backend for the outgoing calls (when we call ourselves) and for the incoming calls (should someone call back) and activate the debug -Log:

Mass telephone calls with sipgate.io

Now we are preparing an audio file (which according to the documentation must be available as a mono 16bit PCM WAV file). To do this, we throw ffmpeg to convert an MP3 file into the desired format:

2e92bf96cdada9545cb8525ec68a7d6b

Now we load this WAV file together with the following XML script to https://www.tld.com/sipgate:/

2e92bf96cdada9545cb8525ec68a7d6b

If you want to vary with the audio files, it is recommended to always use a new file name (sound-v*.wav) for cache reasons.

Parallel calls are possible (according to the official statement from Sipgate there is a limitation of 5 simultaneous connections, but I was able to establish more), here you should then adjust something on the sleep value.

Back