View Single Post
Unread 07-05-2008, 01:50 PM   #4
Wortelstok
Junior Member
 
Join Date: Jul 2006
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Wortelstok is on a distinguished road
Default

Quote:
Originally Posted by chatalot View Post
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

Last edited by Wortelstok; 07-05-2008 at 01:53 PM.
Wortelstok is offline   Reply With Quote