<div>Thanks Anthony,</div>
<div>&nbsp;</div>
<div>We have turned off all nat-related anything, but are still having an issue.&nbsp; However, here is more information:</div>
<div>&nbsp;</div>
<div>-- We are running FreeSwitch on Windows Server 2003 R2</div>
<div>-- We are running FreeSwitch in a console app for testing</div>
<div>&nbsp;</div>
<div>Calls from Avaya are answered in the dial plan and a javascript is executed:</div>
<div>&nbsp;</div>
<div>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&lt;extension name=&quot;5060&quot;&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^5060$&quot;&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;javascript&quot; data=&quot;Answer.js 5061 welcome.wav&quot;/&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&lt;/extension&gt;</font></p></div>
<div><br>Here&#39;s the js:</div>
<div>&nbsp;</div>
<div>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">var sAudioFilePath = &quot;/sounds/&quot;;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">session.answer();</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">if(argv.length &gt; 1)</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">{</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp; for (var i = 1; i &lt; argv.length; i ++)</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp; </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.streamFile(sAudioFilePath + argv[i]);</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp; }</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">}</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">session.execute(&quot;transfer&quot;, argv[0]);</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">exit();</font></p><br>After playing the file, the caller is transferred into a park, using this dialplan code:</div>
<div>&nbsp;</div>
<div>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&lt;extension name=&quot;5060_Park&quot;&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^5061$&quot;&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;fifo_music=$${sound_prefix}/sounds/pleasewait.wav&quot;/&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;fifo&quot; data=&quot;5061@$${domain} in&quot;/&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">&nbsp;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Here&#39;s the issue:&nbsp;&nbsp; If we hang up the call while it is parked, we see NOTHING in the sofia debug or freeswitch log.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">(console window).&nbsp;&nbsp; We deceided to log freeswitch log info to a file.&nbsp;&nbsp; If we shut down FreeSwitch when it is the state with a call that is parked, we do see the SIP BYE message, and everythig shuts down.&nbsp; It&#39;s as if some thread is hung.</font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"></font>&nbsp;</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">All of this only happens with an inbound Avaya trunk.&nbsp;&nbsp; If we dial from an anonymous SIP connection, everything works fine.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"></font>&nbsp;</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Ideas?</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"></font>&nbsp;</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Regards,</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"></font>&nbsp;</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Gerry</font></p></div>
<div>&nbsp;</div>
<div class="gmail_quote">On Fri, Oct 17, 2008 at 3:30 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</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 dir="ltr">make sure you have all of the nat related params off in FS just in case.<br>edit your sip profile and comment out anything that says nat 
<div>
<div></div>
<div class="Wj3C7c"><br><br><br>
<div class="gmail_quote">On Fri, Oct 17, 2008 at 12:51 PM, Gerry Hull <span dir="ltr">&lt;<a href="mailto:gerry@pstn2.net" target="_blank">gerry@pstn2.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I&#39;ve solved most of my issues by trunking Freeswitch with Avaya SES.&nbsp;&nbsp; It was more on the SES configuration side.<br>
FreeSwitch seems to perform flawlessly.<br><br>Now the only problem is, if I dial into Freeswitch from an Avaya extension, and hangup the call, I get no SIP BYE or CANCEL from SES!<br><br>Oh joy!<br><br>Thanks for all your help on this, guys.<br>
<font color="#888888"><br>Gerry</font> 
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Thu, Oct 16, 2008 at 1:48 AM, Gayatri Kulkarni <span dir="ltr">&lt;<a href="mailto:xtpl.gayatri@gmail.com" target="_blank">xtpl.gayatri@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div dir="ltr">Gerry,<br>Did you manage to take the ethereal trace? It would be definitely of more help and we can narrow down the actual problem<br>Do you have access to Avaya SES? <br><br>To take the ethreal trace, you should:<br>
<b style="FONT-FAMILY: courier new,monospace">1)telnet</b><span style="FONT-FAMILY: courier new,monospace"> &lt;user&gt;@&lt;Avaya SES&gt;</span>&nbsp; //reduces size of the trace, ssh size usually goes in GBs<br>2)login<br><span style="FONT-FAMILY: courier new,monospace">3)tethereal -i eth0 -f &lt;path/to/filename&gt;</span><br style="FONT-FAMILY: courier new,monospace">
4)try to make the call (get the 407)<br>5)kill tethereal <span style="FONT-FAMILY: courier new,monospace">(Ctrl+C)</span><br>6) copy the file to a place where you can sit and analyze it<br><br>You can analyze the trace yourself if you have wireshark installed, or send it over<br>
<br>-- <br>Regards,<br><font color="#888888">Gayatri Kulkarni</font> 
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Wed, Oct 15, 2008 at 7:12 PM, Gerry Hull <span dir="ltr">&lt;<a href="mailto:gerry@pstn2.net" target="_blank">gerry@pstn2.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div dir="ltr">Gayatri,<br><br>Any idea on how to enable this response in Freeswitch?<br><br>David,<br><br>Not sure of the &quot;lr&quot;...&nbsp;&nbsp; <br>
<div>
<div></div>
<div><br>
<div class="gmail_quote">On Wed, Oct 15, 2008 at 4:38 AM, Gayatri Kulkarni <span dir="ltr">&lt;<a href="mailto:xtpl.gayatri@gmail.com" target="_blank">xtpl.gayatri@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div dir="ltr">Thanks David!<br>Gerry,<br>From the debug info you have sent, looks like Avaya SES asks for PAI i.e Proxy Authentication Indication - It&#39;s a kind of challenge response authentication. After it receives the user&#39;s digest in response to this request (again), it authenticates the user. This is the normal behavior of Avaya SES. <br>
the users&#39; digest is not sent again it seems!<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Wed, Oct 15, 2008 at 1:52 PM, David Knell <span dir="ltr">&lt;<a href="mailto:dave@3c.co.uk" target="_blank">dave@3c.co.uk</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div>
<div><br>
<div>
<div>
<div>On Oct 15, 2008, at 9:00 AM, Gayatri Kulkarni wrote:</div><br>
<blockquote type="cite">
<div dir="ltr"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">Record-Route: &lt;<a>sip:10.0.2.154:5060;lr</a>&gt;</span> 
<p><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">&nbsp;&nbsp; Record-Route: &lt;<a>sip:10.0.2.151:5061;lr;transport=tls</a>&gt;</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)"><font size="1"><span style="COLOR: rgb(51,51,51); FONT-FAMILY: arial narrow,sans-serif">what&#39;s the</span></font> &#39;lr&#39; <font size="1"><span style="COLOR: rgb(51,51,51); FONT-FAMILY: arial narrow,sans-serif">next to the port number?</span></font></span></p>

<p style="COLOR: rgb(51,51,51); FONT-FAMILY: arial narrow,sans-serif"><br></p></div></blockquote></div>short for &#39;loose routing&#39; - see here for a bit of an explanation:</div>
<div><a href="http://www.tech-invite.com/Ti-sip-dialog.html" target="_blank">http://www.tech-invite.com/Ti-sip-dialog.html</a></div>
<div><br></div>
<div>--Dave</div></div><br></div></div>
<div>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Gayatri Kulkarni<br></div><br>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br></div></div></div><br>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br><br clear="all"><br></div></div></div><br>_______________________________________________<br>Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div><br>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br><br clear="all"><br>-- <br></div></div>
<div class="Ih2E3d">Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net/" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br></div></div><br>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br>