Softphone with MSS+Voxalot-VM+PaidCalls

Catalog of dial plans
sirmikey1
Posts: 157
Joined: Mon May 25, 2009 11:19 pm

Softphone with MSS+Voxalot-VM+PaidCalls

Post by sirmikey1 » Sun Jun 14, 2009 12:03 am

.

*Edit, Update:

If you are looking for the new SipSorcery Dialplan, mine is here:
https://www.mysipswitch.com/forum/viewt ... =8122#8122

For the *SOON TO BE SHUT DOWN "MYSIPSWITCH" DIALPLAN:
https://www.mysipswitch.com/forum/viewt ... =7751#7751

I WAS basically wanting to fwd free toll-free calls to sipbroker, fwd all
else to voxalot, where voxalot fwds pay calls to betamax. I do not
know how to add sipbroker as a VSP in MSS. Help?

Regards,
Mikey
Last edited by sirmikey1 on Fri Jul 10, 2009 12:47 pm, edited 10 times in total.

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Sun Jun 14, 2009 2:59 am

There are more ways to do this.

Code: Select all

when /^(0044800|0018|0044500|0044808|0049800|0049130|0047800)/ then sys.Dial("${dst:2}@tollfree.sip-happens.com")
or

Code: Select all

when /^(0044800|0018|0044500|0044808|0049800|0049130|0047800)/ then sys.Dial("${dst:2}@sipbroker.com")
thisway you don't need to have made an account for that, but tollfree.sip-happens.com can not be used for peering.
I see you have also a Voxalot account ? this one will also be fine !
just make a speeddial for it.
Or make an anon account for Sipbroker : provider name: SIPBROKER
username: anon and sip server/registar sipbroker.com
further leave empty.

Code: Select all

when /^\*8/ then sys.Dial("${dst:2}@SIPBROKER")
you can test it with *8*011188888 to see if it works.

btw. when you use Voxalot, you can also peer to INUM & ENUM just dial the number without the leading 00's

btw. you don't have to make SIPBROKER register, because it's not used for incoming.
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

sirmikey1
Posts: 157
Joined: Mon May 25, 2009 11:19 pm

Post by sirmikey1 » Sun Jun 14, 2009 1:00 pm

TheFug,

Hello, and many thanks for your support. Added sipbroker VSP as you suggested, now works for SipCodes, speed dial, and specified outgoing calls (toll-free). The server log showed it dialing +1800xxxxxxx, so I made a few changes, posted below:

Code: Select all

    when /^(1800|1808|1866|1877|1888|1500)/ then 
    sys.Dial("${dst:0}@sipbroker.com")
Well, that pretty much covers it, settles me in. Great service and support here; and thanks.

Regards,
Mikey
Last edited by sirmikey1 on Mon Jul 13, 2009 3:02 pm, edited 4 times in total.

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Sun Jun 14, 2009 3:20 pm

