<div>Thank you Doug and Nguyen. I have had your recommendation but I still can not get SIP inbound for my broadvoice line to work. My configuration and SIP debugs are attached and just to recap I have done the following:</div>

<div> </div>
<div>My outgoing works great. I can dial from one SIP extension to another internally with no problem. The issue is incoming SIp is not working and goes directly ro Voice mail.</div>
<div> </div>
<div>1) UDP port 5060, 691 10K-20K are allowed through the Firewall (Port forward to Asterisk server)</div>
<div>2) I have 2 SIP extensions 5000 and 5002</div>
<div>3) Made sure I have the correct context on the incoming extension</div>
<div>4) Added nat=yes and qualify=yes under SIP.conf on both extensions</div>
<div><br>If anyone knows if there are any other ideas or what debug to turn on pls let me know. I would appreciate if anyone from Broadvoice Support or Broadvoice user can give pointers as well.</div>
<div> </div>
<div>Thanks.</div>
<div><br> </div>
<div class="gmail_quote">On Wed, Dec 30, 2009 at 10:57 PM, Doug <span dir="ltr">&lt;<a href="mailto:Doug@natel.net" target="_blank">Doug@natel.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>At 18:22 12/30/2009, Qurba Joog wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You are correct.. I had the correct context on my current production configuration I just copied from an older saved file.. So the [enterbroadvoice] has a context of incoming and incoming is defined in the extensions.con. But still have the same problem with incoming jumping directly into Broadvoice VM. I even changed it to IAX2 extension.<br>
<br>Any help would be appreciated....<br></blockquote><br></div>I don&#39;t this for any of your peers:<br><br>nat=yes<br><br><br><br><br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>On Fri, Dec 25, 2009 at 10:43 AM, Qurba Joog &lt;&lt;mailto:<a href="mailto:qurbajoog@gmail.com" target="_blank">qurbajoog@gmail.com</a>&gt;<a href="mailto:qurbajoog@gmail.com" target="_blank">qurbajoog@gmail.com</a>&gt; wrote:<br>
Thanks very much for your reply Nguyen. I read and re-read the url you sent.. Sorry I&#39;m new to this but are you saying the [incoming] context is wrong? Please indicate what is wrong.<br><br>If you look at the SIP.conf [enter_broadvoice] I have [incoming] context defined and that is the one I have called out in the extensions.conf<br>
<br>Thanks.<br><br><br></div>
<div>On Fri, Dec 25, 2009 at 5:20 AM, Nguyen Quang Tri &lt;&lt;<a href="http://kihote.am/" target="_blank">http://kihote.am</a>&gt;<a href="http://kihote.am/" target="_blank">kihote.am</a>@&lt;<a href="http://gmail.com/" target="_blank">http://gmail.com</a>&gt;<a href="http://gmail.com/" target="_blank">gmail.com</a>&gt; wrote:<br>
Wrong context for incoming,<br>you can read<br></div>&lt;<a href="http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf</a>&gt;<a href="http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf</a><br>
and<br>&lt;<a href="http://www.voip-info.org/wiki/view/IPKall" target="_blank">http://www.voip-info.org/wiki/view/IPKall</a>&gt;<a href="http://www.voip-info.org/wiki/view/IPKall" target="_blank">http://www.voip-info.org/wiki/view/IPKall</a><br>
<br>2009/12/25 --[ UxBoD ]-- &lt;&lt;mailto:<a href="mailto:uxbod@splatnix.net" target="_blank">uxbod@splatnix.net</a>&gt;<a href="mailto:uxbod@splatnix.net" target="_blank">uxbod@splatnix.net</a>&gt; 
<div><br>----- &quot;Qurba Joog&quot; &lt;&lt;mailto:<a href="mailto:qurbajoog@gmail.com" target="_blank">qurbajoog@gmail.com</a>&gt;<a href="mailto:qurbajoog@gmail.com" target="_blank">qurbajoog@gmail.com</a>&gt; wrote:<br>
| Hello,<br>|<br>| Please forgive me if I&#39;m repeating this post. I have searched and looked for similar problem with a solution but have not see a similar one.<br>|<br>| My outgoing SIP and other channels work fine but the incoming/inbound SIP call goes straight to Broadvoice voicemail. I see that Broadvoice is registered when I look at the SIP registry. I have turned on SIP Debug and it is below.<br>
|<br>| Anyone know why even when SIP has registered I do not see incoming calls?<br>|<br>| Thanks,<br>|<br>|<br>| ------extensions.conf----------------<br>| [global]<br>|<br>| [general]<br>| bindport=5060<br>| bindaddr = 0.0.0.0<br>
</div>| deny=&lt;<a href="http://0.0.0.0/0.0.0.0" target="_blank">http://0.0.0.0/0.0.0.0</a>&gt;MailScanner has detected a possible fraud attempt from &quot;0.0.0.0&quot; claiming to be MailScanner warning: numerical links are often malicious:&lt;<a href="http://0.0.0.0/0.0.0.0" target="_blank">http://0.0.0.0/0.0.0.0</a>&gt; <a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a><br>
| externhost=&lt;<a href="http://xyz.dyndns.org/" target="_blank">http://xyz.dyndns.org</a>&gt;<a href="http://xyz.dyndns.org/" target="_blank">xyz.dyndns.org</a><br>| localnet = &lt;<a href="http://192.168.1.0/255.255.255.0" target="_blank">http://192.168.1.0/255.255.255.0</a>&gt;MailScanner has detected a possible fraud attempt from &quot;192.168.1.0&quot; claiming to be MailScanner warning: numerical links are often malicious:&lt;<a href="http://192.168.1.0/255.255.255.0" target="_blank">http://192.168.1.0/255.255.255.0</a>&gt; <a href="http://192.168.1.0/255.255.255.0" target="_blank">192.168.1.0/255.255.255.0</a> 
<div><br><br>| disallow=all<br>| allow=ulaw<br>| allow=gsm<br>| delayreject=yes<br>| nochecksums=no<br>| allowguest=no<br>| delayreject=yes<br>| pedantic=no<br>|<br></div>| register =&gt; 703XXXYYYY@sip.broadvoice.com:s&lt;<a href="http://ecurepassword:703XXXYYYY@sip.broadvoice.com/5000" target="_blank">http://ecurepassword:703XXXYYYY@sip.broadvoice.com/5000</a>&gt;<a href="http://ecurepassword:703XXXYYYY@sip.broadvoice.com/5000" target="_blank">ecurepassword:703XXXYYYY@sip.broadvoice.com/5000</a> 
<div><br>|<br>| [5000]<br>| type=friend<br>| context=internal-phones<br>| secret=xxx<br>| qualify=yes<br>| host=dynamic ; behind nat<br>| dtmfmode=rfc2833<br>|<br>| [5002]<br>| type=friend<br>| context=internal-phones<br>
| secret=test<br>| qualify=yes<br>| host=dynamic ; behind nat<br>| nat=yes<br>| dtmfmode=rfc2833<br>|<br>| [enter_broadvoice]<br>| type=peer<br>| user=phone<br></div>| host=&lt;<a href="http://sip.broadvoice.com/" target="_blank">http://sip.broadvoice.com</a>&gt;<a href="http://sip.broadvoice.com/" target="_blank">sip.broadvoice.com</a><br>
| fromdomain=&lt;<a href="http://sip.broadvoice.com/" target="_blank">http://sip.broadvoice.com</a>&gt;<a href="http://sip.broadvoice.com/" target="_blank">sip.broadvoice.com</a> 
<div>
<div></div>
<div><br>| fromuser=703XXXYYYY<br>| secret=securepassword<br>| username=703XXXYYYY<br>| insecure=very<br>| ;insecure=port,invite<br>| context=incoming<br>| authname=703XXXYYYY<br>| dtmfmode=inband<br>| dtmf=inband<br>| ;Disable canreinvite if you are behind a NAT<br>
|<br>| canreinvite=no<br>|<br>| --------extensions.conf--------<br>|<br>| [globals]<br>|<br>| [general]<br>|<br>| autofallthrough=yes<br>|<br>|<br>| [incoming_calls]<br>|<br>| exten =&gt; 1703XXXYYYY,1,Dial(SIP/5000)<br>|<br>
| [internal-phones]<br>|<br>| include =&gt; outgoing<br>| exten =&gt; 5000,1,Dial(SIP/5000,20)<br>| exten =&gt; 5002,1,Dial(SIP/5002,20)<br>|<br>|<br>| [outgoing]<br>|<br>| exten =&gt; _X.,1,NoOp()<br>| exten =&gt; _X.,n,Dial(SIP/enter_broadvoice/${EXTEN})<br>
|<br>| --------SIP Registry------------------<br>| -*CLI&gt; sip show registry<br>| Host                           dnsmgr Username       Refresh State                Reg.Time<br></div></div>| &lt;<a href="http://sip.broadvoice.com:5060/" target="_blank">http://sip.broadvoice.com:5060</a>&gt;<a href="http://sip.broadvoice.com:5060/" target="_blank">sip.broadvoice.com:5060</a>        N  703XXXYYYY@s        23 Registered           Fri, 25 Dec 2009 01:14:03 
<div><br>|<br>| --------SIP Debug------------------<br>| -*CLI&gt;<br>| REGISTER 11 headers, 0 lines<br></div>| Reliably Transmitting (no NAT) to &lt;<a href="http://147.135.32.226:5060/" target="_blank">http://147.135.32.226:5060</a>&gt;MailScanner has detected a possible fraud attempt from &quot;<a href="http://147.135.32.226:5060/" target="_blank">147.135.32.226:5060</a>&quot; claiming to be MailScanner warning: numerical links are often malicious:&lt;<a href="http://147.135.32.226:5060/" target="_blank">http://147.135.32.226:5060</a>&gt; <a href="http://147.135.32.226:5060/" target="_blank">147.135.32.226:5060</a>:<br>
<br>| REGISTER sip:&lt;<a href="http://sip.broadvoice.com/" target="_blank">http://sip.broadvoice.com</a>&gt;<a href="http://sip.broadvoice.com/" target="_blank">sip.broadvoice.com</a> SIP/2.0 
<div><br>| Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK4948ded8;rport<br>| Max-Forwards: 70<br></div>| From: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as376e46ae<br>
| To: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;<br>
| Call-ID: &lt;mailto:<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&gt;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a> 
<div><br>| CSeq: 147 REGISTER<br>| User-Agent: Asterisk PBX 1.6.1.6<br>| Expires: 120<br></div>| Contact: &lt;&lt;mailto:<a href="mailto:sip%253A5000@68.100.65.3" target="_blank">sip%3A5000@68.100.65.3</a>&gt;<a href="mailto:sip%3A5000@68.100.65.3" target="_blank">sip:5000@68.100.65.3</a>&gt;<br>
| Content-Length: 0<br>|<br>|<br>| ---<br>| Really destroying SIP dialog &#39;&lt;mailto:<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&gt;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&#39; Method: REGISTER<br>
| Suuban*CLI&gt;<br>| &lt;--- SIP read from UDP://&lt;<a href="http://147.135.32.225:5060/" target="_blank">http://147.135.32.225:5060</a>&gt;MailScanner has detected a possible fraud attempt from &quot;<a href="http://147.135.32.225:5060/" target="_blank">147.135.32.225:5060</a>&quot; claiming to be MailScanner warning: numerical links are often malicious:&lt;<a href="http://147.135.32.225:5060/" target="_blank">http://147.135.32.225:5060</a>&gt; <a href="http://147.135.32.225:5060/" target="_blank">147.135.32.225:5060</a> ---&gt; 
<div><br><br>| SIP/2.0 200 OK<br></div>| Call-ID: &lt;mailto:<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&gt;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a><br>
| CSeq: 147 REGISTER<br>| From: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as376e46ae<br>
| To: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt; 
<div><br>| Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK4948ded8<br></div>| Contact: &lt;&lt;mailto:<a href="mailto:sip%253A5000@68.100.66.3" target="_blank">sip%3A5000@68.100.66.3</a>&gt;<a href="mailto:sip%3A5000@68.100.66.3" target="_blank">sip:5000@68.100.66.3</a>&gt; 
<div><br>| Expires: 30<br>| Content-Length:    0<br>|<br>|<br>| &lt;-------------&gt;<br>| --- (9 headers 0 lines) ---<br></div>| Scheduling destruction of SIP dialog &#39;&lt;mailto:<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&gt;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&#39; in 32000 ms (Method: REGISTER)<br>
| [Dec 25 00:42:31] NOTICE[2898]: chan_sip.c:16740 handle_response_register: Outbound Registration: Expiry for &lt;<a href="http://sip.broadvoice.com/" target="_blank">http://sip.broadvoice.com</a>&gt;<a href="http://sip.broadvoice.com/" target="_blank">sip.broadvoice.com</a> is 30 sec (Scheduling reregistration in 23 s) 
<div><br>|<br>|<br>| REGISTER 11 headers, 0 lines<br></div>| Reliably Transmitting (no NAT) to &lt;<a href="http://147.135.32.226:5060/" target="_blank">http://147.135.32.226:5060</a>&gt;MailScanner has detected a possible fraud attempt from &quot;<a href="http://147.135.32.226:5060/" target="_blank">147.135.32.226:5060</a>&quot; claiming to be MailScanner warning: numerical links are often malicious:&lt;<a href="http://147.135.32.226:5060/" target="_blank">http://147.135.32.226:5060</a>&gt; <a href="http://147.135.32.226:5060/" target="_blank">147.135.32.226:5060</a>:<br>
<br>| REGISTER sip:&lt;<a href="http://sip.broadvoice.com/" target="_blank">http://sip.broadvoice.com</a>&gt;<a href="http://sip.broadvoice.com/" target="_blank">sip.broadvoice.com</a> SIP/2.0 
<div><br>| Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK35a02655;rport<br>| Max-Forwards: 70<br></div>| From: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as54c6327a<br>
| To: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;<br>
| Call-ID: &lt;mailto:<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&gt;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a> 
<div><br>| CSeq: 148 REGISTER<br>| User-Agent: Asterisk PBX 1.6.1.6<br>| Expires: 120<br></div>| Contact: &lt;&lt;mailto:<a href="mailto:sip%253A5000@68.100.66.3" target="_blank">sip%3A5000@68.100.66.3</a>&gt;<a href="mailto:sip%3A5000@68.100.66.3" target="_blank">sip:5000@68.100.66.3</a>&gt;<br>
| Content-Length: 0<br>| ---<br>| Really destroying SIP dialog &#39;&lt;mailto:<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&gt;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&#39; Method: REGISTER<br>
| Suuban*CLI&gt;<br>| &lt;--- SIP read from UDP://&lt;<a href="http://147.135.32.226:5060/" target="_blank">http://147.135.32.226:5060</a>&gt;MailScanner has detected a possible fraud attempt from &quot;<a href="http://147.135.32.226:5060/" target="_blank">147.135.32.226:5060</a>&quot; claiming to be MailScanner warning: numerical links are often malicious:&lt;<a href="http://147.135.32.226:5060/" target="_blank">http://147.135.32.226:5060</a>&gt; <a href="http://147.135.32.226:5060/" target="_blank">147.135.32.226:5060</a> ---&gt; 
<div><br><br>| SIP/2.0 200 OK<br></div>| Call-ID: &lt;mailto:<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&gt;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a><br>
| CSeq: 148 REGISTER<br>| From: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as54c6327a<br>
| To: &lt;&lt;mailto:<a href="mailto:sip%253A703XXXYYYY@sip.broadvoice.com" target="_blank">sip%3A703XXXYYYY@sip.broadvoice.com</a>&gt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt; 
<div><br>| Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK35a02655<br></div>| Contact: &lt;&lt;mailto:<a href="mailto:sip%253A5000@68.100.66.3" target="_blank">sip%3A5000@68.100.66.3</a>&gt;<a href="mailto:sip%3A5000@68.100.66.3" target="_blank">sip:5000@68.100.66.3</a>&gt; 
<div><br>| Expires: 30<br>| Content-Length:    0<br>| ----------------------------------------------<br><br>Within sip.conf you are using the context inbound; yet in extensions.conf you have incoming_calls.  so change extensions.conf to be:<br>
<br>[incoming]<br><br><br>exten =&gt; 1703XXXYYYY,1,Dial(SIP/5000)<br><br>_______________________________________________<br></div>-- Bandwidth and Colocation Provided by &lt;<a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a>&gt;<a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> -- 
<div><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br><br></div>&lt;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a>&gt;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br><br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by &lt;<a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a>&gt;<a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> -- 
<div><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br><br></div>&lt;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a>&gt;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a> 
<div><br><br><br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</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></div></blockquote><br></blockquote>
</div><br>