<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Hello all, </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm having a quite simple configuration like: </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>SIP provider &lt;=&gt; asterisk SIP &lt;=&gt; lan</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Everythings works fine but sometime I can't get incoming call.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>here are some of the logs from set debug 25 set verbosity 25 sip show debug and sip.conf and a part of extension.conf</DIV><DIV>thanks in advance</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Reliably Transmitting (NAT) to 212.27.52.5:5060:</DIV><DIV>OPTIONS <A href="sip:freephonie.net">sip:freephonie.net</A> SIP/2.0</DIV><DIV>Via: SIP/2.0/UDP 82.XXX.XXX.XXX:5060;branch=
 z9hG4bK67c2df66;rport</DIV><DIV>From: "asterisk" &lt;<A href="sip:asterisk@82">sip:asterisk@82</A>.XXX.XXX.XXX&gt;;tag=as01265eaf</DIV><DIV>To: &lt;<A href="sip:freephonie.net">sip:freephonie.net</A>&gt;</DIV><DIV>Contact: &lt;<A href="sip:asterisk@82">sip:asterisk@82</A>.XXX.XXX.XXX&gt;</DIV><DIV>Call-ID: <A href="mailto:7263e88c20c9f38c34963cef6704cf07@82.XXX.XXX.XXX">7263e88c20c9f38c34963cef6704cf07@82.XXX.XXX.XXX</A></DIV><DIV>CSeq: 102 OPTIONS</DIV><DIV>User-Agent: Asterisk PBX</DIV><DIV>Max-Forwards: 70</DIV><DIV>Date: Wed, 18 Apr 2007 13:57:55 GMT</DIV><DIV>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY</DIV><DIV>Content-Length: 0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>---</DIV><DIV>12 headers, 0 lines</DIV><DIV>Reliably Transmitting (NAT) to 212.27.52.5:5060:</DIV><DIV>OPTIONS <A href="sip:freephonie.net">sip:freephonie.net</A> SIP/2.0</DIV><DIV>Via: SIP/2.0/UDP 82.XXX.XXX.XXX:5060;b
 ranch=z9hG4bK253c1a3d;rport</DIV><DIV>From: "asterisk" &lt;<A href="sip:asterisk@82">sip:asterisk@82</A>.XXX.XXX.XXX&gt;;tag=as372da2cb</DIV><DIV>To: &lt;<A href="sip:freephonie.net">sip:freephonie.net</A>&gt;</DIV><DIV>Contact: &lt;<A href="sip:asterisk@82">sip:asterisk@82</A>.XXX.XXX.XXX&gt;</DIV><DIV>Call-ID: <A href="mailto:793bf24e5290d562787c8d9451baedd7@82.XXX.XXX.XXX">793bf24e5290d562787c8d9451baedd7@82.XXX.XXX.XXX</A></DIV><DIV>CSeq: 102 OPTIONS</DIV><DIV>User-Agent: Asterisk PBX</DIV><DIV>Max-Forwards: 70</DIV><DIV>Date: Wed, 18 Apr 2007 13:57:55 GMT</DIV><DIV>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY</DIV><DIV>Content-Length: 0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>---</DIV><DIV>Zpro*CLI&gt; </DIV><DIV>&lt;-- SIP read from 212.27.52.5:5060: </DIV><DIV>SIP/2.0 403 not registered</DIV><DIV>Call-ID: <A href="mailto:7263e88c20c9f38c34963cef6704cf07@82.XXX.XXX.XXX">7263e88c20c9f3
 8c34963cef6704cf07@82.XXX.XXX.XXX</A></DIV><DIV>CSeq: 102 OPTIONS</DIV><DIV>From: "asterisk" &lt;<A href="sip:asterisk@82">sip:asterisk@82</A>.XXX.XXX.XXX&gt;;tag=as01265eaf</DIV><DIV>To: &lt;<A href="sip:freephonie.net">sip:freephonie.net</A>&gt;;tag=00-31057-001dc208-591e1ca81</DIV><DIV>Via: SIP/2.0/UDP 82.XXX.XXX.XXX:5060;received=82.XXX.XXX.XXX;rport=5060;branch=z9hG4bK67c2df66</DIV><DIV>Content-Length: 0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--- (7 headers 0 lines) ---</DIV><DIV>Destroying call '<A href="mailto:7263e88c20c9f38c34963cef6704cf07@82.XXX.XXX.XXX">7263e88c20c9f38c34963cef6704cf07@82.XXX.XXX.XXX</A>'</DIV><DIV>Zpro*CLI&gt; </DIV><DIV>&lt;-- SIP read from 212.27.52.5:5060: </DIV><DIV>SIP/2.0 403 not registered</DIV><DIV>Call-ID: <A href="mailto:793bf24e5290d562787c8d9451baedd7@82.XXX.XXX.XXX">793bf24e5290d562787c8d9451baedd7@82.XXX.XXX.XXX</A></DIV><DIV>CSeq: 102 OPTIONS</DIV><DIV>From: "asteris
 k" &lt;<A href="sip:asterisk@82">sip:asterisk@82</A>.XXX.XXX.XXX&gt;;tag=as372da2cb</DIV><DIV>To: &lt;<A href="sip:freephonie.net">sip:freephonie.net</A>&gt;;tag=00-32700-001dc209-6fc2b3303</DIV><DIV>Via: SIP/2.0/UDP 82.XXX.XXX.XXX:5060;received=82.XXX.XXX.XXX;rport=5060;branch=z9hG4bK253c1a3d</DIV><DIV>Content-Length: 0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--- (7 headers 0 lines) ---</DIV><DIV>Destroying call '<A href="mailto:793bf24e5290d562787c8d9451baedd7@82.XXX.XXX.XXX">793bf24e5290d562787c8d9451baedd7@82.XXX.XXX.XXX</A>'</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>sip.conf</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[general]</DIV><DIV>context=incoming</DIV><DIV>realm=etatcritik.dyndns.org</DIV><DIV>bindport=5060</DIV><DIV>bindaddr=0.0.0.0</DIV><DIV>srvlookup=no</DIV><DIV>maxexpiry=3600</DIV><DIV>defaultexpiry=1800</DIV><DIV>videosupport=yes</DIV><DIV>disallow=all</DIV><DIV>all
 ow=ulaw</DIV><DIV>allow=ilbc</DIV><DIV>allow=alaw</DIV><DIV>allow=gsm</DIV><DIV>musicclass=default</DIV><DIV>language=fr</DIV><DIV>useragent=Asterisk PBX </DIV><DIV>dtmfmode = auto</DIV><DIV>register =&gt; 09XXXXXXXX:<A href="mailto:SECRET@freephonie.net">SECRET@freephonie.net</A></DIV><DIV>registertimeout=40</DIV><DIV>externip = 82.XXX.XXX.XXX</DIV><DIV>localnet=10.XXX.XXX.XXX/255.255.255.0</DIV><DIV>qualify=60000</DIV><DIV>nat = yes</DIV><DIV>[test]</DIV><DIV>type=friend</DIV><DIV>username=test</DIV><DIV>secret=test</DIV><DIV>host=dynamic</DIV><DIV>context=home</DIV><DIV>callerid =test &lt;2222&gt;</DIV><DIV>dmtfmode=rfc2833</DIV><DIV>authuser=test</DIV><DIV>fromuser=test</DIV><DIV>allow=all</DIV><DIV>[freephonie_outbound]</DIV><DIV>type=peer</DIV><DIV>allow=all</DIV><DIV>host=freephonie.net</DIV><DIV>secret=SECRET</DIV><DIV>fromuser=09XXXXXXX</DIV><DIV>username=09XXXXXXX</DIV><DIV>dtmfmode=inband</DIV><DIV>qualify=60000</DIV><DIV>fromdomain=freephonie.net</DIV><DIV>[freep
 honie_inbound]</DIV><DIV>type=peer</DIV><DIV>context=incoming</DIV><DIV>host=freephonie.net</DIV><DIV>qualify=60000</DIV><DIV>allow=all</DIV><DIV>deny=0.0.0.0/0..0.0.0</DIV><DIV>permit=212.27.52.5/255.255.255.255  ; ip de freephonie.net</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>etension.conf</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>...</DIV><DIV>[incoming]</DIV><DIV>exten =&gt; s,1,Ringing</DIV><DIV>exten =&gt; s,2,Noop(I receive a sip call);</DIV><DIV>exten =&gt; s,n,Goto(home,1000,1)</DIV><DIV>exten =&gt; s,n,Congestion</DIV><DIV>;</DIV><DIV>...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-
 height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><BR class="Apple-interchange-newline"></SPAN> </DIV><BR>
!DSPAM:462643f450705772331342!

</BODY></HTML>