[asterisk-dev] Best keepalive for peers

Catalin S. jonsonplayer at gmail.com
Sat Oct 15 12:49:34 CDT 2011


Hello,

I have asterisk 1.8.7.0 version and approx 85 peers on it with 45 always
connected peers. Can someone tell me what are the best keep alive settings
for keeping my peers up?
When i look in my /var/log/asterisk/messages i see the following messages:

[Oct 15 20:30:04] NOTICE[28638] chan_sip.c: Peer '2006' is now Reachable.
(1ms / 200ms)
[Oct 15 20:30:04] NOTICE[28638] chan_sip.c: Peer '3002' is now Reachable.
(1ms / 200ms)
[Oct 15 20:30:05] NOTICE[28819] chan_sip.c: Peer '1010' is now Reachable.
(1ms / 200ms)
[Oct 15 20:30:30] NOTICE[28638] chan_sip.c: Peer '3002' is now Lagged.
(234ms / 200ms)
[Oct 15 20:30:40] NOTICE[28638] chan_sip.c: Peer '2006' is now Lagged.
(259ms / 200ms)
[Oct 15 20:30:40] NOTICE[28638] chan_sip.c: Peer '3002' is now Reachable.
(156ms / 200ms)
[Oct 15 20:30:49] NOTICE[28638] chan_sip.c: Peer '2012' is now Lagged.
(283ms / 200ms)
[Oct 15 20:30:55] NOTICE[28638] chan_sip.c: Peer '3002' is now Lagged.
(234ms / 200ms)
[Oct 15 20:30:59] NOTICE[28638] chan_sip.c: Peer '2012' is now Reachable.
(180ms / 200ms)
[Oct 15 20:32:10] NOTICE[28638] chan_sip.c: Peer '3002' is now Reachable.
(153ms / 200ms)
[Oct 15 20:32:10] NOTICE[28819] chan_sip.c: Peer '1010' is now Lagged.
(233ms / 200ms)
[Oct 15 20:32:10] NOTICE[28638] chan_sip.c: Peer '1011' is now Lagged.
(233ms / 200ms)
[Oct 15 20:32:10] NOTICE[28638] chan_sip.c: Peer '1020' is now Lagged.
(238ms / 200ms)
[Oct 15 20:32:10] NOTICE[28638] chan_sip.c: Peer '2012' is now Lagged.
(236ms / 200ms)
[Oct 15 20:32:17] NOTICE[28638] chan_sip.c: Peer '1020' is now Reachable.
(199ms / 200ms)
[Oct 15 20:31:12] NOTICE[28638] chan_sip.c: Peer '1011' is now Reachable.
(192ms / 200ms)
[Oct 15 20:31:20] NOTICE[28638] chan_sip.c: Peer '3002' is now Lagged.
(234ms / 200ms)
[Oct 15 20:31:30] NOTICE[28638] chan_sip.c: Peer '3002' is now Reachable.
(156ms / 200ms)

All extensions from time to time will pass from reachable to lagged ,
unreachable, offline a while and back to reachable again after few seconds.
I wish to keep all my extensions connected all the time and avoid
offline/unreachable status.
For the moment i use the following registration status:

Reg. min duration       60 secs
Reg. max duration:      3600 secs
Reg. default duration:  120 secs
Outbound reg. timeout:  20 secs
Outbound reg. attempts: 0
Session Timers:         Accept
Session Refresher:      uas
Session Expires:        1800 secs
Session Min-SE:         90 secs
Timer T1:               500
Timer T1 minimum:       100
Timer B:                32000
No premature media:     No
Max forwards:           70
RTP Keepalive:          0 (Disabled)
RTP Timeout:            0 (Disabled)
RTP Hold Timeout:       0 (Disabled)

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111015/00213101/attachment.htm>


More information about the asterisk-dev mailing list