<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><font color="#000000">You can use
        following command to check <br>
        <br>
        netstat -an<br>
        <br>
        This will show host and ports in numeric format.</font><b><span
          style="mso-ansi-language:EN-US" lang="EN-US"><font
            color="#000000"><br>
            <br>
          </font>Regards,</span></b><o:p></o:p><font color="#000000"><br>
      </font>Amit Patkar<br>
      <div class="moz-signature">
        <div class="WordSection1">
          <p class="MsoNoSpacing"><font color="#000000"><span
                style="mso-ansi-language:EN-US" lang="EN-US"><o:p></o:p></span></font></p>
          <p class="MsoNoSpacing"><br>
          </p>
          <span style="color:#000000;mso-ansi-language:EN-US"
            lang="EN-US"></span><span style="mso-ansi-language:EN-US"
            lang="EN-US"><o:p></o:p></span>
          <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
              lang="EN-US"> <o:p></o:p></span></p>
        </div>
      </div>
      On 2/27/2015 6:33 AM, Rusty Newton wrote:<br>
    </div>
    <blockquote
cite="mid:CAGWDFcvTx+WaOd7G62gURuVHjzLEzXG_XUNJ3QiQPn5hx4_=0g@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Mon, Feb 23, 2015 at 5:51 AM, Raj
            Roy Ghandhi <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:roy.gandhi@gmail.com" target="_blank">roy.gandhi@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">Hi Friends,
                <div>I encountered a strange issue.</div>
                <div>I am running Asterisk 11.8.1 on Cent OS with no
                  firewall running.</div>
                <div>It has 3 NIC interfaces.</div>
                <div><br>
                </div>
                <div>in my sip.conf I have</div>
                <div><br>
                </div>
                <div>
                  <div>allowguest=yes   </div>
                  <div>bindaddr=0.0.0.0</div>
                  <div>udpbindaddr = 0.0.0.0 </div>
                </div>
                <div><br>
                </div>
                <div>But my Asterisk instance does not pick the call at
                  all.</div>
                <div><br>
                </div>
                <div>When I check the listening apps using lsof -i I
                  get </div>
                <div>
                  <div> </div>
                  <div>asterisk   3046  asterisk    7u  IPv4 1191172    
                     0t0  TCP *:5038 (LISTEN)</div>
                  <div>asterisk   3046  asterisk   10u  IPv4 1191186    
                     0t0  UDP *:sip</div>
                  <div>asterisk   3046  asterisk   11u  IPv4 1191187    
                     0t0  TCP *:sip (LISTEN)</div>
                  <div>asterisk   3046  asterisk   13u  IPv4 1191196    
                     0t0  UDP *:iax</div>
                  <div>asterisk   3046  asterisk   15u  IPv4 1191199    
                     0t0  UDP *:commplex-main</div>
                  <div>asterisk   3046  asterisk   16u  IPv4 1191201    
                     0t0  UDP *:4520</div>
                  <div>asterisk   3046  asterisk   19u  IPv4 1191232    
                     0t0  TCP localhost:5038->localhost:43353
                    (ESTABLISHED)</div>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>But I van see the SIP Invite that comes into server
                  and I can ngrep it as</div>
                <div><br>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>I believe UDP ports don't provide the state in lsof.</div>
            <div><br>
            </div>
            <div>Asterisk is listening here:</div>
            <div><span style="font-size:12.8000001907349px">asterisk  
                3046  asterisk   10u  IPv4 1191186      0t0  UDP *:sip</span><br>
            </div>
            <div><span style="font-size:12.8000001907349px"><br>
              </span></div>
            <div><span style="font-size:12.8000001907349px">My system
                shows similar output for lsof and it works fine.</span></div>
            <div><span style="font-size:12.8000001907349px"><br>
              </span></div>
            <div><span style="font-size:12.8000001907349px">Have you
                tried using the Asterisk CLI with "sip set debug on" to
                see if Asterisk shows any SIP packets?</span></div>
            <div><span style="font-size:12.8000001907349px"><br>
              </span></div>
            <div><span style="font-size:12.8000001907349px">You might
                consider collecting a debug log with "sip set debug on"
                output :<a moz-do-not-send="true"
href="https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information">https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information</a></span></div>
            <div><span style="font-size:12.8000001907349px"><br>
              </span></div>
            <div><span style="font-size:12.8000001907349px">Once you
                have that, provide a pastebin link to the output and
                someone may be able to help you out.</span></div>
          </div>
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature">
            <div dir="ltr">
              <pre><span>Rusty Newton</span>
Digium, Inc. | <span>Community Support Manager</span>
<span>445 Jan Davis Drive NW</span> - <span>Huntsville, AL 35806</span> - <span>US</span>
<span>direct:</span> <span>+1 256 428 6200</span><span></span> <span></span>

<span>Check us out at: <a moz-do-not-send="true" href="http://digium.com" target="_blank">http://digium.com</a> & <a moz-do-not-send="true" href="http://asterisk.org" target="_blank">http://asterisk.org</a></span></pre>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <br>
  </body>
</html>