Page 1 of 1

carrier randomly becomes unreachable

PostPosted: Mon Feb 25, 2013 7:09 pm
by B.lee2
Today, I noticed that my carriers become randomly unreachable.

I tried to put qualify = no, but it doesn't make a difference (only difference it makes is that in the CLI, it will attempt to dial, but nada). It can ping the carrier just fine, which is strange.

I just switched router to a D-link N150 recently,I am behind a NAT, is there anything I should for?

Re: carrier randomly becomes unreachable

PostPosted: Mon Feb 25, 2013 10:10 pm
by B.lee2
Could this be the culprit?

http://www.voip-info.org/wiki/view/Routers+SIP+ALG

It sure is strange, I know my new router has this feature but I have no idea why it would work 80% of the time and break the remaining 20

EDIT: It makes no sense, it can`t be it, why would it break 20% of the time only???

Re: carrier randomly becomes unreachable

PostPosted: Tue Feb 26, 2013 11:24 am
by B.lee2
Im starting to think that the DIR601 I am using is crap and the solution is to return it to the store

Re: carrier randomly becomes unreachable

PostPosted: Tue Feb 26, 2013 12:01 pm
by B.lee2
OK, I disabled the "SPI" setting and enabled the "SIP ALG" setting in the firewall tab of the router. It works so far.

Hopefully it's not just coincidence and that was actually the solution but I'll see how it goes.

Re: carrier randomly becomes unreachable

PostPosted: Tue Feb 26, 2013 2:57 pm
by B.lee2
Ok it's not it, it just randomly became unreachable again

Re: carrier randomly becomes unreachable

PostPosted: Wed Feb 27, 2013 8:41 am
by DomeDan
do "sip show peers" in the asterisk CLI a little now and then and check if there is high latency under "status" for the carrier
also find out if its only related to the carrier or if its the whole network that is going down
run mtr or any other tool, point it to any table server like googles dns at 8.8.8.8 and check if you get dropped packages when the carrier goes unteachable

Re: carrier randomly becomes unreachable

PostPosted: Wed Feb 27, 2013 11:34 am
by williamconley
If you lose registration "20% of the time" it is usually because a firewall is closing a port before "re-registration" occurs. Then, when re-registration happens, a new rport is opened to keep the connection alive. Try to reduce your time between registration renewals by 50%.

Re: carrier randomly becomes unreachable

PostPosted: Wed Feb 27, 2013 5:47 pm
by B.lee2
OK I narrowed it down.

Each time ekiga/softphone (sip peer 201) fails or is closed, the carriers invariably becomes unreachable.

I have to turn down the the SIP ALG feature inside the router, and then turn it back up again for it to work.

If you lose registration "20% of the time" it is usually because a firewall is closing a port before "re-registration" occurs. Then, when re-registration happens, a new rport is opened to keep the connection alive. Try to reduce your time between registration renewals by 50%.


How do I do this?

Re: carrier randomly becomes unreachable

PostPosted: Wed Feb 27, 2013 8:51 pm
by williamconley
Play with these values in sip.conf or for these particular sip accounts experiencing the problems:

;maxexpiry=3600 ; Maximum allowed time of incoming registrations
;minexpiry=60 ; Minimum length of registrations/subscriptions (default 60)
;defaultexpiry=120 ; Default length of incoming/outgoing registration

Re: carrier randomly becomes unreachable

PostPosted: Thu Mar 07, 2013 11:13 am
by B.lee2
Ok I halved each value and that doesn't change anything.

Then I halved them again, and it isn't really helping either

Re: carrier randomly becomes unreachable

PostPosted: Thu Mar 07, 2013 12:24 pm
by williamconley
take 'em down to 30 seconds each. as a test.

Re: carrier randomly becomes unreachable

PostPosted: Fri Mar 08, 2013 11:10 am
by B.lee2
Doesn't change anything.

Re: carrier randomly becomes unreachable

PostPosted: Fri Mar 08, 2013 1:02 pm
by williamconley
Perhaps it is new router time. Or you should turn off features in the router that are interfering.