Can I choose SIP1 or SIP2?

Support zone
Post Reply
Lakewell
Posts: 11
Joined: Sun Feb 21, 2010 8:00 am

Can I choose SIP1 or SIP2?

Post by Lakewell » Sun Mar 07, 2010 9:09 pm

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?

Lakewell
Posts: 11
Joined: Sun Feb 21, 2010 8:00 am

Post by Lakewell » Sun Mar 07, 2010 9:43 pm

I figured it out, I used sip2.sipsorcery.com instead of the ip and all is fine.

czsmith
Posts: 9
Joined: Fri Feb 26, 2010 4:19 am

SIP Settings for server failover

Post by czsmith » Sun Mar 07, 2010 11:23 pm

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.

mel2000
Posts: 184
Joined: Fri Jun 05, 2009 11:27 pm

Post by mel2000 » Mon Mar 08, 2010 1:17 pm

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?

czsmith
Posts: 9
Joined: Fri Feb 26, 2010 4:19 am

Post by czsmith » Mon Mar 08, 2010 1:43 pm

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.

mel2000
Posts: 184
Joined: Fri Jun 05, 2009 11:27 pm

Post by mel2000 » Mon Mar 08, 2010 2:38 pm

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?

reraikes
Posts: 237
Joined: Thu Aug 13, 2009 10:15 pm

Post by reraikes » Mon Mar 08, 2010 3:11 pm

mel2000 wrote:the other is the Sipsorcery Register Contact setting: username@sipsorcery.com. Should that be changed to username@sip1.sipsorcery.com?
Yes

mel2000
Posts: 184
Joined: Fri Jun 05, 2009 11:27 pm

Post by mel2000 » Mon Mar 08, 2010 4:49 pm

That change worked perfectly reraikes. Thank you so much!

czsmith
Posts: 9
Joined: Fri Feb 26, 2010 4:19 am

Post by czsmith » Tue Mar 09, 2010 7:35 pm

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.

mel2000
Posts: 184
Joined: Fri Jun 05, 2009 11:27 pm

Post by mel2000 » Thu Mar 11, 2010 4:47 am

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?

Post Reply