If you're having the same trouble with all PennyTel accts then chances are something changed in the sort of registration PennyTel tolerates...
The next thing to try:
-In MSS register each PennyTel provider to MySipSwitch (fill the contact field with
user@sip.mysipswitch.com instead of your VoXalot SIP URI)
-Second add this dial plan to each MSS acct (modifying the VoXalot SIP URI as needed):
Quote:
#Ruby
sys.log("***Starting New Call Event***")
#********Incoming Calls********
if sys.In then
sys.log("***Incoming Call Starting***")
sys.log("Incoming Call From #{req.Header.From.FromName} at #{req.Header.From.FromURI.User}@#{req.Header.From. FromURI.Host}")
sys.log("Call is for #{req.URI.User}")
cid = req.Header.From.FromURI.User
trunk = req.URI.User
sys.log("*** CID: #{cid} | Trunk: #{trunk} ***")
#****Have Calls Ring ATA or Forward if Offline****
sys.Log("Accepting Call")
if sys.IsAvailable() then
sys.Log("The ATA is online.")
sys.Dial("local")
else
sys.Log("The ATA is off-line.")
sys.Dial("123456@voxalot.com")
end
else
#********Outgoing Calls********
sys.log("***Outgoing Call Starting***")
sys.Dial("local")
end
|
This accomplishes the same thing that you were doing till now, but now PennyTel is registering and sending calls to the same server...while the dial plan is doing the forwarding to VoXalot...and even if it doesn't help now you'll at least see call logs if you set sys.Trace = true which may help further to figure things out...