See what they said in the challenge?<br><span style="border-collapse: separate; 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-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
WWW-Authenticate: Digest<span>&nbsp;</span><br>realm=&quot;SipLocal&quot;,nonce=&quot;3e952db60fb8&quot;,stale=false,algorithm=MD5,qop=&quot;auth&quot;<br><br>Since this is a spontaneous challenge (which i think is somewhat silly since it lets you talk on the phone for 40<br>
minutes then makes you authenticate to hangup but *shrug*) FS does not know which gateway to use for credentials.<br><br></span>The realm they sent was SipLocal so FS is looking in its configuration for a gateway with that name.<br>
The 2nd thing it tries is the host from the To: header (<span style="border-collapse: separate; 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-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"></span><a>64.115.128.6).&nbsp; if there was a gateway with either of those names,<br>
it would find it.<br></a><br>So try naming your gateway SipLocal or <span style="border-collapse: separate; 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-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"></span><a>64.115.128.6 </a><br>
or you can try setting the variable sip_use_gateway=&lt;whatever&gt; on the channel which can give it a hint which <br>gateway to use.<br><br><br><br><div class="gmail_quote">On Thu, Oct 30, 2008 at 8:42 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">They really shouldn&#39;t be challenging the bye like that because not every device can answer the challenge properly. &nbsp;Either case it doesn&#39;t matter if you have a proper domain <a href="http://206.57.23.143" target="_blank">206.57.23.143</a> in your user directory with the proper user and realm set to meet this challenge. &nbsp; We have a setting in FreeSWITCH to auth all packets and when we did that we found out that some devices just do not work properly when doing that. &nbsp;I need to see your original gateway XML. &nbsp;You can email it off list if you like and let me try to solve this.<div>
<br></div><font color="#888888"><div>/b</div></font><div><div></div><div class="Wj3C7c"><div><br><div><div>On Oct 30, 2008, at 7:52 PM, Wellie Chao wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; 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-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">Here is the BYE from Freeswitch to Metaswitch:<br>
<br>send 683 bytes to udp/[<a href="http://64.115.128.6" target="_blank">64.115.128.6</a>]:5060 at 00:44:46.607025:<br><br>------------------------------------------------------------------------<br>&nbsp;&nbsp;&nbsp;BYE<span>&nbsp;</span><a>sip:9172388084@64.115.128.6:5060;transport=udp</a><span>&nbsp;</span>SIP/2.0<br>
&nbsp;&nbsp;&nbsp;Via: SIP/2.0/UDP <a href="http://216.57.23.143" target="_blank">216.57.23.143</a>;rport;branch=z9hG4bKNa693jZ8SD54D<br>&nbsp;&nbsp;&nbsp;Max-Forwards: 70<br>&nbsp;&nbsp;&nbsp;From: &lt;<a>sip:2675379325@216.57.23.143</a>&gt;;tag=r4yBmtX3U0Hrr<br>&nbsp;&nbsp;&nbsp;To:<span>&nbsp;</span><br>
&lt;<a>sip:9172388084@64.115.128.6:5060;transport=udp</a>&gt;;tag=Broadview1+1+25f76f+cc3ba534<br>&nbsp;&nbsp;&nbsp;Call-ID: CEB9027F@Broadview1<br>&nbsp;&nbsp;&nbsp;CSeq: 106588607 BYE<br>&nbsp;&nbsp;&nbsp;Contact: &lt;<a>sip:mod_sofia@216.57.23.143:5060;transport=udp</a>&gt;<br>
&nbsp;&nbsp;&nbsp;User-Agent: FreeSWITCH-mod_sofia/1.0.1-9171<br>&nbsp;&nbsp;&nbsp;Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,<span>&nbsp;</span><br>NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>&nbsp;&nbsp;&nbsp;Supported: 100rel, timer, precondition, path, replaces<br>
&nbsp;&nbsp;&nbsp;Reason: Q.850;cause=16;text=&quot;NORMAL_CLEARING&quot;<br>&nbsp;&nbsp;&nbsp;Content-Length: 0<br><br><br>------------------------------------------------------------------------<br><br>Metaswitch is not so happy with the BYE message:<br>
<br>recv 491 bytes from udp/[<a href="http://64.115.128.6" target="_blank">64.115.128.6</a>]:5060 at 00:44:46.630445:<br><br>------------------------------------------------------------------------<br>&nbsp;&nbsp;&nbsp;SIP/2.0 401 Unauthorized<br>
&nbsp;&nbsp;&nbsp;Via: SIP/2.0/UDP<span>&nbsp;</span><br><a href="http://216.57.23.143" target="_blank">216.57.23.143</a>;received=<a href="http://216.57.23.143" target="_blank">216.57.23.143</a>;branch=z9hG4bKNa693jZ8SD54D;rport=5060<br>&nbsp;&nbsp;&nbsp;From: &lt;<a>sip:2675379325@216.57.23.143</a>&gt;;tag=r4yBmtX3U0Hrr<br>
&nbsp;&nbsp;&nbsp;To:<span>&nbsp;</span><br>&lt;<a>sip:9172388084@64.115.128.6:5060;transport=udp</a>&gt;;tag=Broadview1+1+25f76f+cc3ba534<br>&nbsp;&nbsp;&nbsp;Call-ID: CEB9027F@Broadview1<br>&nbsp;&nbsp;&nbsp;CSeq: 106588607 BYE<br>&nbsp;&nbsp;&nbsp;WWW-Authenticate: Digest<span>&nbsp;</span><br>
realm=&quot;SipLocal&quot;,nonce=&quot;3e952db60fb8&quot;,stale=false,algorithm=MD5,qop=&quot;auth&quot;<br>&nbsp;&nbsp;&nbsp;Server: DC-SIP/2.0<br>&nbsp;&nbsp;&nbsp;Organization:<br>&nbsp;&nbsp;&nbsp;Supported: 100rel<br>&nbsp;&nbsp;&nbsp;Content-Length: 0<br><br><br>------------------------------------------------------------------------<br>
<br>Right after receiving the 401 Unauthorized message from Metaswitch,<span>&nbsp;</span><br>Freeswitch emits the following error on the console:<br><br>2008-10-30 20:44:46 [ERR] sofia_reg.c:1089<span>&nbsp;</span><br>sofia_reg_handle_sip_r_challenge() No Matching gateway found<br>
<br>At this point, the caller (the endpoint connected to Metaswitch) just<span>&nbsp;</span><br>remains on the line, never having received the BYE.<br><br>Did you take a look at the packet traces I captured? The carrier<span>&nbsp;</span><br>
gave me a packet trace for an Aastra PBX/softswitch, and it had the same<span>&nbsp;</span><br>interaction, but immediately upon receiving the 401 Unauthorized from<span>&nbsp;</span><br>Metaswitch, the Aastra machine then sent a second BYE, this time with<span>&nbsp;</span><br>
authentication. Is there some way I can tell Freeswitch to do the same?<br><br>Regards,<br>Wellie</span></blockquote></div><br></div></div></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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>