<style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
        -->
        </style>


<p style="margin-bottom:0cm;font-weight:normal" align="LEFT"><font size="3">thanks
Samy<br>i have set nat=yes, now getting sound from both side but
there is too uch disturbance. soetime we becoe audible and
sometime not.i did not set extern ip coz my asterisk server is
directly configured on public ip. I have softphones on some where
localnets separate from asterisk server campus . i also set &quot;sip set debug on&quot; CLI prompt. this is giving following error.</font></p><p style="margin-bottom:0cm;font-weight:normal" align="LEFT"><font size="3">when i test sip traffic on wireshark &quot;401 unauthorize&quot; error getting this error cli prompt also showing.</font></p>
<p style="margin-bottom:0cm;font-weight:normal" align="LEFT"><font size="3">my first softph(9001) is on localnet 192.168.1.136 and 2nd softphone (9000) in another localnet in another campus(192.168.6.25)  <br></font></p>

<br><br>Scheduling destruction of SIP dialog &#39;<a href="http://551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060">551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060</a>&#39; in 32000 ms (Method: INVITE)<br>[Jul  4 19:37:39] WARNING[3054]: chan_sip.c:3660 retrans_pkt: Retransmission timeout reached on transmission <a href="http://551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060">551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060</a> for seqno 102 (Critical Request) -- See <a href="https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions">https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions</a><br>
Packet timed out after 32000ms with no response<br>[Jul  4 19:37:39] WARNING[3054]: chan_sip.c:3689 retrans_pkt: Hanging up call <a href="http://551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060">551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060</a> - no reply to our critical packet (see <a href="https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions">https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions</a>).<br>
    -- SIP/9000-00000005 is circuit-busy<br>  == Everyone is busy/congested at this time (1:0/1/0)<br>    -- Auto fallthrough, channel &#39;SIP/9001-00000004&#39; status is &#39;CONGESTION&#39;<br><br>&lt;--- Reliably Transmitting (NAT) to <a href="http://122.163.193.94:1801">122.163.193.94:1801</a> ---&gt;<br>
