Speed dial between 2 SS accounts

Getting started with the SIP Sorcery
Post Reply
englen
Posts: 3
Joined: Mon Jul 02, 2012 4:54 pm

Speed dial between 2 SS accounts

Post by englen » Mon Oct 08, 2012 1:50 pm

I have 2 ss accounts. example1@sipsorcery.com and example2@sipsorcery.com.
I want to set up a speed dial '100' on the out dialpan of example1 that calls example2. At the moment I am using:

#Ruby
# Do your OUTGOING call processing customisations here.
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
case req.URI.User
# Speed dials.
when "100" then sys.Dial("example2@sipsorcery.com")
#other
when /^0044/ then sys.Dial("myprovider1")
when /^0046/ then sys.Dial("myprovider2")
else sys.Dial("myprovider1")
end

i cannot see anything wrong with the code but when I dial 100 it just rings and dies.
Error message is:
Dial plan execution exceeded maximum allowed

Any suggestions?

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Speed dial between 2 SS accounts

Post by Aaron » Tue Oct 09, 2012 9:30 am

You should only be getting the "Dial plan execution exceeded maximum allowed" error if you are attempting more than 3 simultaneous dialplan executions. The first thing to check would be the "Incoming Dial Plan" setting on your example2 SIP account. If you don't need an incoming dialplan on that account then you should set it to empty so you don't use up one of your execution slots just to forward calls to your registered bindings which is the default behaviour without an incoming dialplan.

Apart from that if you don't thing you should be hitting the limit of 3 simultaneous dialplans please email me at admin@sipsorcery.com and include your sipsorcery username and I'll take a look.

Post Reply