Quote:
Originally Posted by chatalot
I have now stopped registering us.voxalot.com with pbxes as desribed above as a fallback route to my landline. It was answering all my incoming calls with "All circuits are busy now - please try later" message.
I now need to be able to route to my landline reliably when my internet connection goes down or route to my voxalot PAP2 and landline together. Any chance of this voxalot or does anyone know another way to get it to work?
|
It is possible with Mysipswitch using a Ruby command:
Quote:
bool sys.IsAvailable() - Is used to check whether the dial plan owner's account has a SIP account online. The function returns true if there is a current binding and false otherwise.
-----------
#Ruby dialplan example for sys.IsAvailable()
sys.Log("call received uri=#{req.URI.User} from #{req.Header.From.FromURI.User}")
sys.Log("isavailable=#{sys.IsAvailable().ToString( )}.")
if sys.IsAvailable()
sys.Dial("me@local")
else
sys.Dial("mylandline@provider")
end
|