Asterisk stops listening tcp port randomly

Hello.

I have asterisk and lync integrated and everything seems to be ok. The problem is that randomly asterisk tcp port stops listening connections and it’s not possible to communicate from lync to asterisk (from asterisk to lync is always possible).

This is odd because, without touching anything, the port begins to listen again in a few minutes, hours or days. Also when rebooting asterisk tcp port works fine again.

I’ve tried to look for some similar behaviour in google but found nothing. And, as long as this issue is random, I made a script testing tcp port every minute and storing asterisk log with the time happened. Asterisk has verbosity 9 and log is huge.

Someone has any idea how can I treat this? Or something special I have to look in the log?

This is mi sip general options:

bindport = 5060 bindaddr = 0.0.0.0 tcpbindaddr = 0.0.0.0 tcpenable = yes

And my lync peer definition (it’s a frontend servers pool):

[code][lync_trunk1]
type=friend
port=5060
host=xxx.xxx.xxx.xxx
dtmfmode=rfc2833
context=from-lync
qualify=yes
transport=tcp
disalow=all
allow=alaw
allow=ulaw

[lync_trunk2]
type=friend
port=5060
host=xxx.xxx.xxx.xxx
dtmfmode=rfc2833
context=from-lync
qualify=yes
transport=tcp
disalow=all
allow=alaw
allow=ulaw
[/code]

Thanks you in advance.

[size=150]Edit: [/size]

I found this message in the log:

156826 times in two seconds!