<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><font class="Apple-style-span" face="Courier">Hello,</font></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier">I have 2 asterisk servers that are not working well together.  One is acting like a registrar (PBX01) for all my PAP2's and other SIP/IAX devices.  And the other is acting like my sip gateway (PBX02) to various providers.  They are both on a private network and should be trusting each others IP 100%.  But the PBX02 challenges PBX01's requests all the time even though insecure=invite is set.   Here are the stanzas for each server:</font></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier">PBX01</font></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier"><div>[pbx01topbx02]</div><div>type=friend</div><div>context=incomingDefault</div><div><b>host=10.10.10.2</b></div><div>qualify=600</div><div>disallow=all</div><div>allow=ulaw</div><div>canreinvite=no</div><div><b>insecure=invite</b></div><div>accountcode=pbx02</div><div>;TESTS;</div><div>;auth=pbx01topbx02@asterisk</div><div>;fromuser=pbx01topbx02</div><div>;username=pbx01topbx02</div><div>;secret=j48dj7rjd9023jd</div><div>sendrpid=yes</div><div>trustrpid=yes</div></font></div><div><br></div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" face="Courier">PBX02</font></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier"><div>[pbx01topbx02]</div><div>type=friend</div><div><b>host=10.10.10.3</b></div><div>qualify=600</div><div>context=dialOutPatternsAll</div><div>disallow=all</div><div>allow=ulaw</div><div>canreinvite=no</div><div><b>insecure=invite</b></div><div>accountcode=pbx01</div><div>;TESTS;</div><div>;auth=pbx01topbx02@asterisk</div><div>;username=pbx01topbx02</div><div>;fromuser=pbx01topbx02</div><div>;secret=j48dj7rjd9023jd</div><div>sendrpid=yes</div><div>trustrpid=yes</div></font></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier">Layout</font></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier">SIPDEV -REGISTERD-&gt; PBX01 -&gt; PBX02 -&gt; PROVIDER</font></div><div><br class="webkit-block-placeholder"></div><div>With the above settings above I should be allowed to send calls as I like through the 2 boxes, but I can't I get the following messages:</div><div><br class="webkit-block-placeholder"></div><div>PBX01</div><div><div>    -- Executing [dialIt@macro-dialOut:7] Dial("IAX2/4161231234-2", "SIP/pbx01topbx02/16041231234") in new stack</div><div>    -- Called pbx01topbx02/16041231234</div><div><font class="Apple-style-span" color="#973545"><b>[Feb  1 11:35:18] NOTICE[13507]: chan_sip.c:11983 handle_response_invite: Failed to authenticate on INVITE to '"4161231234" &lt;sip:4161231234@10.10.10.3&gt;;tag=as4a9e0ae9'</b></font></div><div>    -- SIP/pbx01topbx02-009c31d0 is circuit-busy</div><div>  == Everyone is busy/congested at this time (1:0/1/0)</div><div><br class="webkit-block-placeholder"></div></div><div>Then on PBX02 I don't get any debug/verbose messages unless I do a sip debug then I get:</div><div><br class="webkit-block-placeholder"></div><div><div>&lt;--- SIP read from 10.10.10.3:5060 ---&gt;</div><div>INVITE sip:16041231234@10.10.10.2 SIP/2.0</div><div>Via: SIP/2.0/UDP 10.10.10.3:5060;branch=z9hG4bK349431bd;rport</div><div>From: "4161231234" &lt;sip:4161231234@10.10.10.3&gt;;tag=as5c5aac02</div><div>To: &lt;sip:16041231234@10.10.10.2&gt;</div><div>Contact: &lt;sip:4161231234@10.10.10.3&gt;</div><div>Call-ID: <a href="mailto:640b3e0405d977e779db174d78f57d6f@10.10">640b3e0405d977e779db174d78f57d6f@10.10</a>.10.3</div><div>CSeq: 102 INVITE</div><div>User-Agent: Asterisk PBX</div><div>Max-Forwards: 70</div><div>Remote-Party-ID: "4161231234" &lt;sip:4161231234@10.10.10.3&gt;;privacy=off;screen=yes</div><div>Date: Fri, 01 Feb 2008 19:40:13 GMT</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY</div><div>Supported: replaces</div><div>Content-Type: application/sdp</div><div>Content-Length: 238</div><div><br class="webkit-block-placeholder"></div><div>v=0</div><div>o=root 13479 13479 IN IP4 10.10.10.3</div><div>s=session</div><div>c=IN IP4 10.10.10.3</div><div>t=0 0</div><div>m=audio 11026 RTP/AVP 0 101</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=silenceSupp:off - - - -</div><div>a=ptime:20</div><div>a=sendrecv</div><div><br class="webkit-block-placeholder"></div><div>&lt;-------------&gt;</div><div>--- (15 headers 12 lines) ---</div><div>Sending to 10.10.10.3 : 5060 (NAT)</div><div>Using INVITE request as basis request - <a href="mailto:640b3e0405d977e779db174d78f57d6f@10.10">640b3e0405d977e779db174d78f57d6f@10.10</a>.10.3</div><div><br class="webkit-block-placeholder"></div><div>&lt;--- Reliably Transmitting (no NAT) to 10.10.10.3:5060 ---&gt;</div><div><font class="Apple-style-span" color="#973545"><b>SIP/2.0 407 Proxy Authentication Required</b></font></div><div>Via: SIP/2.0/UDP 10.10.10.3:5060;branch=z9hG4bK349431bd;received=10.10.10.3;rport=5060</div><div>From: "4161231234" &lt;sip:4161231234@10.10.10.3&gt;;tag=as5c5aac02</div><div>To: &lt;sip:16041231234@10.10.10.2&gt;;tag=as19dfe789</div><div>Call-ID: <a href="mailto:640b3e0405d977e779db174d78f57d6f@10.10">640b3e0405d977e779db174d78f57d6f@10.10</a>.10.3</div><div>CSeq: 102 INVITE</div><div>User-Agent: Asterisk PBX</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY</div><div>Supported: replaces</div><div>Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="6d7284c8"</div><div>Content-Length: 0</div><div><br class="webkit-block-placeholder"></div></div>Any insights as to why insecure invite is not taking effect?<br><br><div>Bryan<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; "><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; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_________________________________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Bryan Cramer</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">PO Box 616</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Sechelt BC, V0N 3A0 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span">Web:<span class="Apple-converted-space"> </span><font class="Apple-style-span" color="#001FE8"><span class="Apple-style-span" style="text-decoration: underline;; color: rgb(0, 31, 232); -khtml-text-decorations-in-effect: underline; "><span class="Apple-style-span" style="color: rgb(0, 31, 232); -khtml-text-decorations-in-effect: underline; "><span class="Apple-style-span" style="color: rgb(0, 31, 232); -khtml-text-decorations-in-effect: underline; ">www.yellowions.com</span></span></span></font></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">Tel: 604-773-4580<br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br class="khtml-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The information in this email is privileged and confidential. If you are not the intended recipient, please notify the sender immediately, as any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, or reference to it, is prohibited and potentially unlawful.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span> </div><br></div></body></html>