Hi, below is my dial Plan
I am trying to get it so if there is no answer or my internet goes off, all calls are routed via my mobile after 15 sec
but it dont seem to work
any ideas
#Ruby
# Dial Plan Generated by Rubyzard v0.1
# If you need help, please post in our forum under
# the Getting Started section
# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",30)
sys.Dial("+447709144459@Sipgate",15)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("+447709144459@Sipgate",15)
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.
case req.URI.User
when /^00/ then sys.Dial("Sipgate")
when /^01/ then sys.Dial("voiptalk")
when /^02/ then sys.Dial("voiptalk")
when /^03/ then sys.Dial("voiptalk")
when /^04/ then sys.Dial("voiptalk")
when /^05/ then sys.Dial("voiptalk")
when /^06/ then sys.Dial("voiptalk")
when /^07/ then sys.Dial("Sipgate")
when /^08/ then sys.Dial("voiptalk")
when /^09/ then sys.Dial("voiptalk")
else sys.Dial("Sipgate")
end
end
Dial Plan Issue
here is my call log
13:50:43:787: call from sip:07999931496@77.240.48.141:5061 to benwell.
13:50:43:797: Using outbound proxy of 213.200.94.182:5060.
13:50:43:798: Switching sip:benwell@sip.mysipswitch.com:5060->sip:benwell@217.41.235.69:61290 via 213.200.94.182:5060.
13:51:07:002: SwitchCall cancelled by client, cancelling 1 server calls.
13:51:07:004: Cancelling forwarded call leg sip:benwell@217.41.235.69:61290, no response from server has been received so no CANCEL request required.
13:50:43:787: call from sip:07999931496@77.240.48.141:5061 to benwell.
13:50:43:797: Using outbound proxy of 213.200.94.182:5060.
13:50:43:798: Switching sip:benwell@sip.mysipswitch.com:5060->sip:benwell@217.41.235.69:61290 via 213.200.94.182:5060.
13:51:07:002: SwitchCall cancelled by client, cancelling 1 server calls.
13:51:07:004: Cancelling forwarded call leg sip:benwell@217.41.235.69:61290, no response from server has been received so no CANCEL request required.
-
- Posts: 26
- Joined: Thu Feb 26, 2009 12:10 am
Try removing the +44 and replacing the 0 - if you are in the UK the country code is not required for Sipgate anyway. This will also be inline with your outgoing log for 07 numbers. Please let us know when you get it working. Do you have a DID number for Sipgate? If so is it working in MSS? I can't get mine to work.