FlexRate Realtime Pricing
The VoicePulse FlexRate realtime pricing program lets you take advantage of the lowest possible
termination rates for your phone calls!
FlexRate is an Asterisk macro which will look up the VoicePulse Connect rate for the number you are trying to dial. The rate will be
passed back to your Asterisk server as a variable, where you can decide what to do based on the result. If our rate is the lowest, send the call through us, otherwise, send it through another provider!
With the VoicePulse FlexRate Macro, you no longer have to download international rate
spreadsheets every month. With just a couple of lines of code in your extensions.conf,
you can look up our rates and make your routing decision in realtime. For
example, if our rate to a country goes up from 3¢/min to 6¢/min, your server will
instantly send calls elsewhere, meaning you don't pay more than expected for the
rest of that month. Conversely, if our rates drop, your Asterisk server instantly
takes advantage of the new rates and begins saving money for you -- automatically!
Best of all, using FlexRate is simple! All it takes is a couple of lines in your extensions.conf:
exten => _1NXXNXXXXXX,1,Set(OTHER_PROVIDERS_FLAT_RATE=0.02)
exten => _1NXXNXXXXXX,2,Macro(voicepulseflexrate,${VOICEPULSE_API_KEY},${EXTEN})
exten => _1NXXNXXXXXX,3,
GotoIf($[${VOICEPULSE_FLEXRATE} > ${OTHER_PROVIDERS_FLAT_RATE}]?outgoing|${EXTEN}|700
exten => _1NXXNXXXXXX,4,Dial(IAX2/VoicePulse/${EXTEN})
exten => _1NXXNXXXXXX,700,Dial(IAX2/SomeOtherProvider/${EXTEN})