<br><br><div class="gmail_quote">2013/1/25 Dan Journo <span dir="ltr">&lt;<a href="mailto:dan@keshercommunications.com" target="_blank">dan@keshercommunications.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div><div><div class="im"><div><div><div><div><p class="MsoNormal"><span style="color:#1f497d">&gt;&gt; </span><span style="color:#1f497d">Upgrading to the latest version didn&#39;t help. After about 30 minutes, Asterisk2 tries to send out OPTIONS keepalive packets to peers listed as Registered on Asterisk1.</span><u></u><u></u></p>
</div></div></div></div><div><p class="MsoNormal"><span style="color:#1f497d">&gt; </span>It is something really amazing... Can you run &quot;sip show peers&quot; on each one of the servers and post the response?<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="color:#1f497d">&gt; </span>You said the second asterisk is completely opaque to your peers. Can you run a tcpdump on secondary server to see if for some obscure reason the phones try to contact the secondary asterisk?<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><div><p class="MsoNormal"><span style="color:#1f497d">I&#39;ll monitor one peer using tcpdump over a few hours and then review the packets. However, SIP DEBUG isn&#39;t showing any REGISTER packets.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Here&#39;s the sip peers output. Values and names have been hidden. Some appear as Unreachable the secondary server and some appear as OK.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">I think some are listed as OK because the endpoint routers are performing some type of SIP ALG and routing packets based on port number and not source ip address.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">However, from the SIP DEBUG output, it seems clear that the secondary server in this example is sending out Keepalives based on the information that the primary server has entered into the realtime DB.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Show peers Output from a primary server<u></u><u></u></span></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Name/username              Host                                    Dyn Forcerport ACL Port     Status     Realtime<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">a201/A201              217.x.x.48                            D   N             65229    OK (88 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">a202                     (Unspecified)                            D   N             0        UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">b201/44845287  78.x.x.101                           D   N             5060     OK (26 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">c201/s           193.x.x.174                          D   N             5060     OK (52 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">d201/d201  94.x.x.228                             D   N             5060     OK (33 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e201/e201        94.x.x.44                             D   N             55018    OK (40 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e202/e202        94.x.x.44                             D   N             55022    OK (46 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e203/e203        94.x.x.44                             D   N             55024    OK (40 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e204/e204        94.x.x.44                             D   N             55008    OK (40 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e205/e205        94.x.x.44                             D   N             55016    OK (41 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e206/e206        94.x.x.44                             D   N             55014    OK (40 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e207/e207        94.x.x.44                             D   N             55020    OK (41 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e208/e208        94.x.x.44                             D   N             5060     OK (41 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e209/e209        94.x.x.44                             D   N             55012    OK (40 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e210/e210        94.x.x.44                             D   N             55010    OK (41 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e211/e211        94.x.x.44                             D   N             55026    OK (38 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e212/e212        81.x.x.93                            D   N             5060     OK (46 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">f201         (Unspecified)                            D   N             0        UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">g201/g  78.x.x.207                             D   N             5060     OK (29 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">h201/h201  217.x.x.78                           D   N             38980    OK (22 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">i201         (Unspecified)                            D   N             0        UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">i203/ i203 109.x.x.103                          D   N             5060     OK (32 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">i204/ i204 109.x.x.103                          D   N             1025     OK (31 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">i205/ i205 81.x.x.144                             D   N             5060     OK (32 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">i206/ i206  109.x.x.103                          D   N             1035     OK (31 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">i207/ i207  109.x.x.103                          D   N             1032     OK (32 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">i208/ i208 109.x.x.103                          D   N             1024     OK (31 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">j201/s           94.x.x.62                            D   N             57813    OK (35 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">o201/o201      92.x.x.86                             D   N             51824    OK (47 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">o202/o202      92.x.x.86                             D   N             58641    OK (48 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">o203/o203      92.x.x.86                             D   N             49172    OK (47 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">j204/j204      176.x.x.214                          D   N             34824    OK (49 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">k201/k201  2.x.x.169                             D   N             52757    OK (53 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">k202/k202  (Unspecified)                            D   N             0        UNKNOWN    Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">l201/l201    (Unspecified)                            D   N             0        UNKNOWN    Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">m201/s          92.x.x.95                              D   N             54020    OK (32 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">n201           (Unspecified)                            D   N             0        UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Show peers Output from a secondary server<u></u><u></u></span></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Name/username              Host                                    Dyn Forcerport ACL Port     Status     Realtime<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">d201        94.x.x.228                             D   N             5060     UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e202                  94.x.x.44                             D   N             55022    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e203                  94.x.x.44                             D   N             55024    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e204                  94.x.x.44                             D   N             55008    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e205                  94.x.x.44                             D   N             55016    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e206                  94.x.x.44                             D   N             55014    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e207                  94.x.x.44                             D   N             55020    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e209                  94.x.x.44                             D   N             55012    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e210                  94.x.x.44                             D   N             55010    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">e212                  81.x.x.93                            D   N             5060     UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">h201               217.x.x.78                           D   N             38980    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">j201             94.x.x.62                            D   N             57813    UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">o201                 92.x.x.86                             D   N             51824    OK (47 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">o202                 92.x.x.86                             D   N             58641    OK (47 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">o203                 92.x.x.86                             D   N             49172    OK (48 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">o204                 (Unspecified)                            D   N             0        UNREACHABLE Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">k201               2.x.x.169                             D   N             52757    OK (52 ms) Cached RT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">k202               195.x.x.5                             D   N             20569    UNREACHABLE Cached RT<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><div><br></div><div>It is really unbelievable ... I was thinking: Asterisk uses an internal database to maintain states of peers. It is usually located in /var/lib/asterisk/astdb and it is a berkely db, but other database backends seem available. Are you sharing also this database between the two servers? It is the only option left...</div>
<div><br></div><div>Leandro</div>