<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=koi8-r"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:507912464;
mso-list-type:hybrid;
mso-list-template-ids:1078111994 984902926 68747267 68747269 68747265 68747267 68747269 68747265 68747267 68747269;}
@list l0:level1
{mso-level-start-at:113;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:789082262;
mso-list-type:hybrid;
mso-list-template-ids:838518076 68747279 68747289 68747291 68747279 68747289 68747291 68747279 68747289 68747291;}
@list l1:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=RU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi, list.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>We have a problem with loss peers after ‘sip reload’, our configuration: Asterisk 11.6-cert1, SIP realtime peers, sip.conf: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>- rtcachefriends=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>- rtsavesysname=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>- rtupdate=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>- rtautoclear=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>When we do ‘sip reload’ , peers are removing from available.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>Before `sip reload` :<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US>srv-pbx2*CLI> sip show peers<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Name/username Host Dyn Forcerport ACL Port Status Description Realtime<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>303411/303411 172.16.1.12 D 5060 OK (77 ms) Cached RT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>467577/467577 172.16.1.22 D 5060 OK (141 ms) Cached RT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>561871/561871 172.16.1.32 D 5060 OK (7 ms) Cached RT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>sip-proxy2 172.16.1.2 5061 OK (1 ms)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>srv-pbx-in 172.16.1.7 5060 OK (1 ms)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>After `sip reload`:<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: res_config_mysql.c:497 realtime_multi_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sipusers WHERE name LIKE '%' AND callbackextension LIKE '%' ORDER BY name<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: config.c:1650 config_text_file_load: Parsing /etc/asterisk/sip_notify.conf<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> == Parsing '/etc/asterisk/sip_notify.conf': Found<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: chan_sip.c:32383 reload_config: SIP reload_config done...Runtime= 0 sec<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:546 ast_sched_dump: Asterisk Schedule Dump (12 in Q, 623646 Total, 30 Cache, 42 high-water)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:551 ast_sched_dump: =============================================================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:552 ast_sched_dump: |ID Callback Data Time (sec:ms) |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:553 ast_sched_dump: +-----+-----------------+-----------------+-----------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623634 | 0x7f2ebc5415d0 | 0x7f2ea0b95b68 | 000001 : 434169 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623628 | 0x7f2ebc5451c0 | 0x7f2ea0bc5148 | 000004 : 912209 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623639 | 0x7f2ebc5415d0 | 0x7f2ea08a0158 | 000021 : 585476 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623635 | 0x7f2ebc5415d0 | 0x7f2ea0b6bc98 | 000011 : 452094 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623632 | 0x7f2ebc5451c0 | 0x7f2ea0b9b388 | 000017 : 091999 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623643 | 0x7f2ebc5451c0 | 0x2d473d8 | 000055 : 803782 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623511 | 0x7f2ebc527410 | 0x7f2ea0b9b388 | 000266 : 237816 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623640 | 0x7f2ebc5415d0 | 0x7f2ea0baf088 | 000022 : 472571 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623541 | 0x7f2ebc527410 | 0x7f2ea0affa28 | 000650 : 207449 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623600 | 0x7f2ebc527410 | 0x7f2ea0bc5148 | 000794 : 895787 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623638 | 0x7f2ebc5451c0 | 0x7f2ea0affa28 | 000040 : 622455 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:565 ast_sched_dump: |623646 | 0x7f2ebc5451c0 | 0x2d4cee8 | 000055 : 902262 |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: sched.c:568 ast_sched_dump: =============================================================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: chan_sip.c:33170 sip_do_reload: --------------- Done destroying pruned peers<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: chan_sip.c:33185 sip_do_reload: do_reload finished. peer poke/prune reg contact time = 0 sec.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Feb 16 14:30:20] DEBUG[1468]: chan_sip.c:33187 sip_do_reload: --------------- SIP reload done<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>srv-pbx2*CLI> sip show peers<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Name/username Host Dyn Forcerport ACL Port Status Description Realtime<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>sip-proxy2 172.16.1.2 5061 OK (1 ms)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>srv-pbx-in 172.16.1.7 5060 OK (1 ms)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>Is this normal behavior of SIP realtime ?<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:RU'>-----<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:RU'>Igor Pavlov<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>