I'm investigating using this dial plan.
I want to incorporate additional functionality as follows:
Test for VSP availabilty and fallback to a second vsp if required.
- Would vsp1.isAvailable() determine VSP availability?
-- vsp1="provider1" vsp2="provider2 etc
- the intent would be to automatically fallback to vsp2 if vsp1 not available
-- via case construct
- code would be placed immediately before the below
thanks for any advice to get me started
# Speeddial = { "0" => "
303@sip.blueface.ie", "1" => "**
500@voxalot.com" }
Speeddial = {
"9901" => "
613@fwd.pulver.com", # Echo test USA
"9949" => "
enum-echo-test@sip.nemox.net", # Echo test Germany
"9944" => "sip:
904@mouselike.org", # Call quality test UK
"303" => "
303@sip.blueface.ie", # Calls speaking time @ blueface
"612" => "
612@fwd.pulver.com" # Calls speaking time @ pulver
}
# Providers table.
#
# Syntax: "Key" => "[Prefix]@Provider"
#
# Where:
# Key A single digit, 0 being the default.
# Prefix Optional prefix that needs to be added to the dialed number.
# Provider Provider by name, as listed in MySipSwitch configuration.
#
# You can override the provider by dialing a number with the prefix *1 and then
# the key. For example:
#
# *1412125553456 dials 12125553456 using the provider at key 4
#
# VSPtable = { "0" => "@ provider1", "1" => "@ provider2" }
VSPtable = {
"0" => "00@futurenine", # default provider (prefix numbers with 00)
"1" => "02@futurenine", # Future Nine grey route
"2" => "03@futurenine", # Future Nine white route
"3" => "04@futurenine", # Future Nine premium route
"4" => "*@voxalot", # voxalot (prefix with '*')
"5" => "@example" # Example provider, without prefix