Page 1 of 1

Can I choose SIP1 or SIP2?

Posted: Sun Mar 07, 2010 9:09 pm
by Lakewell
SIP1 is giving me problems this weekend so I decided to go into my router and specify 174.129.234.254 (SIP2) as the proxy, but it is not connecting. Is this possible, or should I just specify the proxy as sipsorcery.com and let it do its thing?

Posted: Sun Mar 07, 2010 9:43 pm
by Lakewell
I figured it out, I used sip2.sipsorcery.com instead of the ip and all is fine.

SIP Settings for server failover

Posted: Sun Mar 07, 2010 11:23 pm
by czsmith
Today, when sip1 was not responding, you could have set your proxy to sip2.sipsorcery.com.

A better way, however, is to use the mechanism built in to DNS. In your gateway (phone? I have two PAP2T's):

1. Set USE DNS SRV to YES.
2. Set DNS SRV Auto Prefix to YES.

That was enough to work. I have also seen a suggestion that you might want to set the "Proxy Redundancy Method" to "Based on SRV port".

That was enough to survive the outage today.

Posted: Mon Mar 08, 2010 1:17 pm
by mel2000
I don't own a PAP2 and don't know of an alternative way to specify multiple proxy addresses. However, when I entered sip1.sipsorcery.com into the proxy field I couldn't receive any calls to my phone. When I changed the proxy back to sipsorcery.com everything worked. Is sip1.sipsorcery.com a valid proxy address?

Posted: Mon Mar 08, 2010 1:43 pm
by czsmith
What software/device are you using to access SS?

There are apparently two servers, sip1.sipsorcery.com and sip2.sipsorcery.com. You can check their status by going to thispage.

If you put either as your proxy, you will go only to that server. If down, you're just out of luck.

If you enable DNS SRV and give sipsorcery.com as the proxy, your software will query DNS for SRV records for udp/sip and sipsorcery will reply with both sip1 and sip2. Your software is then able to try either and settle on one which is working.

If you do not enable DNS SRV, you'll most likely end up connected to sip1, since sipsorcery.com and sip1.sipsorcery.com resolve to the same address.

Posted: Mon Mar 08, 2010 2:38 pm
by mel2000
Thanks for the reply czsmith. I use the DLink DPH-541 WiFi phone as my ATA. Unfortunately it does not have a DNS SRV setting that I know of. I was just curious as to why setting the proxy address to sipsorcery.com worked but sip1.sipsorcery.com did not.

Now that I think of it, there are two places to set the proxy address for Sipsorcery. One is the proxy address on the ATA SIP configuration, the other is the Sipsorcery Register Contact setting: username@sipsorcery.com. Should that be changed to username@sip1.sipsorcery.com?

Posted: Mon Mar 08, 2010 3:11 pm
by reraikes
mel2000 wrote:the other is the Sipsorcery Register Contact setting: username@sipsorcery.com. Should that be changed to username@sip1.sipsorcery.com?
Yes

Posted: Mon Mar 08, 2010 4:49 pm
by mel2000
That change worked perfectly reraikes. Thank you so much!

Posted: Tue Mar 09, 2010 7:35 pm
by czsmith
Looks like a nice device..

If you can set up multiple profiles, you may want to set one up for sip1.sipsorcery.com and a backup one for sip2.sipsorcery.com. That way you have a ready alternative if sip1 is down.

Posted: Thu Mar 11, 2010 4:47 am
by mel2000
Thanks for the idea czsmith, but in addition to switching my sip account, wouldn't I have to create a new sip config in Sipsorcery using sip2 as the register contact? Wouldn't I have to set up another Sipsorcery account to do that?