working on my script ... I found something you might look at:
I first CHECK if my ATA is online or not using this command:
Code: Select all
if sys.IsAvailable("myaccount", "sipsorcery.com") # If my ATA is registered
Code: Select all
sys.dial("myaccount@sipsorcery.com",45) # forward all incoming calls to it
For IsAvailable, use the SAME format as what I need when issuing the sys.dial command.
"myaccount@sipsorcery.com"
... or just update the DIAL-PLAN help web page