<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Tahoma","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>That&#8217;s a good suggestion, but I tried that and it didn&#8217;t
work.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>I think you need an &#8216;&amp;&#8217; in-between, so I tried
that, too.&nbsp; I also tried adding the IP address of the CS 1500, too, and
that didn&#8217;t help.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>Frank<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Grygoriy
Dobrovolskyy<br>
<b>Sent:</b> Tuesday, January 06, 2009 2:12 AM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
<b>Subject:</b> Re: [asterisk-users] Incoming side of SIP trunk does not work
unless I add &quot;insecure=very&quot;<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>try do add<br>
<br>
fromdomain=<a href="http://acme.com/sip.acme.com">acme.com/sip.acme.com</a><br>
fromhost=<a href="http://acme.com/sip.acme.com">acme.com/sip.acme.com</a><o:p></o:p></p>

<div>

<p class=MsoNormal>2009/1/6 Frank Bulk &lt;<a href="mailto:frnkblk@iname.com">frnkblk@iname.com</a>&gt;<o:p></o:p></p>

<div>

<div>

<p><span style='font-size:10.0pt'>I tried that before, but I just tried it
again.&nbsp; Unfortunately, the same thing:</span><o:p></o:p></p>

<div>

<p style='margin-left:.5in'><span style='font-size:10.0pt'>No user '5551236049'
in SIP users list</span><o:p></o:p></p>

<p style='margin-left:.5in'><span style='font-size:10.0pt'>Found peer 'ACME'
for '5551236049' from <a href="http://172.16.10.40:5060" target="_blank">172.16.10.40:5060</a></span><o:p></o:p></p>

<p><span style='font-size:10.0pt'>&nbsp;</span><o:p></o:p></p>

</div>

<p><span style='font-size:10.0pt'>[ACME]<br>
host=172.16.10.40<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'><br>
username=username<br>
secret=password<br>
type=friend<o:p></o:p></span></p>

</div>

<p><span style='font-size:10.0pt'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:10.0pt'>Frank</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> <a href="mailto:asterisk-users-bounces@lists.digium.com"
target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a
href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>]
<b>On Behalf Of </b>Allan Dib<br>
<b>Sent:</b> Monday, January 05, 2009 9:41 PM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<o:p></o:p></span></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'><br>
<b>Subject:</b> Re: [asterisk-users] Incoming side of SIP trunk does not work
unless I add &quot;insecure=very&quot;<o:p></o:p></span></p>

</div>

</div>

</div>

<div>

<div>

<p>&nbsp;<o:p></o:p></p>

<p style='margin-bottom:12.0pt'>Try it by IP address instead of hostname as
reverse DNS may not be resolving. e.g. host=123.123.123.123<o:p></o:p></p>

<div>

<p>On Tue, Jan 6, 2009 at 2:25 PM, Frank Bulk &lt;<a
href="mailto:frnkblk@iname.com" target="_blank">frnkblk@iname.com</a>&gt;
wrote:<o:p></o:p></p>