SIP/2.0 503 Service Unavailable<br>Via: SIP/2.0/UDP 192.168.1.136:5060;branch=z9hG4bK-d8754z-db50ccbe7eb74a0a-1---d8754z-;received=122.163.193.94;rport=1801<br>From: &quot;9001&quot;&lt;<a href="mailto:sip%3A9001@122.160.154.189">sip:9001@122.160.154.189</a>&gt;;tag=b0785362<br>
To: &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=as6c7d28d1<br>Call-ID: MGViNzg2YjNiOGQ4YzRmNDgxYmU2OTc2NDk4YjA1NGU.<br>CSeq: 2 INVITE<br>Server: Asterisk PBX 10.0.0<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>
Supported: replaces, timer<br>X-Asterisk-HangupCause: No user responding<br>X-Asterisk-HangupCauseCode: 18<br>Content-Length: 0<br><br><br>&lt;------------&gt;<br>Really destroying SIP dialog &#39;<a href="http://551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060">551b9e744a6b41ee2c00033e22b333c0@122.160.154.189:5060</a>&#39; Method: INVITE<br>
<br>&lt;--- SIP read from UDP:<a href="http://122.163.193.94:1801">122.163.193.94:1801</a> ---&gt;<br>ACK <a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a> SIP/2.0<br>Via: SIP/2.0/UDP 192.168.1.136:5060;branch=z9hG4bK-d8754z-db50ccbe7eb74a0a-1---d8754z-;rport<br>
Max-Forwards: 70<br>To: &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=as6c7d28d1<br>From: &quot;9001&quot;&lt;<a href="mailto:sip%3A9001@122.160.154.189">sip:9001@122.160.154.189</a>&gt;;tag=b0785362<br>
Call-ID: MGViNzg2YjNiOGQ4YzRmNDgxYmU2OTc2NDk4YjA1NGU.<br>CSeq: 2 ACK<br>Content-Length: 0<br><br>&lt;-------------&gt;<br>--- (8 headers 0 lines) ---<br>Really destroying SIP dialog &#39;MGViNzg2YjNiOGQ4YzRmNDgxYmU2OTc2NDk4YjA1NGU.&#39; Method: ACK<br>
<br>&lt;--- SIP read from UDP:<a href="http://122.163.193.94:1801">122.163.193.94:1801</a> ---&gt;<br><br><br>&lt;-------------&gt;<br><br>&lt;--- SIP read from UDP:<a href="http://115.249.67.250:5060">115.249.67.250:5060</a> ---&gt;<br>
REGISTER sip:122.160.154.189 SIP/2.0<br>Via: SIP/2.0/UDP 192.168.6.25;rport;branch=z9hG4bKskzxkdlp<br>Max-Forwards: 70<br>To: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;<br>
From: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=jcysf<br>Call-ID: qajoimvsihxpsff@alok-Inspiron-N5110<br>CSeq: 954 REGISTER<br>Contact: &lt;<a href="mailto:sip%3A9000@192.168.6.25">sip:9000@192.168.6.25</a>&gt;;expires=3600<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE<br>User-Agent: Twinkle/1.4.2<br>Content-Length: 0<br><br>&lt;-------------&gt;<br>--- (11 headers 0 lines) ---<br>Sending to <a href="http://115.249.67.250:5060">115.249.67.250:5060</a> (NAT)<br>
<br>&lt;--- Transmitting (NAT) to <a href="http://115.249.67.250:5060">115.249.67.250:5060</a> ---&gt;<br>SIP/2.0 401 Unauthorized<br>Via: SIP/2.0/UDP 192.168.6.25;branch=z9hG4bKskzxkdlp;received=115.249.67.250;rport=5060<br>
From: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=jcysf<br>To: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=as26d4cd86<br>
Call-ID: qajoimvsihxpsff@alok-Inspiron-N5110<br>CSeq: 954 REGISTER<br>Server: Asterisk PBX 10.0.0<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>Supported: replaces, timer<br>WWW-Authenticate: Digest algorithm=MD5, realm=&quot;asterisk&quot;, nonce=&quot;278a3764&quot;<br>
Content-Length: 0<br><br><br>&lt;------------&gt;<br>Scheduling destruction of SIP dialog &#39;qajoimvsihxpsff@alok-Inspiron-N5110&#39; in 32000 ms (Method: REGISTER)<br><br>&lt;--- SIP read from UDP:<a href="http://115.249.67.250:5060">115.249.67.250:5060</a> ---&gt;<br>
REGISTER sip:122.160.154.189 SIP/2.0<br>Via: SIP/2.0/UDP 192.168.6.25;rport;branch=z9hG4bKjmqlllxn<br>Max-Forwards: 70<br>To: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;<br>
From: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=jcysf<br>Call-ID: qajoimvsihxpsff@alok-Inspiron-N5110<br>CSeq: 955 REGISTER<br>Contact: &lt;<a href="mailto:sip%3A9000@192.168.6.25">sip:9000@192.168.6.25</a>&gt;;expires=3600<br>
Authorization: Digest username=&quot;9000&quot;,realm=&quot;asterisk&quot;,nonce=&quot;278a3764&quot;,uri=&quot;sip:122.160.154.189&quot;,response=&quot;c7a119185514202d5f9cc10a86a93607&quot;,algorithm=MD5<br>Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE<br>
User-Agent: Twinkle/1.4.2<br>Content-Length: 0<br><br>&lt;-------------&gt;<br>--- (12 headers 0 lines) ---<br>Sending to <a href="http://115.249.67.250:5060">115.249.67.250:5060</a> (NAT)<br><br>&lt;--- Transmitting (NAT) to <a href="http://115.249.67.250:5060">115.249.67.250:5060</a> ---&gt;<br>
SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 192.168.6.25;branch=z9hG4bKjmqlllxn;received=115.249.67.250;rport=5060<br>From: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=jcysf<br>
To: &quot;shekhar&quot; &lt;<a href="mailto:sip%3A9000@122.160.154.189">sip:9000@122.160.154.189</a>&gt;;tag=as26d4cd86<br>Call-ID: qajoimvsihxpsff@alok-Inspiron-N5110<br>CSeq: 955 REGISTER<br>Server: Asterisk PBX 10.0.0<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>Supported: replaces, timer<br>Expires: 3600<br>Contact: &lt;<a href="mailto:sip%3A9000@192.168.6.25">sip:9000@192.168.6.25</a>&gt;;expires=3600<br>
Date: Wed, 04 Jul 2012 14:08:17 GMT<br>Content-Length: 0<br><br><br>&lt;------------&gt;<br>Scheduling destruction of SIP dialog &#39;qajoimvsihxpsff@alok-Inspiron-N5110&#39; in 32000 ms (Method: REGISTER)<br><br>&lt;--- SIP read from UDP:<a href="http://122.163.193.94:1801">122.163.193.94:1801</a> ---&gt;<br>
<br><br>&lt;-------------&gt;<br>Really destroying SIP dialog &#39;qajoimvsihxpsff@alok-Inspiron-N5110&#39; Method: REGISTER<br><br><br>regards<br>abhi<br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 5:22 PM, SamyGo <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
actually its a one-way audio issue due to NAT ! <div><br><div>alok , please explain your network flow for end to end client-server-client.</div><div><br>You may need to set nat=yes for your sip peer behind NAT. If the server is behind NAT router/firewall use externip=&lt;public.ip.of.server&gt; field.</div>


<div>Also provide sip traces of this call.</div><div>Another thing to do for your learning. Execute wireshark on both softphone systems and set &quot;sip | rtp&quot; as filter and see where are the RTP streams going on each end !</div>


<div><br></div><div>Take a complete capture on Asterisk server by executing the command &quot;sip set debug on&quot; and make a call.</div><div><br></div><div>BR</div><div>Sammy</div><div><div><div><br></div><div>
<br></div><div><div class="gmail_quote">
On Mon, Jul 2, 2012 at 4:39 PM, Thomas Kenyon <span dir="ltr">&lt;<a href="mailto:digium@sanguinarius.co.uk" target="_blank">digium@sanguinarius.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>alok srivastava wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
dear<br>
i have configured properly asterisk. At the one end i am using x-lite soft ph and another end twinkle. call is going properly from both end but after picking the phone not able to listen other one.<br>
when i checked the port 5060 on the asterisk server it is always showing closed while i have flushed all the rules from iptables (iptables -F)<br>
<br>
PORT     STATE  SERVICE VERSION<br>
5060/tcp closed sip<br>
<br>
 telnet localhost 5060 (could not connect)<br>
<br>
regards<br>
alok<br>
<br>
<br>
</blockquote></div></div>
SIP is only used to setup (and stop etc.) the call. The actual audio is sent via rtp.<br>
<br>
/etc/asterisk/rtp.conf<br>
<br>
Should tell which ports asterisk is using for rtp, you will need to make sure that the remote host can connect to these ports.<br>
<br>
There are lots of articles around on how to resolve this.<div><div><br>
<br>
<br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<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/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></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>