Glad to be of help, but i see something, i've never seen before...
when /^(\+18..... this one i dont understand,
could you explane to me, what it does in your case ? the plus sign ?
not asterisk ? There's no plus sign on a phone, used for mobilephone ?
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

sirmikey1
Posts: 157
Joined: Mon May 25, 2009 11:19 pm

Post by sirmikey1 » Sun Jun 14, 2009 5:05 pm

TheFug,

The title of this thread, I'm using a softphone (eyebeam). Ah, the +, thanks for pointing this out, as I was using international call code with voipstunt earlier, need to change the + to 00.

I'm new to all of this, so please bear with me. Is there some way to call my IpKall DID (forwarded to mysipswitch) through SIP, PSTN, or Inum/Enum or something? Through sipbroker or other? Sipbroker's PSTN number listing has no local PSTN number. Any other way to freely call this below from softphone or otherwise?

(Ipkall's conference room):
PSTN:206-333-3333
or 1-206-333-3333

Well, please and thanks,
Mikey

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Sun Jun 14, 2009 9:18 pm

I have also numbers at ipkall, i test them with Skype, i have no landline anymore.
I have also a IP phone, GXP2000, and have put a switch, between my pc and the network connection, on the switch i've connected the IP phone also,
otherwise my internet is gone, when the IP phone resets, for new settings i set.
This way i don't need an extra cable from the router, or put the IP phone between pc and network.
The IP phone is handy to use registrations not switched by Mysipswitch,
to check NAT situations.
It's also handy to have a simple modem (adsl) with only one LAN port,
(which i have) behind that, your ATA with onboard router, and after that, a switch, to extend the number of ports, using more than one router, is tricky,
Although i guess my modem has some rout and firewall functions, everything works fine here.
INUM and ENUM numbers can be used via voxalot, you don't need a prefix/peer code for that.
With Callcentric you must dial 00883..... with INUM(free), with Skype also, but it's not for free, via de Betamax providers it is free ! (also 0083..)
With sipbroker you can dial *013882... for ENUM (bers)
I'm not sure but now, Voxalot has some problems with inum trafic....
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

sirmikey1
Posts: 157
Joined: Mon May 25, 2009 11:19 pm

Post by sirmikey1 » Mon Jun 15, 2009 12:06 am

Fug,
I also have a switch between my pc and internet. Weird, but with no router I can put the modem in the uplink slot and my two pcs in the lan slots, and the first one that comes on gets the internet, shares it out to the other using microsoft internet connection sharing. The thing here, is that I don't need to have both machines running for ICS, it's either/or.

Can you use microsoft internet connection sharing (with two Nics) to use your IP phone on the same IP? no-ip.com allows you to resolve changing IPs, keeps updating. I'm no expert, by the way.

Thanks in Advance,,
Mikey
Last edited by sirmikey1 on Mon Jun 15, 2009 4:05 pm, edited 1 time in total.

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Mon Jun 15, 2009 2:48 pm

Maybe you have an ethernet hub, and not a switch, my switch has only ports,
from 1 to 8....
A hub is not so handy...
http://www.duxcw.com/dcforum/DCForumID2/1423.html
So better replace the hub with a switch,....

That's correct, Sipbroker you cant use for INUM
With Voxalot, you have also a ENUM
it's 8829993XXXXXX where XXXXXX is your Voxalot user number.
(see my previous post)

Check your DCPH, port forwarding, and Firewall settings,
5060 UDP you need to forward for voip
DCPH should only be switched on in one device,
Maybe the config of the IP phone itself is not correct...
Last edited by TheFug on Sun Jul 05, 2009 6:08 pm, edited 1 time in total.
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

sirmikey1
Posts: 157
Joined: Mon May 25, 2009 11:19 pm

Post by sirmikey1 » Sun Jul 05, 2009 4:33 pm

Member RichardTaur just turned me on
to this one, and thought I'd pass it along:

Note: I added these SIP Providers to my SipSorcery Account Setup:
1 sipbroker
2 voipstunt
3 voxalot
4. gizmo5: GoogleVoice's free local telephone number
is forwarded to Gizmo5, and gizmo5 added
here and checked the register checkbox to
make it's calls ring here....
5. SipGate

Code: Select all



#Ruby 
sys.Trace = false 
sys.Log("***LOG MESSAGE FROM RUBY DIALPLAN***") #Return
sys.Log("Received-URI:#{req.URI.User} URI-Length:#{req.URI.User.Length} URI-Host:#{req.URI.Host} From:#{req.Header.From.FromURI.User} name:#{req.Header.From.FromName} ATA-Online:#{sys.IsAvailable().ToString()} Incoming-Call:#{sys.In().ToString()} Outgoing-Call:#{sys.Out().ToString()}") 


# Logic for receiving incoming calls.
     caller = req.Header.From.FromURI.User.to_s 
     if sys.In 


#Reject Certain Callers
     case caller 
#Replace phone1 with 10-11 digit number, add numbers put | with no spacing.
     when /^(phonenumber1|phonenumber2)$/ then
     sys.Log("Rejecting call from #{caller}") 
     sys.Respond(488, "Your call is not welcome") 
#REMOVED ELSE TO ADD MORE


#Forward Certain Callers
#Calls from 0032207123456 or 0207123456 go to provider1 
#Calls from 2225232222 or 5231251111, go to provider2  
#Replace phone1 with 10-11 digit number, add numbers put | with no spacing.
    when /^(0032207123456|0207123456)$/ 
    sys.Log("Forward to provider1") 
    sys.Dial("provider1") 
#Replace phone1 with 10-11 digit number, add numbers put | with no spacing.
  when /^(2225232222|5231251111)$/ 
    sys.Log("Forward to provider2") 
    sys.Dial("provider2") 
  else 


#Default For Incoming Calls
       if sys.IsAvailable() then
       sys.Log(" Accepting call from Primary #{caller}.\t") 
       sys.Log("*****************************************************\n") 
       sys.Dial("#{req.URI.User}@local", 20) #Rings local & registered SIP providers
     else
#Secondary For Incoming Calls
     sys.Log(" Accepting call from Secondary.\t.") 
     sys.Log("*****************************************************\n") 
     sys.Dial("593022@voxalot.com") #Backup voicemail account
   end  #Required
#Last Resort For Incoming Calls
     sys.Respond(480, "Not available")
   end
else


# Logic for routing outgoing calls. 
    caller = req.Header.From.FromURI.User.to_s 
    case req.URI.User 


#Free Toll Free Calling 
#  when /^[1]?(800|808|866|877|888|500)/
#  when /^1(800|808|866|877|888|500)/
    when /^(1800|1808|1866|1877|1888|1500)/ 
    sys.Log(" Dialing Tool-Free #{req.URI.User} through sipbroker service\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("${dst}@sipbroker.com")


#Speed Dials (Dial star+number, star optional on 411 or 911)
    when /^\*305/ 
    sys.Log(" Hold Music via Blueface.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("305@sip.blueface.ie") 
#   when /^\*?411/
    when /^(\*411|411)/
    sys.Log(" 411 Dialing Via Google.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("18004664411@sipbroker.com")
    when /^\*500/ 
    sys.Log(" Voicemail via us.voxalot.com\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("500@us.voxalot.com")
    when /^\*511/ 
    sys.Log(" Central Time Via Darkvoip.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("511@darkvoip.net") 
    when /^\*600/ 
    sys.Log(" Echo Test via us.voxalot.com\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("600@us.voxalot.com")
#   when /^\*?911/
    when /^(\*911|911)/
    sys.Log(" 911 Service vial Voxalot.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("911@us.voxalot.com")

#Service Provider Select  (Dial star+number) 

    when /^\*111/ 
    sys.Log(" Free Tollfree, SipCalls, SipCodes, INUM, ENUM.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("${dst:4}@sipbroker") 

    when /^\*222/ 
    sys.Log(" Free Forwarding, Centralization, SipCalls, etc.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("${dst:4}@sipgate.com") 

    when /^\*333/ 
    sys.Log(" Free Forwarding, Centralization, SipCalls, etc.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("${dst:4}@proxy01.sipphone.com") 

    when /^\*444/ 
    sys.Log(" Free Forwarding, Centralization, SipCalls, etc.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("${dst:4}@sipsorcery") 

    when /^\*555/ 
    sys.Log(" Paid Calls and more.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("${dst:4}@voipstunt") 

    when /^\*666/ 
    sys.Log(" Free Voicemail, Forwarding, SipCalls, SipCodes, INUM, ENUM.\t") 
    sys.Log("*****************************************************\n") 
    sys.Dial("${dst:4}@voxalot") 

   else 

#Reject Certain Dialers
     dialer = req.URI.User 
      case dialer 
#Replace phone1 with 10-11 digit number, add numbers put | with no spacing. 
     when /^(phonenumber1|phonenumber2)$/ then
     sys.Log("Rejecting call to #{dialer}") 
     sys.Respond(488, "Your call is not welcome") 
   else

 #Route Outgoing Via Dialer Length
     dialer_length = req.URI.User.Length.to_s 
     case dialer_length 
     when /^7/ 
     sys.Log("If seven digits, add the 1+area code and dial provider.\t")
     sys.Log("*****************************************************\n") 
     sys.Dial("1225${dst}@voxalot") #replace xxx w/area code 
     when /^10/ 
     sys.Log(" If 10 digits, add the 1 and dial provider.\t") 
     sys.Log("*****************************************************\n") 
     sys.Dial("1${dst}@voxalot") 
     when /^11/ 
     sys.Log(" If 11 digits, dial provider.\t") 
     sys.Log("*****************************************************\n") 
     sys.Dial("voxalot") 
  else 


#All Other Calls Default to:
      sys.Log(" Any other length, dial provider.\t") 
      sys.Log("*****************************************************\n") 
      sys.Dial("voxalot") 
    end 
end
      end 
  end

Last edited by sirmikey1 on Sun Jul 19, 2009 6:35 pm, edited 24 times in total.

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Sun Jul 05, 2009 6:03 pm

And this will bypass your hardware/shered-internet connection problem you have ?
explain !

btw. don't putt too much effort into Mysipswitch, it will be replaced by Sipsorcery :(
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

Post Reply