<p>This is what I have in my configuration now:<br>
<br>
[ACME]<br>
host=<a href="http://sip.acme.com" target="_blank">sip.acme.com</a><br>
username=username<br>
secret=password<br>
type=friend<br>
<br>
I've done a SIP debug before, but I've done it again with the above<br>
configuration:<br>
&nbsp; &nbsp; &nbsp; &nbsp;No user '5551236049' in SIP users list<br>
&nbsp; &nbsp; &nbsp; &nbsp;Found peer 'ACME' for '5551236049' from <a
href="http://172.16.10.40:5060" target="_blank">172.16.10.40:5060</a><br>
after which &quot;SIP/2.0 401 Unauthorized&quot; is issued after the
un-authenticated<br>
INVITE and &quot;SIP/2.0 403 Forbidden&quot; after the authenticated INVITE.<br>
<br>
When I add &quot;insecure=very&quot;, this is what the SIP debug shows:<br>
&nbsp; &nbsp; &nbsp; &nbsp;No user '5551236049' in SIP users list<br>
&nbsp; &nbsp; &nbsp; &nbsp;Found peer 'ACME' for '5551236049' from <a
href="http://172.16.10.40:5060" target="_blank">172.16.10.40:5060</a><br>
&nbsp; &nbsp; &nbsp; &nbsp;Found RTP audio format 0<br>
&nbsp; &nbsp; &nbsp; &nbsp;Peer audio RTP is at port <a
href="http://172.16.10.65:36272" target="_blank">172.16.10.65:36272</a><br>
&nbsp; &nbsp; &nbsp; &nbsp;Found audio description format PCMU for ID 0<br>
&nbsp; &nbsp; &nbsp; &nbsp;Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x4<br>
(ulaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x4 (ulaw)<br>
&nbsp; &nbsp; &nbsp; &nbsp;Non-codec capabilities (dtmf): us - 0x1
(telephone-event), peer -<br>
0x0 (nothing), combined - 0x0 (nothing)<br>
&nbsp; &nbsp; &nbsp; &nbsp;Peer audio RTP is at port <a
href="http://172.16.10.65:36272" target="_blank">172.16.10.65:36272</a><br>
&nbsp; &nbsp; &nbsp; &nbsp;Looking for +15552127020 in from-sip-external
(domain <a href="http://sip.acme.com" target="_blank">sip.acme.com</a>)<br>
&nbsp; &nbsp; &nbsp; &nbsp;list_route: hop: &lt;<a
href="mailto:sip%3A5551236049@172.16.10.40" target="_blank">sip:5551236049@172.16.10.40</a>&gt;<br>
<br>
It isn't very clear (to me) from the success how the &quot;insecure=very&quot;
helps.<br>
<span style='color:#888888'><br>
Frank</span><o:p></o:p></p>

<div>

<p><br>
-----Original Message-----<br>
From: Andres [mailto:<a href="mailto:andres@telesip.net" target="_blank">andres@telesip.net</a>]<br>
Sent: Monday, January 05, 2009 7:43 PM<br>
To: <a href="mailto:frnkblk@iname.com" target="_blank">frnkblk@iname.com</a>;
Asterisk Users Mailing List - Non-Commercial<br>
Discussion<o:p></o:p></p>

</div>

<div>

<div>

<p>Subject: Re: [asterisk-users] Incoming side of SIP trunk does not work<br>
unless I add &quot;insecure=very&quot;<br>
<br>
Frank Bulk - iName.com wrote:<br>
<br>
&gt;The incoming (Class 5 switch to Asterisk PBX) side of a SIP trunk does not<br>
&gt;work unless I add &quot;insecure=very&quot; to my &quot;Outgoing
settings&quot;, but I don't<br>
&gt;want to do that. &nbsp;I do want to authenticate. &nbsp;Outgoing (Asterisk
PBX to<br>
&gt;Class 5 switch) calls do authenticate and work.<br>
&gt;<br>
&gt;The Nortel CS 1500 I'm using as the PSTN-side of my SIP trunk has a<br>
username<br>
&gt;and password that it's sending out. &nbsp;But the INVITE is responded by
the<br>
&gt;Asterisk with &quot;SIP/2.0 403 Forbidden&quot;<br>
&gt;<br>
&gt;I've changed the INVITE message to mask the real telephone numbers, SIP<br>
&gt;server, passwords, and IP addresses, but I did that using search and<br>
replace<br>
&gt;so the structure is intact.<br>
&gt;<br>
&gt;What do I need to configure in the &quot;Incoming Settings&quot; panel for
the CS<br>
&gt;1500's INVITE to my Asterisk server to work? &nbsp;I've tried all kinds of<br>
&gt;combinations of user,username,authname using +15552027020,host with IP<br>
&gt;and/or DNS name, but nothing appears to work.<br>
&gt;<br>
&gt;<br>
&gt;<br>
Do a sip debug on the asterisk console and see if it is actually is<br>
matching one of your sip.conf entries during an invite from the CS1500.<br>
Look for a line that says something like 'Found Peer....bla bla bla'.<br>
If you dont see that line, then you are not even adding the correct<br>
sip.conf entry to match the invite from the CS1500.<br>
<br>
Andres<br>
<a href="http://www.telesip.net" target="_blank">http://www.telesip.net</a><br>
<br>
&gt;Frank<br>
&gt;<br>
&gt;INVITE message from Wireshark packet capture:<br>
&gt;<br>
&gt;INVITE <a href="mailto:sip%3A%2B15552027020@sip.acme.com" target="_blank">sip:+15552027020@sip.acme.com</a>
SIP/2.0<br>
&gt;From:<br>
&gt;&lt;<a href="mailto:sip%3A5552022441@172.16.10.40" target="_blank">sip:5552022441@172.16.10.40</a>&gt;;tag=f76c66d0-c7784528-13c4-2dbba4-767e6552-2d<br>
b<br>
&gt;ba4<br>
&gt;To: &lt;<a href="mailto:sip%3A%2B15552027020@sip.acme.com" target="_blank">sip:+15552027020@sip.acme.com</a>&gt;<br>
&gt;Call-ID: <a
href="mailto:f379f62-29173-3895-b14271f5-40802-45378@172.16.10.40"
target="_blank">f379f62-29173-3895-b14271f5-40802-45378@172.16.10.40</a><br>
&gt;CSeq: 5102 INVITE<br>
&gt;Via: SIP/2.0/UDP 172.16.10.40:5060;branch=z9hG4bK-2dbba4-b2a4fa3a-7cd7598<br>
&gt;User-Agent: Nortel CS1500UA/v02.00.REL01<br>
&gt;Accept: application/sdp<br>
&gt;P-Asserted-Identity: &lt;<a href="mailto:sip%3A5552022441@172.16.10.40"
target="_blank">sip:5552022441@172.16.10.40</a>;user=phone&gt;<br>
&gt;Privacy: none<br>
&gt;Remote-Party-ID: &lt;<a href="mailto:sip%3A5552022441@172.16.10.40"
target="_blank">sip:5552022441@172.16.10.40</a>;user=phone&gt;; party=calling;<br>
&gt;privacy=off<br>
&gt;Max-Forwards: 70<br>
&gt;Supported: 100rel,replaces<br>
&gt;Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, REFER, PRACK<br>
&gt;Contact: &lt;<a href="mailto:sip%3A5552022441@172.16.10.40" target="_blank">sip:5552022441@172.16.10.40</a>&gt;<br>
&gt;Authorization: Digest<br>
&gt;username=&quot;username&quot;,realm=&quot;asterisk&quot;,nonce=&quot;118af2b0&quot;,uri=&quot;sip:+15552027020<br>
@<br>
&gt;<a href="http://sip.acme.com" target="_blank">sip.acme.com</a>&quot;,response=&quot;111e63ec2a1f3ebabefe4f7dae4087a1&quot;,algorithm=MD5<br>
&gt;Content-Type: application/SDP<br>
&gt;Content-Length: 167<br>
&gt;<br>
&gt;v=0<br>
&gt;o=- 2973921782 2973921782 IN IP4 172.16.10.65<br>
&gt;s=SIP Call<br>
&gt;c=IN IP4 172.16.10.65<br>
&gt;t=0 0<br>
&gt;m=audio 36224 RTP/AVP 0<br>
&gt;a=rtpmap:0 PCMU/8000<br>
&gt;a=ptime:20<br>
&gt;a=sendrecv<br>
&gt;<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com"
target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt;asterisk-users mailing list<br>
&gt;To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
&gt;<br>
&gt;<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>
&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p>

</div>

</div>

</div>

<p style='margin-bottom:12.0pt'><br>
<br clear=all>
<br>
-- <br>
Personal Development Without The Silly Stuff: <a href="http://AllanDib.com"
target="_blank">http://AllanDib.com</a><o:p></o:p></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><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>
&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>