Wrong context for incoming, <br>you can read  <br><a href="http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf">http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf</a><br>and<br><a href="http://www.voip-info.org/wiki/view/IPKall">http://www.voip-info.org/wiki/view/IPKall</a><br>
<br><div class="gmail_quote">2009/12/25 --[ UxBoD ]-- <span dir="ltr">&lt;<a href="mailto:uxbod@splatnix.net">uxbod@splatnix.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: Verdana; font-size: 10pt; color: rgb(0, 0, 0);"><div class="im">----- &quot;Qurba Joog&quot; &lt;<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=<a href="http://0.0.0.0/0.0.0.0" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from &quot;0.0.0.0&quot; claiming to be</b></font> <font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> 0.0.0.0/0.0.0.0</a><br>

externhost=<a href="http://xyz.dyndns.org" target="_blank">xyz.dyndns.org</a><br>| localnet = <a href="http://192.168.1.0/255.255.255.0" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from &quot;192.168.1.0&quot; claiming to be</b></font> <font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> 192.168.1.0/255.255.255.0</a><div>
<div></div><div class="h5"><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>| register =&gt; 703XXXYYYY@sip.broadvoice.com:s<a href="http://ecurepassword:703XXXYYYY@sip.broadvoice.com/5000" target="_blank">ecurepassword:703XXXYYYY@sip.broadvoice.com/5000</a><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>| host=<a href="http://sip.broadvoice.com" target="_blank">sip.broadvoice.com</a><br>| fromdomain=<a href="http://sip.broadvoice.com" target="_blank">sip.broadvoice.com</a><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>| <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<br>

<br>| --------SIP Debug------------------<br>| -*CLI&gt;<br>| REGISTER 11 headers, 0 lines<br></div></div>| Reliably Transmitting (no NAT) to <a href="http://147.135.32.226:5060" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from &quot;147.135.32.226:5060&quot; claiming to be</b></font> <font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> 147.135.32.226:5060</a>:<div class="im">
<br>| REGISTER sip:<a href="http://sip.broadvoice.com" target="_blank">sip.broadvoice.com</a> SIP/2.0<br>| 
Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK4948ded8;rport<br>| Max-Forwards: 70<br>| From: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as376e46ae<br>
| To: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;<br>| 
Call-ID: <a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a><br>| CSeq: 147 REGISTER<br>| User-Agent: Asterisk PBX 1.6.1.6<br>| Expires: 120<br>
| Contact: &lt;<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;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&#39; Method: REGISTER<br>
| Suuban*CLI&gt;<br></div>| 
&lt;--- SIP read from UDP://<a href="http://147.135.32.225:5060" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from &quot;147.135.32.225:5060&quot; claiming to be</b></font> <font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> 147.135.32.225:5060</a> ---&gt;<div class="im">
<br>| SIP/2.0 200 OK<br>| Call-ID: <a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a><br>| 
CSeq: 147 REGISTER<br>| From: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as376e46ae<br>| To: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;<br>

Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK4948ded8<br>| Contact: &lt;<a href="mailto:sip%3A5000@68.100.66.3" target="_blank">sip:5000@68.100.66.3</a>&gt;<br>| Expires: 30<br>| Content-Length:    0<br>| <br>| <br>| &lt;-------------&gt;<br>
| --- (9 headers 0 lines) ---<br>| 
Scheduling destruction of SIP dialog &#39;<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 <a href="http://sip.broadvoice.com" target="_blank">sip.broadvoice.com</a> is 30 sec (Scheduling reregistration in 23 s)<br>

<br>| <br>| REGISTER 11 headers, 0 lines<br></div>| Reliably Transmitting (no NAT) to <a href="http://147.135.32.226:5060" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from &quot;147.135.32.226:5060&quot; claiming to be</b></font> <font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> 147.135.32.226:5060</a>:<div class="im">
<br>| REGISTER sip:<a href="http://sip.broadvoice.com" target="_blank">sip.broadvoice.com</a> SIP/2.0<br>| 
Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK35a02655;rport<br>| Max-Forwards: 70<br>| From: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as54c6327a<br>
| To: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;<br>| 
Call-ID: <a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a><br>| CSeq: 148 REGISTER<br>| User-Agent: Asterisk PBX 1.6.1.6<br>| Expires: 120<br>
| Contact: &lt;<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;<a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a>&#39; Method: REGISTER<br>
| Suuban*CLI&gt;<br></div>| &lt;--- SIP read from UDP://<a href="http://147.135.32.226:5060" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from &quot;147.135.32.226:5060&quot; claiming to be</b></font> <font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> 147.135.32.226:5060</a> ---&gt;<div class="im">
<br>| 
SIP/2.0 200 OK<br>| Call-ID: <a href="mailto:65a8d48738a00d121fc9050e4771d0b7@192.168.1.51" target="_blank">65a8d48738a00d121fc9050e4771d0b7@192.168.1.51</a><br>| CSeq: 148 REGISTER<br>| From: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;;tag=as54c6327a<br>

To: &lt;<a href="mailto:sip%3A703XXXYYYY@sip.broadvoice.com" target="_blank">sip:703XXXYYYY@sip.broadvoice.com</a>&gt;<br>| Via: SIP/2.0/UDP 68.100.66.3:5060;branch=z9hG4bK35a02655<br>| Contact: &lt;<a href="mailto:sip%3A5000@68.100.66.3" target="_blank">sip:5000@68.100.66.3</a>&gt;<br>

Expires: 30<br>| Content-Length:    0<br>| ----------------------------------------------<br><br></div>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]<div class="im"><br><br>exten =&gt; 1703XXXYYYY,1,Dial(SIP/5000)<br></div></div></div><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></blockquote></div><br>