 macman4hire
join:2009-03-30 Port Saint Lucie, FL
| Dial Plan ? When Using Sip Sorcery For Out Bound Calls
Would some please post an example of their Ruby dial plan for use with sipsorcery.com. I do not have a clear understanding of what information I am to replace with provider1 for outbound calls.
when /^\*1/ then sys.Dial("${dst:2}@provider1") # Forward outgoing calls with a *1 prefix to provider1.
Thanks for the help, macman4hire |
|
 fareedf
join:2008-01-25 Portland, OR
| The easiest way to create dial plan for for mysipswitch/sipsorcery is to use ruby wizard from mysipswitch web page »www.mysipswitch.com/rubyzard.aspx based on on your providers once you are done with wizard copy and past this plan to dial plan at sipsorcery. |
|
 macman4hire
join:2009-03-30 Port Saint Lucie, FL
| reply to macman4hire fareedf I used the ruby wizard and created a dial plan but I still can not dial out. I compared the plan and the providers names appear against the sip providers entered into sipsorcery and they are the same. Maybe I am not dialing out correctly. When I dial out I enter *11860859XXXX to call a CT phone number with the first VoIP service provider. |
|
 fareedf
join:2008-01-25 Portland, OR
| Since I am not sure what kind of ATA you are using and what is the dial plan used on that ATA try to use a softphone and dial your number by adding *1 on front of that number for your 1st provider and see if it successful. If your are able to dial with soft phone then go to your ATA dial plan and backup your dial plan in your notepad and replace it with this universal dial plan ([x*][x*].) after saving this new dial plan in your ATA give it a try. |
|
 macman4hire
join:2009-03-30 Port Saint Lucie, FL | reply to macman4hire Thanks fareedf the info but no go with X-Lite softphone. I will try the universal dial using my Linksys RTP300 and post an update. |
|
 fareedf
join:2008-01-25 Portland, OR
| Here is a dial plan for 3 providers by dialing a prefix *1, *2, *3 you can use appropriate provider, you can add as many provider that you like and copy and past when /^\*x/ then sys.Dial("${dst:2}@providerx") sys.Dial("222-555-1212@provider1",30) is in case your ATA is not connected to sipsorcery or your Internet is down use your mobile phone number after 30 seconds. # SIP tracing : true or false sys.Trace = false it is for sip tracing by changing the statement from false to true and and a valid email address top of the web page you will receive an email with your sip trace route. I hope this dial plan plus explanation get you going.
#Ruby # Dial Plan Generated by Rubyzard v0.1 # If you need help, please post in our forum # »www.mysipswitch.com
# 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("Enter Number@provider1",30) sys.Respond(480, "#{sys.Username} Not available") else sys.Dial("222-555-1212@provider1",30) sys.Respond(480, "#{sys.Username} Not available") end
else # Do your OUTGOING call processing customisations here. case req.URI.User when /^\*1/ then sys.Dial("${dst:2}@provider1") when /^\*2/ then sys.Dial("${dst:2}@provider2") when /^\*3/ then sys.Dial("${dst:2}@provider3") else sys.Dial("provider1") end
end |
|
 macman4hire
join:2009-03-30 Port Saint Lucie, FL
| reply to macman4hire Ok this is where I am at. I am able to call out from my ATA using Sip Sorcery but only when I do not attempt to designate a particular service provider such as *1,*2,*3. When I just dial a U.S number it sends it to the else sys.Dial("provider1") which is what I believe it supposed to do and the call goes through fine. I can not understand why I am still unable to designate a service provider using *X. Here is an example of my attempt to dial out using service provider 1:*11860889XXXX. Once again thanks for all the help! |
|
 fareedf
join:2008-01-25 Portland, OR
1 edit | I forgot to mention that you need to replace your ATA dial plan with ([x*][x*].) in order to properly use the prefix. Now within Sipsorcery dial plan control panel show your plan and if you have the default which I believe it was blank needs to be deleted and replace by the above dial plan. If you dial without prefix and your call go through it is more likely you are using default sipsorcery dial plan provided. |
|
 patnitop
join:2005-02-22 USA
| reply to macman4hire Change ATA dial plan before using SipSorcery or Mysipswitch
Because of the lack of readily available information on how to setup an ATA with Mysipswitch or Sipsorcery, I think it becomes pretty difficult for an average user to properly take advantage of Mysipswitch services.
As Fareedf pointed out, before you can use Mysipswitch or Sipsorcery, you have to FIRST change the dial plan in your ATA to ([x*][x*].) As far as I know this is a GENERIC dial plan which causes the ATA to pass the digits entered to the SIP provider without processing it in anyway. This is where Mysipswitch or Sipsorcery's dial plan comes into play.
I figured it the hard way too and had to look up countless tech articles before landing up with this info. |
|
 emoci
join:2007-05-29 York, ON
| said by patnitop :Because of the lack of readily available information on how to setup an ATA with Mysipswitch or Sipsorcery, I think it becomes pretty difficult for an average user to properly take advantage of Mysipswitch services. As Fareedf pointed out, before you can use Mysipswitch or Sipsorcery, you have to FIRST change the dial plan in your ATA to ([x*][x*].) As far as I know this is a GENERIC dial plan which causes the ATA to pass the digits entered to the SIP provider without processing it in anyway. This is where Mysipswitch or Sipsorcery's dial plan comes into play. I figured it the hard way too and had to look up countless tech articles before landing up with this info. There is a good chunk of documentation on MySipSwitch here »www.mysipswitch.com/forum/viewto···hp?t=139
SipSorcery is still relatively new at the moment...although most of the MSS info above continues to apply... |
|
 patnitop
join:2005-02-22 USA
| reply to macman4hire Change ATA dial plan when using Mysipswitch
The dial plan suggested on the thread www.mysipswitch.com/forum/viewto···hp?t=139 suggested the dial plan to be ([*x][*x].) Fareedf suggested the dial plan to be ([x*][x*].) which is what Voxalot recommends too.
Which one is right ([*x][*x].) or ([x*][x*].) ? |
|
 PX Eliezer Premium join:2008-08-09 New Jersey | They are the same. |
|
 patnitop
join:2005-02-22 USA 1 edit | reply to macman4hire Thanks PX Eliezer. I am sure this info will be helpful to users who would like to use Mysipswitch or Sipsorcery. |
|