Jump to content

DID Number Manager Cluster


eurovoip

Recommended Posts

15 minutes ago, mc_ said:

You "use" DIDs by assigning them to an account and creating a callflow in the account to run when receiving calls for the DID. There are no zone restrictions on that.

I have 100 DID's not assigned but available in one zone (IP ) and 10 assigned to an account in Kazzo. and one day the zone goes down and the user can connect to zone B only where  those IP's are not even assigned (because they where in assigned to the zone on's IP ). Unfortunately my provider doesn't let me point the DID's individually. 

How can I make sure the DID's will work on any of the two clusters ?! 

Link to comment
Share on other sites

  • 9 months later...
On 2/13/2019 at 6:30 PM, eurovoip said:

I have 100 DID's not assigned but available in one zone (IP ) and 10 assigned to an account in Kazzo. and one day the zone goes down and the user can connect to zone B only where  those IP's are not even assigned (because they where in assigned to the zone on's IP ). Unfortunately my provider doesn't let me point the DID's individually. 

How can I make sure the DID's will work on any of the two clusters ?! 

u normally use srv records in your dns to map a single domainname to multiple ip endpoints (your kazoo installs). If u have different zones and one is unreachable your calls and clients will be automaticly mapped to an other zone. 
If your did provider zallows you to put a domain name as destination u should be fine, if its only an ip address, your provider probably has a fallbasck solution, such as different destination ip addresses as destination.
I hope i understood ur question.

About srv records:
borrowed from https://www.onsip.com/voip-resources/voip-fundamentals/dns-srv-records-sip

 

What are SIP DNS SRV records?

Let’s say your name is Al and you work for a company called Acme Corp. Your company has recently signed up for a corporate VoIP phone system and you’re given a SIP address, Al@acme.com. In an ideal world, your friends and colleagues who are also familiar with VoIP know that they can dial Al@acme.com to reach you wherever you have a device registered.

How does this work?

Dialing by domain names allows you to have a public SIP address that follows you much like your email address would. It doesn’t really matter where you are or what device you use; as long as you’re ‘logged in’ (registered), SIP communications will be redirected to your current location.

A Domain Name Server (DNS) SRV record for SIP does the same thing as a mail exchange record for email. When someone calls you at Al@acme.com, the SRV record tells their SIP phone to do so by connecting to the domain belonging to your VoIP phone system (SIP) provider. This does two things for SIP providers and SIP users:

1. Greater stability

From the RFC:

“The SRV RR allows administrators to use several servers for a single domain, to move services from host to host with little fuss, and to designate some hosts as primary servers for a service and others as backups.”

If for some reason the ‘host’ with the highest priority cannot be reached, the SIP phone or proxy trying to reach the user within the domain will attempt to reach the next host defined within the SRV record.

2. Allows SIP users to get their own domains for their SIP addresses, regardless of the domain of their SIP provider

We refer to this as SIP service or SIP hosting, and it’s a feature of an OnSIP account. OnSIP runs several SIP proxy servers, which can handle SIP users in multiple domains just like a mail server handles e-mail for multiple domains.

SIP DNS SRV record settings

To use OnSIP's SIP hosting, the zone file in the DNS SRV records of the user’s domain (acme.com) needs to point to sip.onsip.com. Calls to the user's domain will then be automatically redirected to an OnSIP SIP proxy. Here is what the DNS SRV record looks like:

  • Service: SIP
  • Protocol: UDP
  • Name: acme.com (your domain name goes here)
  • Priority:
  • Weight:
  • Port: 5060
  • Target: sip.onsip.com
  • TTL: 1 hour

Example DNS SRV record

The following is an SRV DNS Lookup of sip.voice.google.com. As you can see below, the query returns 5 hostnames for inbound SIP traffic to that domain.

Google Voice UDP Record
$ dig _sip._udp.sip.voice.google.com SRV

; <<>> DiG 9.6.0-APPLE-P2 <<>> _sip._udp.sip.voice.google.com SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8463
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 9

;; QUESTION SECTION:
;_sip._udp.sip.voice.google.com.        IN      SRV

;; ANSWER SECTION:
_sip._udp.sip.voice.google.com. 86400 IN SRV    20 1 5060 alt1.voice-sip.l.google.com.
_sip._udp.sip.voice.google.com. 86400 IN SRV    10 1 5060 voice-sip.l.google.com.
_sip._udp.sip.voice.google.com. 86400 IN SRV    50 1 5060 alt4.voice-sip.l.google.com.
_sip._udp.sip.voice.google.com. 86400 IN SRV    30 1 5060 alt2.voice-sip.l.google.com.
_sip._udp.sip.voice.google.com. 86400 IN SRV    40 1 5060 alt3.voice-sip.l.google.com.

;; AUTHORITY SECTION:
google.com.             146471  IN      NS      ns3.google.com.
google.com.             146471  IN      NS      ns2.google.com.
google.com.             146471  IN      NS      ns1.google.com.
google.com.             146471  IN      NS      ns4.google.com.

;; ADDITIONAL SECTION:
alt1.voice-sip.l.google.com. 300 IN     A       74.125.95.192
voice-sip.l.google.com. 300     IN      A       74.125.95.192
alt4.voice-sip.l.google.com. 300 IN     A       74.125.95.192
alt2.voice-sip.l.google.com. 300 IN     A       74.125.95.192
alt3.voice-sip.l.google.com. 300 IN     A       74.125.95.192
ns1.google.com.         342957  IN      A       216.239.32.10
ns2.google.com.         342957  IN      A       216.239.34.10
ns3.google.com.         319271  IN      A       216.239.36.10
ns4.google.com.         342957  IN      A       216.239.38.10

;; Query time: 18 msec
;; SERVER: 207.172.3.8#53(207.172.3.8)
;; WHEN: Fri Mar 11 18:01:49 2011
;; MSG SIZE  rcvd: 494
Link to comment
Share on other sites

×
×
  • Create New...