tim33 wrote:With "sip show peers" my carrier is connected "OK (32ms)". Does this mean they will always send the call to my IP?
Nope. That just means you can send them a packet and receive a response from their sip server. Unrelated to inbound or outbound calls. Just a "yep, they're still there" checker. As such: If the response is ever "Nope! They're gone!" Vicidial will immediately STOP trying to send outbound calls to them. The call will fail without leaving your server. This is designed to allow instant failover based on the "qualify=yes" method for major servers (or those who actually configure failover, of course).
They will always send Inbound to your IP if you meet one of these two criteria:
1) They have a method by which you can specify the IP address to send calls to. Either in a web portal or some other "use this IP" speicification process ... even something like emailing your sales rep. LOL
2) Registration! sip show registry is how you find out if you are successfully registered.
* Note that their internal system determines which route a call will take to get to you. Some carriers use both registration and direct to IP methods and they have controls on their web portal to determine which DID goes to which "route". So this is pretty much reliant upon the methods in use at the carrier.
tim33 wrote:In regards to different IPs and the firewall do you mean my router firewall or a firewall in linux on the Vicidial machine?
Either or both. Both can block and cause problems. It's best to have the Vicidial server directly on the internet with its own public IP address and use the iptables firewall built in to the linux OS. You can also look up Dynamic Good Guys Firewall which has a "get ready to install it, but don't Actually install it" option which can harden your system quite well.
tim33 wrote:I own a run of the mill home router: NetComm NB604N. I have forwarded the ports as below. In point 2 that you made are you implying that I should only have ports open for my carriers IP address?
That would be a good idea. If the calls still work. You'll need all possible IPs from your carrier eventually, that's as good a place as any to put them. Especially if you're familiar with that router's configuration method. Note that any router must have a timeout method for rports/temporary ports/trigger ports (whatever you want to call them). If that timeout is shorter than your registration period ... registration will still be "in effect", but the port will be closed and the call will bounce off your firewall. Setting the firewall timeout value to a higher number or reducing the registration period will often resolve this issue succinctly.
tim33 wrote:Is my setup wildly insecure with no restriction on originating IP?
Yep. If you open ports to "the world", you'll get attacked. Ask anyone. You can get away with it for a day or two. Perhaps a week. But port 22 and 5060 are "known attack vectors". So is port 80, and they'll attack the phpMyAdmin folder there pretty quick.
Dynamic Good Guys is available free on Viciwiki.com. I hope they build it into the Vicibox.com installer eventually.